# ISynapseBridge

## Methods

### deposit

```solidity
function deposit(address to, uint256 chainId, contract IERC20 token, uint256 amount) external nonpayable
```

#### Parameters

| Name    | Type            | Description |
| ------- | --------------- | ----------- |
| to      | address         | undefined   |
| chainId | uint256         | undefined   |
| token   | contract IERC20 | undefined   |
| amount  | uint256         | undefined   |

### depositAndSwap

```solidity
function depositAndSwap(address to, uint256 chainId, contract IERC20 token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) external nonpayable
```

#### Parameters

| Name           | Type            | Description |
| -------------- | --------------- | ----------- |
| to             | address         | undefined   |
| chainId        | uint256         | undefined   |
| token          | contract IERC20 | undefined   |
| amount         | uint256         | undefined   |
| tokenIndexFrom | uint8           | undefined   |
| tokenIndexTo   | uint8           | undefined   |
| minDy          | uint256         | undefined   |
| deadline       | uint256         | undefined   |

### redeem

```solidity
function redeem(address to, uint256 chainId, contract IERC20 token, uint256 amount) external nonpayable
```

#### Parameters

| Name    | Type            | Description |
| ------- | --------------- | ----------- |
| to      | address         | undefined   |
| chainId | uint256         | undefined   |
| token   | contract IERC20 | undefined   |
| amount  | uint256         | undefined   |

### redeemAndRemove

```solidity
function redeemAndRemove(address to, uint256 chainId, contract IERC20 token, uint256 amount, uint8 liqTokenIndex, uint256 liqMinAmount, uint256 liqDeadline) external nonpayable
```

#### Parameters

| Name          | Type            | Description |
| ------------- | --------------- | ----------- |
| to            | address         | undefined   |
| chainId       | uint256         | undefined   |
| token         | contract IERC20 | undefined   |
| amount        | uint256         | undefined   |
| liqTokenIndex | uint8           | undefined   |
| liqMinAmount  | uint256         | undefined   |
| liqDeadline   | uint256         | undefined   |

### redeemAndSwap

```solidity
function redeemAndSwap(address to, uint256 chainId, contract IERC20 token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) external nonpayable
```

#### Parameters

| Name           | Type            | Description |
| -------------- | --------------- | ----------- |
| to             | address         | undefined   |
| chainId        | uint256         | undefined   |
| token          | contract IERC20 | undefined   |
| amount         | uint256         | undefined   |
| tokenIndexFrom | uint8           | undefined   |
| tokenIndexTo   | uint8           | undefined   |
| minDy          | uint256         | undefined   |
| deadline       | uint256         | undefined   |

### redeemv2

```solidity
function redeemv2(bytes32 to, uint256 chainId, contract IERC20 token, uint256 amount) external nonpayable
```

#### Parameters

| Name    | Type            | Description |
| ------- | --------------- | ----------- |
| to      | bytes32         | undefined   |
| chainId | uint256         | undefined   |
| token   | contract IERC20 | undefined   |
| amount  | uint256         | 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://contracts.synapseprotocol.com/bridge/interfaces/isynapsebridge.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.
