> For the complete documentation index, see [llms.txt](https://contracts.synapseprotocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://contracts.synapseprotocol.com/bridge/interfaces/isynapsebridge.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://contracts.synapseprotocol.com/bridge/interfaces/isynapsebridge.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
