Skip to content

Commit

Permalink
Fix interval auction (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBolten authored Dec 14, 2023
1 parent 5c48bba commit c5c122d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions integration_tests/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions x/cellarfees/keeper/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion x/cellarfees/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5c122d

Please sign in to comment.