pub trait TakeRevenue {
    fn take_revenue(revenue: MultiAsset);
}
Expand description

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

Required Methods§

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

Implementations on Foreign Types§

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>

impl<AccountId, AssetId, Balance: AtLeast32BitUnsigned, Price, C: Convert<MultiLocation, Option<AssetId>>, D: DepositFee<AccountId, AssetId, Balance>, F: TransactionMultiPaymentDataProvider<AccountId, AssetId, Price>> TakeRevenue for ToFeeReceiver<AccountId, AssetId, Balance, Price, C, D, F>