Feat/p3 tokenomics - #60
Open
robertocarlous wants to merge 10 commits into
Open
Conversation
feat/p3-tokenomics deploys six proxies (DinTreasury, DinToken, DinCoordinator, DinFeeRouter, DinValidatorStake, DINModelRegistry). Resolves conflict with the four-proxy proxyAdmin fix landed in InfiniteZeroFoundation#52 by recording all six individual ProxyAdmin addresses (proxyAdminTreasury, proxyAdminToken, proxyAdminCoordinator, proxyAdminFeeRouter, proxyAdminStake, proxyAdminRegistry) in the deploy script output.
Collaborator
Author
|
Hi @umeradl, Pls can you check this. Thank you |
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.
P3 tokenomics: supply policy, stake governance & slash burn distribution (#42)
Summary
DinCoordinator— unlimited minting is now a DevNet-only mode, not a permanent property of the protocolMIN_STAKEandUNBONDING_PERIODfrom constants to DAO-settable storage vars, with per-model stake bounds and concurrent-registration cap slots reserved for follow-up enforcementjailValidator/reactivatelifecycle for slasher-initiated validator penaltiesChanges
DinCoordinator.solmintCap— 0 = uncapped (DevNet default);setMintCap()blocked after faucet retirementtotalMinted— running total for cap enforcementfaucetRetired— one-way flag;retireFaucet()permanently disablesdepositAndMint()depositAndMint()now guards both conditions before mintingDinValidatorStake.solMIN_STAKEandUNBONDING_PERIODpromoted fromconstantto governable storage vars initialized ininitialize();setMinStake()/setUnbondingPeriod()added (onlyOwner, validated)ModelStakeBoundsstruct +modelMinStakeBoundsmapping +setModelStakeBounds()— stored, not yet enforced (follow-up task)maxConcurrentRegistrationsPerStakeUnit+ setter — same patternaddress public slashTreasury+setSlashTreasury()— points atDinTreasuryslash()now routes slashed tokens: 50 % burned viaIBurnableToken.burn(), 50 % sent toslashTreasury(burns 100 % as a safe fallback if treasury not yet set)jailValidator(address, uint64, bytes32)—onlySlasherContract, extends an existing jail but never shortens itreactivate()— self-service exit from jail once the period has expired and stake is ≥MIN_STAKE__gapresized from[50]→[45](5 new slots)Deploy wiring (step 14)
DinValidatorStake.setSlashTreasury(dinTreasury)added toDeployPlatform.s.sol,DeployPlatform.t.sol, andSecurityFindings.t.solTests
File | New tests -- | -- DinValidatorStake.t.sol | 25 DinCoordinator.t.sol | +9 (mintCap / faucet) DeployPlatform.t.sol | +1 wiring assertion (slashTreasury) Suite total | 148 passed · 0 failed