Skip to content

feat: pay validators a per-diem rate plus collected fees, and make fees root-settable - #220

Open
JayWhite2357 wants to merge 5 commits into
mainfrom
feat/per-diem-validator-rewards-with-fees
Open

JayWhite2357 wants to merge 5 commits into
mainfrom
feat/per-diem-validator-rewards-with-fees

Conversation

@JayWhite2357

@JayWhite2357 JayWhite2357 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

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?

  • Adds pallet-parameters with a root-settable PerDiemRate.
  • Collects transaction fees into CollectedFees instead of burning them.
  • EraPayout pays PerDiemRate * total stake per day plus CollectedFees, replacing the hard-coded 9.7% yearly rate; PerDiemRate defaults to the equivalent daily rate (9.7% / 365.25).
  • Replaces FeeMultiplierUpdate = (), which zeroes the multiplier, with an explicit ConstFeeMultiplier of 0.
  • Makes WeightFeePerRefTime, TransactionByteFee, and FeeMultiplier root-settable, defaulting to current values.

Are these changes tested?

Yes.

@JayWhite2357
JayWhite2357 requested review from a team as code owners October 1, 2026 16:38
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

1.70.0

Bug Fixes

  • default prover-db indexer to disabled unless explicitly enabled (360803d
  • fallback to client hash when is missing (95794da
  • make on chain indexer keys saturate rather than default to (5f794de
  • rollback to git commit hash 6e668a9 (3d9b9d4
  • use finalized block in prover-db-indexer (50438ab

Features

  • add helper that queries the client for s. (4fc3952
  • add client native interface and extenality (d9c6c4d
  • add generic config key-value store for offchain workers (117b845
  • add pallet-parameters with root-settable per-diem reward rate (cf9b4a4
  • adds (a5b581d
  • collect transaction fees in the runtime (caba6cc
  • Document Snapshot Download Process (4c2608b
  • drop from prover_db_indexer (b3381c5
  • make transaction fees root-settable (b878309
  • pay validators a per-diem rate of total stake plus collected fees (8729ccd
  • register client externality to offchain worker (338c213
  • use client for (6679c06
  • use generic key value config for prover_db_indexing instead of storage/CLI based config (faff564

@JayWhite2357
JayWhite2357 marked this pull request as draft October 1, 2026 17:45
@JayWhite2357
JayWhite2357 force-pushed the feat/per-diem-validator-rewards-with-fees branch from 8475bb1 to 56af3ec Compare October 1, 2026 18:52
@JayWhite2357 JayWhite2357 changed the title feat: pay validators a per-diem rate of total stake plus collected transaction fees feat: pay validators a per-diem rate plus collected fees, and make fees root-settable Oct 1, 2026
@JayWhite2357
JayWhite2357 marked this pull request as ready for review October 1, 2026 18:56
@JayWhite2357
JayWhite2357 force-pushed the feat/per-diem-validator-rewards-with-fees branch from 56af3ec to b878309 Compare October 2, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant