Trait xcm_builder::TakeRevenue
source · pub trait TakeRevenue {
// Required method
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§
sourcefn take_revenue(revenue: MultiAsset)
fn take_revenue(revenue: MultiAsset)
Do something with the given revenue
, which is a single non-wildcard MultiAsset
.
Implementations on Foreign Types§
source§impl TakeRevenue for ()
impl TakeRevenue for ()
Null implementation just burns the revenue.