Assessment reports>Ostium>Threat Model>setDelegate

Function: setDelegate(address delegate)

Allows another address to make calls on behalf of the sender.

Inputs

  • delegate

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Sets the delegation.

Branches and code coverage

Intended branches

  • Delegation is set properly.

  • Delegated address can call delegatedAction for the sender.

Negative behavior

  • Sender is a contract.

  • Delegate is the null address.

Zellic © 2024Back to top ↑