Skip to content

Commit

Permalink
Update reward pool on provider_boost or unstake #1699 (#1948)
Browse files Browse the repository at this point in the history
The goal of this PR is to update the StakingRewardPool on a `provider_boost` or `unstake` extrinsic call.

Closes #1699

Also includes a bunch of lint changes

- [x] Design doc(s) updated
- [x] Tests added
- [x] Benchmarks corrected and updated
- [x] Weights updated
  • Loading branch information
shannonwells committed May 6, 2024
1 parent 2352bd5 commit 36e482e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pallets/capacity/src/tests/unstaking_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ fn unstaking_everything_reaps_staking_account() {
register_provider(target, String::from("WithdrawUnst"));
assert_ok!(Capacity::stake(RuntimeOrigin::signed(staker), target, amount));


run_to_block(1);
// unstake everything
assert_ok!(Capacity::unstake(RuntimeOrigin::signed(staker), target, 20));
Expand Down

0 comments on commit 36e482e

Please sign in to comment.