pub trait BalancedHold<AccountId>: Balanced<AccountId> + MutateHold<AccountId> {
    fn slash_held(
        who: &AccountId,
        amount: Self::Balance
    ) -> (CreditOf<AccountId, Self>, Self::Balance); }
Expand description

Trait for slashing a fungible asset which can be reserved.

Required methods

Reduce the balance of some funds on hold in an account.

The resulting imbalance is the first item of the tuple returned.

As much funds that are on hold up to amount will be deducted as possible. If this is less than amount, then a non-zero second item will be returned.

Implementors