Merge PR #3894: Minting mechanism explanatory docs
* minting spec concepts * cl * Update docs/spec/mint/01_concepts.md Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com> * typo address @alexanderbez * Apply suggestions from code review Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com> * commit for CI to restart
This commit is contained in:
+2
-2
@@ -61,8 +61,8 @@ func (m Minter) NextInflationRate(params Params, bondedRatio sdk.Dec) (
|
||||
Mul(params.InflationRateChange)
|
||||
inflationRateChange := inflationRateChangePerYear.Quo(sdk.NewDec(int64(params.BlocksPerYear)))
|
||||
|
||||
// increase the new annual inflation for this next cycle
|
||||
inflation = m.Inflation.Add(inflationRateChange)
|
||||
// adjust the new annual inflation for this next cycle
|
||||
inflation = m.Inflation.Add(inflationRateChange) // note inflationRateChange may be negative
|
||||
if inflation.GT(params.InflationMax) {
|
||||
inflation = params.InflationMax
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user