Skip to content

Commit

Permalink
Merge pull request #415 from ComposableFi/release/v6.4.x-epoch-staking
Browse files Browse the repository at this point in the history
change BlocksPerEpoch param from 10 to 360 (30 mins)
  • Loading branch information
RustNinja authored Jan 18, 2024
2 parents e7cf8cc + 2b1e175 commit 7730948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/upgrades/v6_4/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func CreateUpgradeHandler(
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
// Add params for custom middleware
custommiddlewareparams := customstmiddleware.Params{BlocksPerEpoch: 100, AllowUnbondAfterEpochProgressBlockNumber: 0}
custommiddlewareparams := customstmiddleware.Params{BlocksPerEpoch: 360, AllowUnbondAfterEpochProgressBlockNumber: 0}
keepers.StakingMiddlewareKeeper.SetParams(ctx, custommiddlewareparams)

return mm.RunMigrations(ctx, configurator, vm)
Expand Down
2 changes: 1 addition & 1 deletion x/stakingmiddleware/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func NewGenesisState(params Params) *GenesisState {
// DefaultGenesisState creates a default GenesisState object
func DefaultGenesisState() *GenesisState {
return &GenesisState{
Params: Params{BlocksPerEpoch: 10, AllowUnbondAfterEpochProgressBlockNumber: 0},
Params: Params{BlocksPerEpoch: 360, AllowUnbondAfterEpochProgressBlockNumber: 0},
}
}

Expand Down

0 comments on commit 7730948

Please sign in to comment.