Assessment reports>Orderly Network>Threat Model>setOperatorManagerAddress

Function: setOperatorManagerAddress(address _operatorManagerAddress)

This allows the owner of the contract to set the address of the operatorManagerAddress contract.

Inputs

  • _operatorManagerAddress

    • Control: onlyOwner of contract can call this function.

    • Constraints: The new address is not zero.

    • Impact: Any contract can be inherited from the current to have the ability to add the access-control modifier onlyOperatorManager to functions to allow only trusted operatorManager address to call them.

Branches and code coverage

Intended branches

  • New address was set successfully.

Negative behavior

  • Zero address.

  • The same address already set.

  • Caller is not an owner.

Zellic © 2024Back to top ↑