diff --git a/pallets/staking-rewards/src/lib.rs b/pallets/staking-rewards/src/lib.rs index 3d266755090..66fd46e05fb 100644 --- a/pallets/staking-rewards/src/lib.rs +++ b/pallets/staking-rewards/src/lib.rs @@ -431,7 +431,7 @@ impl OnUnbalanced> for Pallet { /// Implements the `OnUnbalanced` trait in a way that would try to burn /// the amount equivalent to that provided in the input `NegativeImbalance` from the rewards /// pool in order to keep the token total supply intact. It is assumed that the subsequent -/// `OnUnbalanced` handler (think Treasury) would `resolve` the imbalance and not drop it - +/// `OnUnbalanced` handler (e.g. Treasury) would `resolve` the imbalance and not drop it - /// otherwise the the total supply will decrease. pub struct RewardsStash(sp_std::marker::PhantomData<(T, U)>); diff --git a/pallets/staking-rewards/src/mock.rs b/pallets/staking-rewards/src/mock.rs index b0e15be5e61..e5ca6aad641 100644 --- a/pallets/staking-rewards/src/mock.rs +++ b/pallets/staking-rewards/src/mock.rs @@ -706,7 +706,7 @@ pub(crate) fn run_for_n_blocks(n: u64) { } } -pub fn roll_to_unsigned() { +pub fn run_to_unsigned() { while !matches!( ElectionProviderMultiPhase::current_phase(), multi_phase::Phase::Unsigned(_) @@ -714,7 +714,8 @@ pub fn roll_to_unsigned() { run_to_block(System::block_number() + 1); } } -pub fn roll_to_signed() { + +pub fn run_to_signed() { while !matches!( ElectionProviderMultiPhase::current_phase(), multi_phase::Phase::Signed