Skip to content

Commit

Permalink
Surface inflation rate and factor in network:parameters (#8274)
Browse files Browse the repository at this point in the history
### Description

Surface inflation rate and factor in network:parameters 

### Tested

`celocli network:parameters --node https://forno.celo.org`

<img width="435" alt="Screen Shot 2021-07-09 at 2 49 09 PM" src="https://user-images.githubusercontent.com/3020995/125123949-5ab62e00-e0c5-11eb-9896-3af9d1619ff9.png">
  • Loading branch information
yorhodes committed Jul 9, 2021
1 parent a4ca31b commit 6bf908f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export class StableTokenWrapper extends CeloTokenWrapper<StableToken> {
async getHumanReadableConfig() {
const config = await this.getConfig()
const inflationParameters = {
...config.inflationParameters,
updatePeriod: secondsToDurationString(config.inflationParameters.updatePeriod),
factorLastUpdated: unixSecondsTimestampToDateString(
config.inflationParameters.factorLastUpdated
Expand Down

0 comments on commit 6bf908f

Please sign in to comment.