Function: setOperator(address _operatorAddress)
This allows the owner of the contract to set the operatorAddress
.
Inputs
_operatorAddress
Control:
onlyOwner
of contract can call this function.Constraints: The new address is not zero.
Impact: Address of trusted operator that has full access to main functionality. Operator can perform withdraw action for any account and call function to process
settlement
,adl
, andliquidation
actions.
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.