# SiloRouter

> SiloRouter

Silo Router is a utility contract that aims to improve UX. It can batch any number or combination of actions (Deposit, Withdraw, Borrow, Repay) and execute them in a single transaction.

*SiloRouter requires only first action asset to be approved*

## Methods

### execute

```solidity
function execute(SiloRouter.Action[] _actions) external payable
```

Execute actions

*User can bundle any combination and number of actions. It's possible to do multiple deposits, withdraws etc. For that reason router may need to send multiple tokens back to the user.*

#### Parameters

| Name      | Type                 | Description                 |
| --------- | -------------------- | --------------------------- |
| \_actions | SiloRouter.Action\[] | array of actions to execute |

### siloRouterPing

```solidity
function siloRouterPing() external pure returns (bool)
```

#### Returns

| Name | Type | Description |
| ---- | ---- | ----------- |
| \_0  | bool | undefined   |

### wrappedNativeToken

```solidity
function wrappedNativeToken() external view returns (contract IWrappedNativeToken)
```

#### Returns

| Name | Type                         | Description |
| ---- | ---------------------------- | ----------- |
| \_0  | contract IWrappedNativeToken | undefined   |


---

# 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://devdocs.silo.finance/smart-contracts-overview/silorouter.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.
