Skip to content

Commit

Permalink
add fee param for MsgSideChainStakeMigration
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Jan 6, 2024
1 parent b7c962c commit 77e2b69
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 4 additions & 3 deletions x/paramHub/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const (
SideChainDelegateFee = 1e5
SideChainRedelegateFee = 3e5
SideChainUndelegateFee = 2e5
SideChainStakeMigrationFee = 3e5

// beacon chain stake fee
EditChainValidatorFee = 1e8
Expand Down Expand Up @@ -73,7 +74,7 @@ const (
CrossBindRelayFee = 2e6
CrossUnbindRelayFee = 2e6

//MiniToken fee
// MiniToken fee
TinyIssueFee = 2e8
MiniIssueFee = 3e8
MiniSetUriFee = 37500
Expand All @@ -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 ------------------- //
Expand Down Expand Up @@ -131,4 +132,4 @@ var FeeGenesisState = []param.FeeParam{
},
}

//---------- End definition about fee param ---------------- //
// ---------- End definition about fee param ---------------- //
6 changes: 6 additions & 0 deletions x/paramHub/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ func RegisterUpgradeBeginBlocker(paramHub *ParamHub) {
}
paramHub.UpdateFeeParams(ctx, updateFeeParams)
})
sdk.UpgradeMgr.RegisterBeginBlocker(sdk.FirstSunsetFork, func(ctx sdk.Context) {
updateFeeParams := []param.FeeParam{
&param.FixedFeeParams{MsgType: "side_stake_migration", Fee: SideChainStakeMigrationFee, FeeFor: sdk.FeeForProposer},
}
paramHub.UpdateFeeParams(ctx, updateFeeParams)
})
}

func EndBreatheBlock(ctx sdk.Context, paramHub *ParamHub) {
Expand Down

0 comments on commit 77e2b69

Please sign in to comment.