-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Implements a % cap on staking rewards from era inflation #1660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 21 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e88d2cd
Adds minimum treasury inflation per era
gpestana 8a64bef
Adds set_min_treasury_fraction extrinsic; Improves tests
gpestana 810e9d8
Updates docs
gpestana 02d5512
refactors so that the max_stakers_payout is used rather than min_rema…
gpestana 9ad6e10
Merge branch 'master' of https://github.com/paritytech/polkadot-sdk i…
046119d
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
6cc5785
Addresses PR comments
gpestana 59fb828
fix westend weights
gpestana cf89d26
Defines backwards compatible default for MaxStakedRewards
gpestana 910c785
Merge branch 'master' into gpestana/403-treasury_mint_remainder
gpestana 50f12ad
bubbles up cap of staking rewards to staking pallet
gpestana d98148f
Backtracks changes to era_payout in runtime-common
gpestana 019c04a
improves tests
gpestana 261450c
More test improvements
gpestana c317d43
Merge branch 'master' into gpestana/403-treasury_mint_remainder
gpestana 13a0941
Fixes benchmarks
gpestana b1d3780
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
078bf86
".git/.scripts/commands/bench/bench.sh" --subcommand=runtime --runtim…
3d9a364
Merge branch 'master' into gpestana/403-treasury_mint_remainder
gpestana 1fdf817
Add prdoc
gpestana 9a18ae1
Fixes prdoc
gpestana 06c9eb8
sets max staked rewards through the set_staking_config callable
gpestana 48eab32
fixes nom pools e2e tests set_staking_configs
gpestana b3cb0d9
removes set_max_staked_rewards from westend weights
gpestana f9f4e94
fixes benchmarks
gpestana 4f589b3
Merge branch 'master' of https://github.com/paritytech/polkadot-sdk i…
73adb6c
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
72d5f3c
Merge branch 'master' into gpestana/403-treasury_mint_remainder
gpestana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
207 changes: 109 additions & 98 deletions
207
polkadot/runtime/westend/src/weights/pallet_staking.rs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| title: Implements a percentage cap on staking rewards from era inflation | ||
|
|
||
| doc: | ||
| - audience: Runtime Dev | ||
| description: | | ||
| The `pallet-staking` exposes a new perbill configuration, `MaxStakersRewards`, which caps the | ||
| amount of era inflation that is distributed to the stakers. The remainder of the era | ||
| inflation is minted directly into `T::RewardRemainder` account. This allows the runtime to be | ||
| configured to assign a minimum inflation value per era to a specific account (e.g. treasury). | ||
|
|
||
| crates: | ||
| - name: pallet-staking |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.