referrerpolicy=no-referrer-when-downgrade

Trait staging_xcm_executor::traits::FeeManager

source ·
pub trait FeeManager {
    // Required methods
    fn is_waived(origin: Option<&Location>, r: FeeReason) -> bool;
    fn handle_fee(fee: Assets, context: Option<&XcmContext>, r: FeeReason);
}
Expand description

Handle stuff to do with taking fees in certain XCM instructions.

Required Methods§

source

fn is_waived(origin: Option<&Location>, r: FeeReason) -> bool

Determine if a fee should be waived.

source

fn handle_fee(fee: Assets, context: Option<&XcmContext>, r: FeeReason)

Do something with the fee which has been paid. Doing nothing here silently burns the fees.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FeeManager for ()

source§

fn is_waived(_: Option<&Location>, _: FeeReason) -> bool

source§

fn handle_fee(_: Assets, _: Option<&XcmContext>, _: FeeReason)

Implementors§

source§

impl<Config: Config> FeeManager for XcmExecutor<Config>