Type Alias runtime_common::FeeSplit

source ·
pub type FeeSplit<R, B1, B2> = SplitFeesByRatio<R, FeeSplitRatio, B1, B2>;
Expand description

Split the fees using a preconfigured Ratio (runtime_common::FeeSplitRatio).

Aliased Type§

struct FeeSplit<R, B1, B2>(/* private fields */);

Trait Implementations§

source§

impl<R, Ratio, Beneficiary1, Beneficiary2> OnUnbalanced<Imbalance<<Pallet<R, ()> as Inspect<<R as Config>::AccountId>>::Balance, <Pallet<R, ()> as Balanced<<R as Config>::AccountId>>::OnDropCredit, <Pallet<R, ()> as Balanced<<R as Config>::AccountId>>::OnDropDebt>> for SplitFeesByRatio<R, Ratio, Beneficiary1, Beneficiary2>where R: Config, Beneficiary1: OnUnbalanced<Credit<<R as Config>::AccountId, Pallet<R, ()>>>, Beneficiary2: OnUnbalanced<Credit<<R as Config>::AccountId, Pallet<R, ()>>>, Ratio: Get<(u32, u32)>,

source§

fn on_unbalanceds<B>( fees_then_tips: impl Iterator<Item = Credit<<R as Config>::AccountId, Pallet<R, ()>>> )

Handler for some imbalances. The different imbalances might have different origins or meanings, dependent on the context. Will default to simply calling on_unbalanced for all of them. Infallible.
§

fn on_unbalanced(amount: Imbalance)

Handler for some imbalance. Infallible.
§

fn on_nonzero_unbalanced(amount: Imbalance)

Actually handle a non-zero imbalance. You probably want to implement this rather than on_unbalanced.