Skip to content

Commit

Permalink
update the params for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
gsk967 committed Aug 2, 2024
1 parent 4d3c61d commit 71158b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
8 changes: 3 additions & 5 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,22 @@ func (app UmeeApp) RegisterUpgradeHandlers() {
}

func (app *UmeeApp) registerUpgrade6_6RC1(upgradeInfo upgradetypes.Plan) {
planName := "v6.6-rc1"
planName := "v6.6"

app.UpgradeKeeper.SetUpgradeHandler(planName,
func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
printPlanName(planName, ctx.Logger())

// update leverage and metoken params to include burn auction fee share.
lparams := app.LeverageKeeper.GetParams(ctx)
// TODO: need to check the reward auction fee params value for v6.6
lparams.RewardsAuctionFee = sdk.MustNewDecFromStr("0.01")
lparams.RewardsAuctionFee = sdk.MustNewDecFromStr("0.02")

Check warning on line 70 in app/upgrades.go

View check run for this annotation

Codecov / codecov/patch

app/upgrades.go#L70

Added line #L70 was not covered by tests
if err := app.LeverageKeeper.SetParams(ctx, lparams); err != nil {
return nil, err
}

mekeeper := app.MetokenKeeperB.Keeper(&ctx)
meparams := mekeeper.GetParams()
// TODO: need to check the Rewards Auction Fee Factor params value for v6.6
meparams.RewardsAuctionFeeFactor = 10000 // 100% of fees goes to rewards auction
meparams.RewardsAuctionFeeFactor = 1000 // 10% of fees goes to rewards auction

Check warning on line 77 in app/upgrades.go

View check run for this annotation

Codecov / codecov/patch

app/upgrades.go#L77

Added line #L77 was not covered by tests
if err := mekeeper.SetParams(meparams); err != nil {
return nil, err
}
Expand Down
4 changes: 1 addition & 3 deletions x/auction/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import (
// DefaultGenesis creates a default genesis state
func DefaultGenesis() *GenesisState {
return &GenesisState{
// check bid duration value for v6.6 upgrade
// RewardsParams: RewardsParams{BidDuration: 14 * 24 * 3600}, // 14 days
RewardsParams: RewardsParams{BidDuration: 4 * 3600}, // 4 hours for bid duration this is only for canon-4 network
RewardsParams: RewardsParams{BidDuration: 14 * 24 * 3600}, // 14 days

Check warning on line 13 in x/auction/genesis.go

View check run for this annotation

Codecov / codecov/patch

x/auction/genesis.go#L13

Added line #L13 was not covered by tests
RewardAuctionId: 0,
RewardsAuctions: []RewardsKV{},
RewardsBids: []BidKV{},
Expand Down
1 change: 0 additions & 1 deletion x/auction/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const minBidDuration = 3600 // 1h in seconds

// MinRewardsBid is the minimum increase of the previous bid or the minimum bid if it's the
// first one. 50 UX = 50e6uumee
// TODO: need to check the value for v6.6 upgrade
var MinRewardsBid = sdk.NewInt(50_000_000)

//
Expand Down

0 comments on commit 71158b7

Please sign in to comment.