Skip to main content

ERC20SwapOperator

An operator that can be used to perform swaps between tokens on behalf of a Party.

Code

ERC20SwapOperator.sol

Functions

execute

Executes an operation.

function execute(bytes memory operatorData, bytes memory executionData, address) external payable;

Parameters

NameTypeDescription
operatorDatabytesData to be used by the operator, known at the time operation was proposed.
executionDatabytesData 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

NameTypeDescription
targetaddressThe target contract address.
isAllowedboolWhether the target is allowed.