[Fix] Remove redundant stash from Stake (#13907)

* [Fix] Remove redundant stash from Stake

* fix tests
This commit is contained in:
Roman Useinov
2023-04-16 00:25:56 +02:00
committed by GitHub
parent 019faa446c
commit 5cecb888b2
3 changed files with 4 additions and 6 deletions
-2
View File
@@ -58,8 +58,6 @@ impl<AccountId, Balance> OnStakerSlash<AccountId, Balance> for () {
/// A struct that reflects stake that an account has in the staking system. Provides a set of
/// methods to operate on it's properties. Aimed at making `StakingInterface` more concise.
pub struct Stake<T: StakingInterface + ?Sized> {
/// The stash account whose balance is actually locked and at stake.
pub stash: T::AccountId,
/// The total stake that `stash` has in the staking system. This includes the
/// `active` stake, and any funds currently in the process of unbonding via
/// [`StakingInterface::unbond`].