MIMOProxyActions
The MIMOProxyActions contract can be seen as an extension of the MIMOProxy. It adds 2 main functionalities :
The ability for a
MIMOProxyowner to transfer native tokens (ETH for example) back to his address through thewithdrawETH()function.The ability to chain calls within a single transaction through the
multicall()function.
These functions have been outsourced to an action contract in order to reduce the deployments costs of the MIMOProxy.
withdrawETH()
withdrawETH()Sends ETH back to owner of the MIMOProxy.
Requirements :
Caller must be the
MIMOProxyowner
multicall(address[] calldata targets, bytes[] calldata data)
multicall(address[] calldata targets, bytes[] calldata data)Call multiple functions and returns the data from all of them if they all succeed.
Requirements :
Must be called through the
MIMOProxyexecute()functionTargets must all be contracts not EOA
targetslength must be the same asdatalength
targets
address[]
Address array of all contracts to call
data
bytes[]
Bytes array of encoded function data for each target call
Last updated
Was this helpful?

