polkadot icon indicating copy to clipboard operation
polkadot copied to clipboard

polkadot companion: #13416 (Staking Reward Rate API)

Open rossbulat opened this issue 2 years ago • 13 comments

This companion adds the inflation_rate API to staking runtime calls.

  • [x] added inflation mod to runtime constants to provide a base ideal stake (before auction factoring) and falloff.
  • [x] abstracts auctioned_slots into AuctionedSlots::get() to prevent repeating logic.
  • [x] abstracts ideal_stake into runtime_common::get_ideal_stake() to prevent repeating logic.

Companion for https://github.com/paritytech/substrate/pull/13416

rossbulat avatar Feb 22 '23 17:02 rossbulat

bot rebase

rossbulat avatar Feb 22 '23 17:02 rossbulat

Rebased

bot rebase

rossbulat avatar Feb 23 '23 17:02 rossbulat

Rebased

bot rebase

rossbulat avatar Feb 24 '23 15:02 rossbulat

Rebased

bot rebase

rossbulat avatar Feb 25 '23 12:02 rossbulat

Rebased

bot rebase

rossbulat avatar Feb 26 '23 04:02 rossbulat

Rebased

The CI pipeline was cancelled due to failure one of the required jobs. Job name: test-linux-stable Logs: https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/2448770

paritytech-cicd-pr avatar Feb 26 '23 04:02 paritytech-cicd-pr

bot rebase

rossbulat avatar Feb 27 '23 03:02 rossbulat

Branch is already up-to-date