Skip to content

Commit

Permalink
nomination-pools fix (paritytech#11748)
Browse files Browse the repository at this point in the history
* Nomination pool fix

* fmt
  • Loading branch information
Szegoo authored Jun 30, 2022
1 parent f397697 commit 279593d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frame/nomination-pools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
//!
//! ### Join
//!
//! A account can stake funds with a nomination pool by calling [`Call::join`].
//! An account can stake funds with a nomination pool by calling [`Call::join`].
//!
//! ### Claim rewards
//!
Expand Down Expand Up @@ -87,7 +87,7 @@
//! [`Call::unbond`] and [`Call::withdraw_unbonded`]. Once a pool is in destroying state, it
//! cannot be reverted to another state.
//!
//! A pool has 3 administrative roles (see [`PoolRoles`]):
//! A pool has 4 administrative roles (see [`PoolRoles`]):
//!
//! * Depositor: creates the pool and is the initial member. They can only leave the pool once all
//! other members have left. Once they fully leave the pool is destroyed.
Expand Down Expand Up @@ -297,8 +297,8 @@
//! * PoolMembers cannot vote with their staked funds because they are transferred into the pools
//! account. In the future this can be overcome by allowing the members to vote with their bonded
//! funds via vote splitting.
//! * PoolMembers cannot quickly transfer to another pool if they do no like nominations, instead
//! they must wait for the unbonding duration.
//! * PoolMembers cannot quickly transfer to another pool if they do not like the nominations,
//! instead they must wait for the unbonding duration.
//!
//! # Runtime builder warnings
//!
Expand Down
1 change: 1 addition & 0 deletions frame/nomination-pools/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ impl sp_staking::StakingInterface for StakingMock {
Ok(())
}

#[cfg(feature = "runtime-benchmarks")]
fn nominations(_: Self::AccountId) -> Option<Vec<Self::AccountId>> {
Nominations::get()
}
Expand Down

0 comments on commit 279593d

Please sign in to comment.