pub type NegativeImbalanceOf<T> = <Pallet<T> as Currency<<T as Config>::AccountId>>::NegativeImbalance;

Trait Implementations§

source§

impl<R> OnUnbalanced<<Pallet<R, ()> as Currency<<R as Config>::AccountId>>::NegativeImbalance> for ToAuthor<R>where R: Config + Config, <R as Config>::AccountId: From<AccountId> + Into<AccountId>, <R as Config>::Balance: Into<u128>,

source§

fn on_nonzero_unbalanced(amount: NegativeImbalanceOf<R>)

Actually handle a non-zero imbalance. You probably want to implement this rather than on_unbalanced.
§

fn on_unbalanceds<B>(amounts: impl Iterator<Item = Imbalance>)where Imbalance: Imbalance<B>,

Handler for some imbalances. The different imbalances might have different origins or meanings, dependent on the context. Will default to simply calling on_unbalanced for all of them. Infallible.
§

fn on_unbalanced(amount: Imbalance)

Handler for some imbalance. Infallible.