Assessment reports>Ethena>Threat Models>removeRole

Function: removeRole(Role role, address signer)

Allows the account with a role to remove the signer and decrease the counter of trusted signers.

Inputs

  • role

    • Constraints: The caller should have the role.

    • Impact: N/A.

  • signer

    • Constraints: _roleRegistry[role][msg.sender][signer] is true.

    • Impact: N/A.

Branches and code coverage (including function calls)

Intended branches

  • _roleRegistry[role][msg.sender][signer] was deleted and _roleActiveSignerCount[role][msg.sender] was decreased.

Negative behavior

  • _roleRegistry[role][msg.sender][signer] is false.

  • The caller has not the role.

Zellic © 2024Back to top ↑