Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Make staking inflation curve configurable. #3644
currently the curve used to compute the reward of the validators and nominators is fixed in srml-staking. This PR makes it configurable at the runtime (node-runtime) level.
* Draft for new design of NPoS rewards * finish code * fix test * add tests * improve log test * version bump * Update srml/staking/reward-curve/Cargo.toml Co-Authored-By: Kian Paimani <email@example.com> * u128 -> u64 * make conversion to smaller type safe * Update core/sr-primitives/src/curve.rs Co-Authored-By: Kian Paimani <firstname.lastname@example.org>