Skip to content

Commit

Permalink
fix(mint): calculate inflation in percent instead of permille
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux authored and ccamel committed Dec 4, 2023
1 parent 8acba8c commit c555990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/mint/types/minter.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func ValidateMinter(minter Minter) error {
// Get the current inflation and multiply by (1 - annual reduction factor).
func (m Minter) NextInflation(params Params, boundedRatio sdk.Dec) sdk.Dec {
bounded := params.BoundingAdjustment.Sub(boundedRatio.Quo(params.TargetBoundingRatio))
return params.InflationCoef.Mul(bounded).Mul(sdk.NewDec(100))
return params.InflationCoef.Mul(bounded)
}

// NextAnnualProvisions returns the annual provisions based on current total
Expand Down

0 comments on commit c555990

Please sign in to comment.