diff --git a/x/paramHub/genesis.go b/x/paramHub/genesis.go index c7c2e16e3..516a20aea 100644 --- a/x/paramHub/genesis.go +++ b/x/paramHub/genesis.go @@ -37,6 +37,7 @@ const ( SideChainDelegateFee = 1e5 SideChainRedelegateFee = 3e5 SideChainUndelegateFee = 2e5 + SideChainStakeMigrationFee = 3e5 // beacon chain stake fee EditChainValidatorFee = 1e8 @@ -73,7 +74,7 @@ const ( CrossBindRelayFee = 2e6 CrossUnbindRelayFee = 2e6 - //MiniToken fee + // MiniToken fee TinyIssueFee = 2e8 MiniIssueFee = 3e8 MiniSetUriFee = 37500 @@ -87,7 +88,7 @@ const ( var DefaultGenesisState = param.GenesisState{ FeeGenesis: FeeGenesisState, - //Add other param genesis here + // Add other param genesis here } // --------- Definition about fee prams ------------------- // @@ -131,4 +132,4 @@ var FeeGenesisState = []param.FeeParam{ }, } -//---------- End definition about fee param ---------------- // +// ---------- End definition about fee param ---------------- // diff --git a/x/paramHub/hub.go b/x/paramHub/hub.go index f9e4cdd76..80a41a0ea 100644 --- a/x/paramHub/hub.go +++ b/x/paramHub/hub.go @@ -140,6 +140,12 @@ func RegisterUpgradeBeginBlocker(paramHub *ParamHub) { } paramHub.UpdateFeeParams(ctx, updateFeeParams) }) + sdk.UpgradeMgr.RegisterBeginBlocker(sdk.FirstSunsetFork, func(ctx sdk.Context) { + updateFeeParams := []param.FeeParam{ + ¶m.FixedFeeParams{MsgType: "side_stake_migration", Fee: SideChainStakeMigrationFee, FeeFor: sdk.FeeForProposer}, + } + paramHub.UpdateFeeParams(ctx, updateFeeParams) + }) } func EndBreatheBlock(ctx sdk.Context, paramHub *ParamHub) {