Add T5 treasury emissions with configurable parameters#281
Open
Add T5 treasury emissions with configurable parameters#281
Conversation
Port emissions from develop branch with key improvement: all emission parameters are configurable via setemitcfg action instead of hard-coded constants. Includes node owner tiered distributions, epoch-based T5 treasury emissions with decay, performance-based producer pay, and category splits (compute, capital, capex, governance). New actions: setemitcfg, setinittime, addnodeowner, claimnodedis, viewnodedist, initt5, processepoch, viewepoch, viewemitcfg. Producer round tracking added to onblock for performance-based rewards. ROA contract updated to call addnodeowner on node registration. 75 emission tests plus ROA test updates for emission config setup.
The emission config singleton must exist before regnodeowner can call addnodeowner. Insert setemitcfg with default parameters into the Cluster.bootstrap() sequence before activateroa/forcereg.
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.
Summary
developbranch onto master with configurable parameters viasetemitcfgaction (replaces ~20 hard-coded constants)onblockfor performance-based rewardst5_floorenforced as treasury reserve (emissions stop when floor is reached)standby_end_rankconfigurable for governance tuning of standby producer countNew Actions
setemitcfg— set/update all emission parameters (requires system auth)setinittime— set node owner distribution start timeaddnodeowner— register node owner (called inline from sysio.roa)claimnodedis— claim vested node owner distributionviewnodedist— read-only view of claimable distributionsinitt5— initialize T5 treasury stateprocessepoch— process next epoch distribution (permissionless)viewepoch— read-only T5 treasury stateviewemitcfg— read-only emission configuration