Add governed rewarder factory, V1 controller, and vested minting - #18
Merged
Merged
Conversation
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
DeepstateRewarderV1 unchanged and extend it throughDeepstateRewarderV2DeepstateV1Controllerthat ownsDeepstateV1and delegates only pool-hook configuration to the factoryDeepstateMinterControlleras the policy-enforcing DEEP minter and temporary DEEP token administratorOwnableRolesownership and non-renounceability through an abstractDeepstateControllerbaseAuthority model
OwnableRolesfromDeepstateController; governance owns them and neither can renounce ownershipDeepstateToken.DEFAULT_ADMIN_ROLEtokenAdministrationEndsAtencodes the full lifecycle: zero before locking, the deadline while active, andtype(uint40).maxafter permanent return; the terminal sentinel prevents another cycle without a second storage flagMINTER_ROLEbits, and ownership renunciation is disabledMINTER_ROLE; ownership rotation moves that authority without changing delegated minter rolesDeepstateMinterController.MINTER_ROLEDeepstateV1HOOK_MANAGER_ROLEOwnable.onlyOwner, accept no caller-supplied amount, return no value, and report the burned live balance throughRewardBalanceBurned; there is no separate factory authorization pathDeepstateMinterController.MINTER_ROLE; it does not holdDeepstateToken.MINTER_ROLEDeepstateToken.MINTER_ROLEDeepstateV1ownership, redirect the vesting recipient, bypass the 30% mint policy, or change the supply capHOOK_MANAGER_ROLE, retire markets, administer controller roles, and recoverDeepstateV1ownershipFixed economics
floor(requestedMint * 30 / 70), making the recipient 30% of combined issuancefloor(100 million * 30 / 70)DEEP into vestingDeepstateToken.totalSupply()plus both new mint legs; burns reopen capacityfloor(900 million * 30 / 70)recipient streamSablier integration
Activation sequence
DeepstateMinterControllerwith Governor as its Solady owner, DEEP, Sablier Lockup, the final recipient, and the 20 billion DEEP cap; owner mint authority is independent of delegatedMINTER_ROLEbitsDeepstateV1Controllerwith Governor as ownerDeepstateRewarderFactorywith the same Governor owner, V1 controller, and minter controllerDeepstateToken.DEFAULT_ADMIN_ROLEto the minter controllerlockTokenAdministration(), which starts the exact two-year clock and ensures the controller hasDeepstateToken.MINTER_ROLEDeepstateMinterController.MINTER_ROLEwithgrantRoles(factory, MINTER_ROLE)DeepstateV1ownership to the V1 controllerDeepstateV1Controller.HOOK_MANAGER_ROLEwithgrantRoles(factory, HOOK_MANAGER_ROLE)factory.setOperator(operator)unlockTokenAdministration()permissionlessly; no account can call it soonerVerification
DeepstateController,DeepstateMinterController, andDeepstateV1Controller: 100% lines, statements, branches, and functionsfloor(30% of combined issuance)across the bounded mint rangeMINTER_ROLE, delegated minter roles, and same-owner transfer safety