ERC20SwapOperator
An operator that can be used to perform swaps between tokens on behalf of a Party.
Code
Functions
execute
Executes an operation.
function execute(bytes memory operatorData, bytes memory executionData, address) external payable;
Parameters
Name | Type | Description |
---|---|---|
operatorData | bytes | Data to be used by the operator, known at the time operation was proposed. |
executionData | bytes | Data to be used by the execution, known at the time operation was executed. |
<none> | address |
setTargetAllowed
Set the allowed targets that can be used to perform swaps. Can only be called by the PartyDAO multisig.
function setTargetAllowed(address target, bool isAllowed) external onlyPartyDao;
Parameters
Name | Type | Description |
---|---|---|
target | address | The target contract address. |
isAllowed | bool | Whether the target is allowed. |