referrerpolicy=no-referrer-when-downgrade
sp_weights

Type Alias NoFee

Source
pub type NoFee<T> = FixedFee<0, T>;
Expand description

An implementation of WeightToFee that collects no fee.

Aliased Type§

struct NoFee<T>(/* private fields */);

Trait Implementations

Source§

impl<const F: u32, T> WeightToFee for FixedFee<F, T>
where T: BaseArithmetic + From<u32> + Copy + Unsigned,

Source§

type Balance = T

The type that is returned as result from calculation.
Source§

fn weight_to_fee(_: &Weight) -> Self::Balance

Calculates the fee from the passed weight.