pub trait OnSlash<AccountId, CurrencyId, Balance> {
    // Required method
    fn on_slash(currency_id: CurrencyId, who: &AccountId, amount: Balance);
}
Expand description

Hook to run before slashing an account.

Required Methods§

source

fn on_slash(currency_id: CurrencyId, who: &AccountId, amount: Balance)

Implementations on Foreign Types§

source§

impl<AccountId, CurrencyId, Balance> OnSlash<AccountId, CurrencyId, Balance> for ()

source§

fn on_slash(_: CurrencyId, _: &AccountId, _: Balance)

Implementors§