Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ank4n committed Nov 3, 2023
1 parent d30f93a commit eecc0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/frame/staking/src/pallet/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1905,8 +1905,8 @@ impl<T: Config> Pallet<T> {

// We take total instead of active as the nominator might have requested to unbond
// some of their stake that is still exposed in the current era.
// This can happen when there is a slash in the current era so we only warn.
if sum <= Self::ledger(Stash(nominator.clone()))?.total {
// This can happen when there is a slash in the current era so we only warn.
log!(warn, "nominator stake exceeds what is bonded.");
}

Expand Down

0 comments on commit eecc0e1

Please sign in to comment.