Skip to content

Consider parameterise the era_payout formula #1559

Open
@gpestana

Description

Currently, the era_payout implementation has a few hardcoded parameters that affect the overall inflation and era rewards. Thus, a runtime upgrade is required to update any of those paramsters, e.g. when adjusting the ideal stake rate as explained here.

Consider parameterise the era_payout formula by moving some of the params to storage and gate them by governance.

Todo:

  • set ideal_stake (perquintill) through governance, instead of using the number of parachain slots to calculate
  • set max_annual_inflation (perquintill) through governance
  • set min_annual_inflation (perquintill) through governance
  • set falloff (perquintill) through governance
  • set max_staking_rewards (perquintill) through governance Implements maximum validator payout per era #1859
  • all values should default to the current ones

Consider using the already available parameters pallet and move the MaxStakedRewards and all inflation-related configs there as well.

Metadata

Assignees

Labels

I5-enhancementAn additional feature request.

Type

No type

Projects

  • Status

    ✂️ In progress.

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions