diff --git a/x/jklmint/keeper/keeper.go b/x/jklmint/keeper/keeper.go index a8ecbaf89..2e2b9fda1 100644 --- a/x/jklmint/keeper/keeper.go +++ b/x/jklmint/keeper/keeper.go @@ -85,7 +85,8 @@ func FloatToBigInt(val float64) *big.Int { } func (k Keeper) GetInflation(ctx sdk.Context) (sdk.Dec, error) { - denom := k.GetParams(ctx).MintDenom + params := k.GetParams(ctx) + denom := params.MintDenom coins := k.bankKeeper.GetSupply(ctx, denom) amt := coins.Amount.ToDec() @@ -96,7 +97,7 @@ func (k Keeper) GetInflation(ctx sdk.Context) (sdk.Dec, error) { var blocksPerYearEstiamte int64 = (365 * 24 * 60 * 60) / 6 - printedPerYear := blocksPerYearEstiamte * 10_000_000 + printedPerYear := blocksPerYearEstiamte * 1_000_000 * params.TokensPerBlock inflate := sdk.NewDec(printedPerYear)