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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.