# MIMOProxyActions

The `MIMOProxyActions` contract can be seen as an extension of the `MIMOProxy`. It adds 2 main functionalities :&#x20;

* The ability for a `MIMOProxy` owner to transfer native tokens (ETH for example) back to his address through the `withdrawETH()` 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()`

Sends ETH back to owner of the `MIMOProxy`.

Requirements :&#x20;

* Caller must be the `MIMOProxy` owner

### `multicall(address[] calldata targets, bytes[] calldata data)`

Call multiple functions and returns the data from all of them if they all succeed.

Requirements :&#x20;

* Must be called through the `MIMOProxy` `execute()` function
* Targets must all be contracts not EOA
* `targets` length must be the same as `data` length

| Param Name | Type       | Description                                               |
| ---------- | ---------- | --------------------------------------------------------- |
| `targets`  | address\[] | Address array of all contracts to call                    |
| `data`     | bytes\[]   | Bytes array of encoded function data for each target call |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallel.best/developers-hub/parallel-v2/super-vault-sv/action-contracts/mimoproxyactions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
