Skip to content

Commit

Permalink
threads
Browse files Browse the repository at this point in the history
  • Loading branch information
keruch committed Sep 10, 2024
1 parent 6b03791 commit c28e8f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/upgrades/v3/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ func (s *UpgradeTestSuite) TestUpgrade() {
return fmt.Errorf("sequencer parameters not set correctly")
}

// These fields are deleted in the next update
// These fields are deleted in the v4 update. Intentionally leave the commented code
// here for historical reference.
// Check Incentives parameters
//if !incentivestypes.CreateGaugeFee.Equal(expectCreateGaugeFee) || !incentivestypes.AddToGaugeFee.Equal(expectAddToGaugeFee) {
// return fmt.Errorf("incentives parameters not set correctly")
Expand Down
2 changes: 2 additions & 0 deletions app/upgrades/v4/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ func migrateIncentivesParams(ctx sdk.Context, ik *incentiveskeeper.Keeper) {
defaultParams := incentivestypes.DefaultParams()
params.CreateGaugeFee = defaultParams.CreateGaugeFee
params.AddToGaugeFee = defaultParams.AddToGaugeFee
params.BaseGasFeeForCreateGauge = defaultParams.BaseGasFeeForCreateGauge
params.BaseGasFeeForAddRewardToGauge = defaultParams.BaseGasFeeForAddRewardToGauge
ik.SetParams(ctx, params)
}

Expand Down

0 comments on commit c28e8f1

Please sign in to comment.