inflationPeriodhow long to wait between rounds of applying inflation
inflationRatethe multiplier by which the inflation factor is adjusted per
inflationRateis the multiplier by which the
inflationFactoris increased per
inflationPeriod. It is initially set to
1which leaves it to governance to enable the stability fee later on.
inflationRateas well as the
inflationPeriod, are specified for a given stable token and subject to changes based on governance decisions.
inflationFactordescribes the units/value ratio. The Celo Dollar value of an account can therefore be computed as follows.
Account cUSD Value = Account cUSD Units / inflationFactor
inflationFactorupdate(eg a transfer) occurs, the
updateInflationFactormodifier is called (pseudocode below), which does the following:
inflationPeriodhave passed since the last time
inflationFactorand update the last updated time:
# inflationPeriods since last update
inflationFactoris up to date, then updates the
updateInflationFactormodifier is called by the following functions: