Type Alias moonbase_runtime::FastAdjustingFeeUpdate
source · pub type FastAdjustingFeeUpdate<R> = TargetedFeeAdjustment<R, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier, MaximumMultiplier>;
Expand description
A “Fast” TargetedFeeAdjustment. Parameters chosen based on model described here: https://research.web3.foundation/Polkadot/overview/token-economics#1-fast-adjusting-mechanism
The adjustment algorithm boils down to:
diff = (previous_block_weight - target) / maximum_block_weight next_multiplier = prev_multiplier * (1 + (v * diff) + ((v * diff)^2 / 2)) assert(next_multiplier > min) where: v is AdjustmentVariable target is TargetBlockFullness min is MinimumMultiplier
Aliased Type§
struct FastAdjustingFeeUpdate<R>(/* private fields */);