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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TakeRevenue for ()

Null implementation just burns the revenue.

Implementors§