diff --git a/app/upgrades/v300/constants.go b/app/upgrades/v300/constants.go index a97a83207..7a2e5c3dc 100644 --- a/app/upgrades/v300/constants.go +++ b/app/upgrades/v300/constants.go @@ -19,5 +19,8 @@ var ( // BeaconContractAddress is the address of the beacon contract BeaconContractAddress = "" + // MinDepositRatio is the minimum deposit ratio + MinDepositRatio = sdk.MustNewDecFromStr("0.01") + allowMessages = []string{"*"} ) diff --git a/app/upgrades/v300/upgrades.go b/app/upgrades/v300/upgrades.go index b4d559ded..2fff77d5f 100644 --- a/app/upgrades/v300/upgrades.go +++ b/app/upgrades/v300/upgrades.go @@ -84,3 +84,11 @@ func mergeToken(ctx sdk.Context, box upgrades.Toolbox) error { params.Beacon = BeaconContractAddress return box.TokenKeeper.SetParams(ctx, params) } + +func mergeGov(ctx sdk.Context, box upgrades.Toolbox) error { + ctx.Logger().Info("start to run gov module migrations...") + + params := box.GovKeeper.GetParams(ctx) + params.MinDepositRatio = MinDepositRatio.String() + return box.GovKeeper.SetParams(ctx, params) +}