Type Alias moonbeam_runtime::SlowAdjustingFeeUpdate
source · pub type SlowAdjustingFeeUpdate<R> = TargetedFeeAdjustment<R, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier, MaximumMultiplier>;
Expand description
Parameterized slow adjusting fee updated based on https://w3f-research.readthedocs.io/en/latest/polkadot/overview/2-token-economics.html#-2.-slow-adjusting-mechanism // editorconfig-checker-disable-line
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 SlowAdjustingFeeUpdate<R>(/* private fields */);