Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tier config recalculation at the start of each era #1230

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update pallets/dapp-staking-v3/src/test/tests.rs
Co-authored-by: Ashutosh Varma <ashutoshvarma11@live.com>
Dinonard and ashutoshvarma authored May 1, 2024
commit 201083d370ed72d7dbe735d36f7a449cf4414715
2 changes: 1 addition & 1 deletion pallets/dapp-staking-v3/src/test/tests.rs
Original file line number Diff line number Diff line change
@@ -2361,7 +2361,7 @@ fn tier_config_recalculation_works() {
assert!(init_tier_config.slots_per_tier[idx] < new_tier_config.slots_per_tier[idx]);
}

// 3. Decrease the native price, and expect number of tiers to be increased.
// 3. Decrease the native price, and expect slots in tiers to be decreased.
NATIVE_PRICE.with(|v| *v.borrow_mut() = init_price * FixedU128::from_rational(1, 2));

assert_ok!(DappStaking::force(RuntimeOrigin::root(), ForcingType::Era));