Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed May 15, 2024
1 parent 4bb0519 commit aae72f6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (

appparams "github.com/umee-network/umee/v6/app/params"
"github.com/umee-network/umee/v6/util"
"github.com/umee-network/umee/v6/x/auction"
leveragetypes "github.com/umee-network/umee/v6/x/leverage/types"
"github.com/umee-network/umee/v6/x/metoken"
)
Expand Down Expand Up @@ -67,23 +68,23 @@ func (app *UmeeApp) registerUpgrade6_5(upgradeInfo upgradetypes.Plan) {
lparams := app.LeverageKeeper.GetParams(ctx)
lparams.RewardsAuctionFactor = leveragetypes.DefaultParams().RewardsAuctionFactor
if err := app.LeverageKeeper.SetParams(ctx, lparams); err != nil {
return err
return nil, err
}

mekeeper := app.MetokenKeeperB.Keeper(&ctx)
meparams := mekeeper.GetParams()
meparams.RewardsAuctionFactor = metoken.DefaultParams().RewardsAuctionFactor
if err := mekeeper.SetParams(meparams); err != nil {
return err
return nil, err
}

return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)

app.storeUpgrade(planName, upgradeInfo, storetypes.StoreUpgrades{
Added: []string{auction.ModuleName},
Deleted: []string{crisistypes.ModuleName}
Added: []string{auction.ModuleName},
Deleted: []string{crisistypes.ModuleName},
})
}

Expand Down

0 comments on commit aae72f6

Please sign in to comment.