acceptSuperUser
Function Type: external
Function Signature: acceptSuperUser()
Accepts a pending superUser proposal and completes the superUser transition, transferring governance control to the proposed address.
Workflow
- Access Control: Validates that the caller is the proposed superUser using the
isSuperUser
modifier. Reverts withInvalidUser
if not the proposed superUser. - Time Validation: Checks that the 7-day acceptance period has elapsed using the
timeElapsed
modifier. Reverts withTimeNotElapsed
if called too early. - State Update: Sets the caller as the new superUser and clears the proposal data.
- Governance Transition: Completes the superUser transition process and updates system governance.
Governance Lifecycle
proposeSuperUser()
- Initiate superUser changerejectProposalSuperUser()
- Cancel proposals
State Queries
getSuperUserData()
- Monitor proposal statusgetSuperUser()
- Verify current superUser
The acceptSuperUser
function represents the final, irreversible step in the governance transition process, emphasizing the importance of careful consideration and preparation before execution.