Skip to content

Commit

Permalink
Decrease max session rewards to one year
Browse files Browse the repository at this point in the history
Turns out it runs out of weight in the worst case
  • Loading branch information
Moliholy committed Dec 11, 2024
1 parent 3d432dc commit f42e8ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/mainnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ parameter_types! {
pub const BondUnlockDelay: BlockNumber = 28 * DAYS;
pub const StakeUnlockDelay: BlockNumber = 3 * DAYS;
pub const AutoCompoundingThreshold: Balance = 2500 * MYTH;
pub const MaxRewardSessions: u32 = 2 * 365; // two years
pub const MaxRewardSessions: u32 = 365; // two years
pub const MaxStakedCandidates: u32 = 3;
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/testnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ parameter_types! {
pub const BondUnlockDelay: BlockNumber = 5 * MINUTES;
pub const StakeUnlockDelay: BlockNumber = 2 * MINUTES;
pub const AutoCompoundingThreshold: Balance = 50 * MUSE;
pub const MaxRewardSessions: u32 = 2 * 365; // two years
pub const MaxRewardSessions: u32 = 365; // two years
pub const MaxStakedCandidates: u32 = 3;
}

Expand Down

0 comments on commit f42e8ce

Please sign in to comment.