feat: pay validators a per-diem rate plus collected fees, and make fees root-settable - #220
Open
JayWhite2357 wants to merge 5 commits into
Open
JayWhite2357 wants to merge 5 commits into
JayWhite2357 wants to merge 5 commits into
Conversation
1.70.0Bug Fixes
Features
|
JayWhite2357
marked this pull request as draft
October 1, 2026 17:45
JayWhite2357
force-pushed
the
feat/per-diem-validator-rewards-with-fees
branch
from
October 1, 2026 18:52
8475bb1 to
56af3ec
Compare
JayWhite2357
marked this pull request as ready for review
October 1, 2026 18:56
JayWhite2357
force-pushed
the
feat/per-diem-validator-rewards-with-fees
branch
from
October 2, 2026 14:27
56af3ec to
b878309
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Rationale for this change
We wish for validator rewards to be a governance-adjustable daily rate of total stake, for transaction fees to go to validators instead of being burned, and for transaction costs to be adjustable without a runtime upgrade.
What changes are included in this PR?
pallet-parameterswith a root-settablePerDiemRate.CollectedFeesinstead of burning them.EraPayoutpaysPerDiemRate * total stakeper day plusCollectedFees, replacing the hard-coded 9.7% yearly rate;PerDiemRatedefaults to the equivalent daily rate (9.7% / 365.25).FeeMultiplierUpdate = (), which zeroes the multiplier, with an explicitConstFeeMultiplierof 0.WeightFeePerRefTime,TransactionByteFee, andFeeMultiplierroot-settable, defaulting to current values.Are these changes tested?
Yes.