MIMOProxyActions
The MIMOProxyActions
contract can be seen as an extension of the MIMOProxy
. It adds 2 main functionalities :
The ability for a
MIMOProxy
owner 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
MIMOProxy
owner
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
MIMOProxy
execute()
functionTargets must all be contracts not EOA
targets
length must be the same asdata
length
Param Name | Type | Description |
---|---|---|
| address[] | Address array of all contracts to call |
| bytes[] | Bytes array of encoded function data for each target call |
Last updated