From c5c122d2fecaab19230820f8989d34939d7e5f50 Mon Sep 17 00:00:00 2001 From: Eric Bolten Date: Wed, 13 Dec 2023 18:37:39 -0800 Subject: [PATCH] Fix interval auction (#244) --- integration_tests/setup_test.go | 1 + x/cellarfees/keeper/hooks.go | 1 + x/cellarfees/types/params.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/integration_tests/setup_test.go b/integration_tests/setup_test.go index df55e24a..49469396 100644 --- a/integration_tests/setup_test.go +++ b/integration_tests/setup_test.go @@ -420,6 +420,7 @@ func (s *IntegrationTestSuite) initGenesis() { RewardEmissionPeriod: 100, InitialPriceDecreaseRate: sdk.MustNewDecFromStr("0.05"), PriceDecreaseBlockInterval: uint64(1000), + AuctionInterval: 50, } bz, err = cdc.MarshalJSON(&cellarfeesGenState) s.Require().NoError(err) diff --git a/x/cellarfees/keeper/hooks.go b/x/cellarfees/keeper/hooks.go index c7441749..70ecdfd8 100644 --- a/x/cellarfees/keeper/hooks.go +++ b/x/cellarfees/keeper/hooks.go @@ -59,6 +59,7 @@ func (h Hooks) AfterSendToCosmosEvent(ctx sdk.Context, event gravitytypes.SendTo counters := h.k.GetFeeAccrualCounters(ctx) count := counters.IncrementCounter(denom) + h.k.SetFeeAccrualCounters(ctx, counters) ctx.EventManager().EmitEvents( sdk.Events{ diff --git a/x/cellarfees/types/params.go b/x/cellarfees/types/params.go index c04fb411..0d81222a 100644 --- a/x/cellarfees/types/params.go +++ b/x/cellarfees/types/params.go @@ -18,7 +18,7 @@ const ( // Blocks between each auction price decrease DefaultPriceDecreaseBlockInterval uint64 = 10 // Blocks between each auction - DefaultAuctionInterval uint64 = 1000 + DefaultAuctionInterval uint64 = 15000 ) // Parameter keys