Compute yearly inflation on-chain allowing to change x_ideal according to number of slots. (#8332)

* new crate

* Update frame/staking/reward-fn/src/lib.rs

Co-authored-by: Gavin Wood <gavin@parity.io>

* fix doc

Co-authored-by: Gavin Wood <gavin@parity.io>
This commit is contained in:
Guillaume Thiolliere
2021-03-19 09:32:22 +01:00
committed by GitHub
parent c727799531
commit 28fa5c2b6c
5 changed files with 370 additions and 0 deletions
+8
View File
@@ -5372,6 +5372,14 @@ dependencies = [
"syn",
]
[[package]]
name = "pallet-staking-reward-fn"
version = "3.0.0"
dependencies = [
"log",
"sp-arithmetic",
]
[[package]]
name = "pallet-sudo"
version = "3.0.0"