pub fn set_inflation<T: Config>(
    collator_max_rate_percentage: Perquintill,
    collator_annual_reward_rate_percentage: Perquintill,
    delegator_max_rate_percentage: Perquintill,
    delegator_annual_reward_rate_percentage: Perquintill
)
Expand description

Set the annual inflation rate to derive per-round inflation.

The inflation details are considered valid if the annual reward rate is approximately the per-block reward rate multiplied by the estimated* total number of blocks per year.

The estimated average block time is twelve seconds.

NOTE: Iterates over CandidatePool and for each candidate over their delegators to update their rewards before the reward rates change. Needs to be improved when scaling up MaxTopCandidates.

The dispatch origin must be Root.

Emits RoundInflationSet.

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::set_inflation.