diff --git a/CHANGELOG.md b/CHANGELOG.md index a4f9942dd70a..e4324e73ceac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## PENDING BREAKING CHANGES +* [x/stake] Fixed the period check for the inflation calculation FEATURES * [lcd] Can now query governance proposals by ProposalStatus diff --git a/x/stake/handler.go b/x/stake/handler.go index b39298edebc1..14fb4f7bfffe 100644 --- a/x/stake/handler.go +++ b/x/stake/handler.go @@ -39,7 +39,7 @@ func EndBlocker(ctx sdk.Context, k keeper.Keeper) (ValidatorUpdates []abci.Valid // Process types.Validator Provisions blockTime := ctx.BlockHeader().Time - if pool.InflationLastTime+blockTime >= 3600 { + if blockTime-pool.InflationLastTime >= 3600 { pool.InflationLastTime = blockTime pool = pool.ProcessProvisions(params) }