referrerpolicy=no-referrer-when-downgrade
staging_xcm_builder

Trait TakeRevenue

Source
pub trait TakeRevenue {
    // Required method
    fn take_revenue(revenue: Asset);
}
Expand description

Function trait for handling some revenue. Similar to a negative imbalance (credit) handler, but for a Asset. Sensible implementations will deposit the asset in some known treasury or block-author account.

Required Methods§

Source

fn take_revenue(revenue: Asset)

Do something with the given revenue, which is a single non-wildcard Asset.

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.

Implementations on Foreign Types§

Source§

impl TakeRevenue for ()

Null implementation just burns the revenue.

Implementors§

impl<FungiblesMutateAdapter: TransactAsset, AccountId: Clone + Into<[u8; 32]>, ReceiverAccount: Get<Option<AccountId>>> TakeRevenue for XcmFeesTo32ByteAccount<FungiblesMutateAdapter, AccountId, ReceiverAccount>