Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 279593d

Browse files
authored
nomination-pools fix (#11748)
* Nomination pool fix * fmt
1 parent f397697 commit 279593d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

frame/nomination-pools/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
//!
4444
//! ### Join
4545
//!
46-
//! A account can stake funds with a nomination pool by calling [`Call::join`].
46+
//! An account can stake funds with a nomination pool by calling [`Call::join`].
4747
//!
4848
//! ### Claim rewards
4949
//!
@@ -87,7 +87,7 @@
8787
//! [`Call::unbond`] and [`Call::withdraw_unbonded`]. Once a pool is in destroying state, it
8888
//! cannot be reverted to another state.
8989
//!
90-
//! A pool has 3 administrative roles (see [`PoolRoles`]):
90+
//! A pool has 4 administrative roles (see [`PoolRoles`]):
9191
//!
9292
//! * Depositor: creates the pool and is the initial member. They can only leave the pool once all
9393
//! other members have left. Once they fully leave the pool is destroyed.
@@ -297,8 +297,8 @@
297297
//! * PoolMembers cannot vote with their staked funds because they are transferred into the pools
298298
//! account. In the future this can be overcome by allowing the members to vote with their bonded
299299
//! funds via vote splitting.
300-
//! * PoolMembers cannot quickly transfer to another pool if they do no like nominations, instead
301-
//! they must wait for the unbonding duration.
300+
//! * PoolMembers cannot quickly transfer to another pool if they do not like the nominations,
301+
//! instead they must wait for the unbonding duration.
302302
//!
303303
//! # Runtime builder warnings
304304
//!

frame/nomination-pools/src/mock.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ impl sp_staking::StakingInterface for StakingMock {
111111
Ok(())
112112
}
113113

114+
#[cfg(feature = "runtime-benchmarks")]
114115
fn nominations(_: Self::AccountId) -> Option<Vec<Self::AccountId>> {
115116
Nominations::get()
116117
}

0 commit comments

Comments
 (0)