referrerpolicy=no-referrer-when-downgrade

Trait pallet_asset_tx_payment::HandleCredit

source ·
pub trait HandleCredit<AccountId, B: Balanced<AccountId>> {
    // Required method
    fn handle_credit(credit: Credit<AccountId, B>);
}
Expand description

Allows specifying what to do with the withdrawn asset fees.

Required Methods§

source

fn handle_credit(credit: Credit<AccountId, B>)

Implement to determine what to do with the withdrawn asset fees. Default for CreditOf from the assets pallet is to burn and decrease total issuance.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A, B: Balanced<A>> HandleCredit<A, B> for ()

Default implementation that just drops the credit according to the OnDrop in the underlying imbalance type.

source§

fn handle_credit(_credit: Credit<A, B>)

Implementors§