Trait currency::OnSweep

source ·
pub trait OnSweep<AccountId, Balance> {
    // Required method
    fn on_sweep(who: &AccountId, amount: Balance) -> DispatchResult;
}

Required Methods§

source

fn on_sweep(who: &AccountId, amount: Balance) -> DispatchResult

Implementations on Foreign Types§

source§

impl<AccountId, Balance> OnSweep<AccountId, Balance> for ()

source§

fn on_sweep(_: &AccountId, _: Balance) -> DispatchResult

Implementors§

source§

impl<T, GetAccountId> OnSweep<<T as Config>::AccountId, Amount<T>> for SweepFunds<T, GetAccountId>where T: Config, GetAccountId: Get<T::AccountId>,