Trait staging_xcm_builder::HandleFee
source · pub trait HandleFee {
// Required method
fn handle_fee(
fee: Assets,
context: Option<&XcmContext>,
reason: FeeReason,
) -> Assets;
}
Expand description
Handles the fees that are taken by certain XCM instructions.
Required Methods§
sourcefn handle_fee(
fee: Assets,
context: Option<&XcmContext>,
reason: FeeReason,
) -> Assets
fn handle_fee( fee: Assets, context: Option<&XcmContext>, reason: FeeReason, ) -> Assets
Do something with the fee which has been paid. Doing nothing here silently burns the fees.
Returns any part of the fee that wasn’t consumed.
Object Safety§
This trait is not object safe.