Trait loans::OnSlash

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§

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

Implementations on Foreign Types§

§

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

§

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

Implementors§

source§

impl<T: Config> OnSlash<<T as Config>::AccountId, <T as Config>::CurrencyId, <T as Config>::Balance> for OnSlashHook<T>