Assessment reports>StaFi>Threat Models>transferAdmin

Function: transferAdmin(address _newAdmin)

Allows the transfer of the admin role to a new address.

Inputs

  • _newAdmin

    • Control: Fully controlled by the owner.

    • Constraints: Checked that it is not the zero address.

    • Impact: The address of the new admin.

Branches and code coverage (including function calls)

Intended branches

  • Should be a two-step process, such that the new admin has to accept the role.

  • Should set the new admin address.

Negative behavior

  • No one other than the current admin should be able to call this function. Ensured through the onlyAdmin modifier.

Zellic © 2024Back to top ↑