referrerpolicy=no-referrer-when-downgrade
pallet_transaction_payment

Trait MultiplierUpdate

Source
pub trait MultiplierUpdate: Convert<Multiplier, Multiplier> {
    // Required methods
    fn min() -> Multiplier;
    fn max() -> Multiplier;
    fn target() -> Perquintill;
    fn variability() -> Multiplier;
}
Expand description

Something that can convert the current multiplier to the next one.

Required Methods§

Source

fn min() -> Multiplier

Minimum multiplier. Any outcome of the convert function should be at least this.

Source

fn max() -> Multiplier

Maximum multiplier. Any outcome of the convert function should be less or equal this.

Source

fn target() -> Perquintill

Target block saturation level

Source

fn variability() -> Multiplier

Variability factor

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 MultiplierUpdate for ()

Implementors§

Source§

impl<M: Get<Multiplier>> MultiplierUpdate for ConstFeeMultiplier<M>

Source§

impl<T, S, V, M, X> MultiplierUpdate for TargetedFeeAdjustment<T, S, V, M, X>
where T: Config, S: Get<Perquintill>, V: Get<Multiplier>, M: Get<Multiplier>, X: Get<Multiplier>,