diff --git a/x/bandoracle/abci.go b/x/bandoracle/abci.go index 5b80f7e63..270093bc0 100644 --- a/x/bandoracle/abci.go +++ b/x/bandoracle/abci.go @@ -14,8 +14,8 @@ func BeginBlocker(ctx sdk.Context, _ abci.RequestBeginBlock, k keeper.Keeper) { block := k.GetLastBlockHeight(ctx) if block != types.Int64Zero { - // if ctx.BlockHeight()%types.Int64Twenty == types.Int64Zero && ctx.BlockHeight() != block { - if ctx.BlockHeight()%types.Int64Twenty == types.Int64Zero { + // if ctx.BlockHeight()%types.Int64Forty == types.Int64Zero && ctx.BlockHeight() != block { + if ctx.BlockHeight()%types.Int64Forty == types.Int64Zero { if !k.GetCheckFlag(ctx) { msg := k.GetFetchPriceMsg(ctx) _, err := k.FetchPrice(ctx, msg) diff --git a/x/bandoracle/types/params.go b/x/bandoracle/types/params.go index 77bff3522..4fdcb7707 100644 --- a/x/bandoracle/types/params.go +++ b/x/bandoracle/types/params.go @@ -7,6 +7,7 @@ import ( var _ paramtypes.ParamSet = (*Params)(nil) const ( + Int64Forty = int64(40) Int64Twenty = int64(20) Int64TwentyOne = int64(21) Int64One = int64(1) diff --git a/x/market/abci.go b/x/market/abci.go index f94063ab3..4cfdfdc47 100644 --- a/x/market/abci.go +++ b/x/market/abci.go @@ -17,8 +17,8 @@ func BeginBlocker(ctx sdk.Context, _ abci.RequestBeginBlock, k keeper.Keeper, ba if bandKeeper.GetOracleValidationResult(ctx) { block := bandKeeper.GetLastBlockHeight(ctx) if block != types.Int64Zero { - // if ctx.BlockHeight()%types.Int64Twenty == types.Int64Zero && ctx.BlockHeight() != block && bandKeeper.GetCheckFlag(ctx) { - if ctx.BlockHeight()%types.Int64Twenty == types.Int64Zero { + // if ctx.BlockHeight()%types.Int64Forty == types.Int64Zero && ctx.BlockHeight() != block && bandKeeper.GetCheckFlag(ctx) { + if ctx.BlockHeight()%types.Int64Forty == types.Int64Zero { discardData := bandKeeper.GetDiscardData(ctx) if discardData.DiscardBool { allTwa := k.GetAllTwa(ctx) diff --git a/x/market/types/params.go b/x/market/types/params.go index 64a21c639..e5db92736 100644 --- a/x/market/types/params.go +++ b/x/market/types/params.go @@ -7,6 +7,7 @@ import ( var _ paramstypes.ParamSet = (*Params)(nil) const ( + Int64Forty = int64(40) Int64Twenty = int64(20) Int64TwentyOne = int64(21) Int64Ten = int64(10)