Skip to main content

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​

  1. Access Control: Validates that the caller is the proposed superUser using the isSuperUser modifier. Reverts with InvalidUser if not the proposed superUser.
  2. Time Validation: Checks that the 7-day acceptance period has elapsed using the timeElapsed modifier. Reverts with TimeNotElapsed if called too early.
  3. State Update: Sets the caller as the new superUser and clears the proposal data.
  4. Governance Transition: Completes the superUser transition process and updates system governance.

Governance Lifecycle​

State Queries​

The acceptSuperUser function represents the final, irreversible step in the governance transition process, emphasizing the importance of careful consideration and preparation before execution.