@@ -306,8 +306,8 @@ use sp_runtime::{
306
306
Percent , Perbill , PerU16 , PerThing , RuntimeDebug , DispatchError ,
307
307
curve:: PiecewiseLinear ,
308
308
traits:: {
309
- Convert , Zero , StaticLookup , CheckedSub , Saturating , SaturatedConversion , AtLeast32Bit ,
310
- Dispatchable ,
309
+ Convert , Zero , StaticLookup , CheckedSub , Saturating , SaturatedConversion ,
310
+ AtLeast32BitUnsigned , Dispatchable ,
311
311
} ,
312
312
transaction_validity:: {
313
313
TransactionValidityError , TransactionValidity , ValidTransaction , InvalidTransaction ,
@@ -493,7 +493,7 @@ pub struct StakingLedger<AccountId, Balance: HasCompact> {
493
493
494
494
impl <
495
495
AccountId ,
496
- Balance : HasCompact + Copy + Saturating + AtLeast32Bit ,
496
+ Balance : HasCompact + Copy + Saturating + AtLeast32BitUnsigned ,
497
497
> StakingLedger < AccountId , Balance > {
498
498
/// Remove entries from `unlocking` that are sufficiently old and reduce the
499
499
/// total by the sum of their balances.
@@ -544,7 +544,7 @@ impl<
544
544
}
545
545
546
546
impl < AccountId , Balance > StakingLedger < AccountId , Balance > where
547
- Balance : AtLeast32Bit + Saturating + Copy ,
547
+ Balance : AtLeast32BitUnsigned + Saturating + Copy ,
548
548
{
549
549
/// Slash the validator for a given amount of balance. This can grow the value
550
550
/// of the slash in the case that the validator has less than `minimum_balance`
0 commit comments