> For the complete documentation index, see [llms.txt](https://docs.t0ns.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.t0ns.com/getting-started/how-to-swap-and-provide-liquidity.md). Agents can also search and read this documentation through its [MCP server](https://docs.t0ns.com/~gitbook/mcp).

# How to Swap & Provide Liquidity

This page covers the two basic actions most users start with on t0ns: swapping tokens and adding liquidity to a pool.

## Before you start

You need two things:

1. A wallet connected via TON Connect. If not, start with [Wallets & Accounts](https://docs.t0ns.com/getting-started/wallets-and-accounts.md).
2. A small TON balance for gas unless your wallet and the selected flow support gasless execution. See [Gasless Swaps Explained](https://docs.t0ns.com/getting-started/gasless-swaps-explained.md).

After connection, the Mini App usually opens on the swap screen.

## How to execute a swap

### 1. Open the swap screen

* If you are already in the default flow, stay on the **Swap** screen.
* If you moved to another tab, return to the swap form first.

### 2. Choose the token pair

The form has two fields:

* **Pay**: the token you send.
* **Receive**: the token you want back.

Choose each token from the list or search by ticker and contract address. If the asset is unfamiliar, verify the contract in the explorer before proceeding.

### 3. Enter the amount

You can either:

* enter how much of the input token you want to spend, or
* enter the target output and let the app calculate the required input.

The **MAX** action usually leaves a small gas reserve instead of emptying the wallet completely.

### 4. Review the trade parameters

Before confirming, check:

* the quoted rate,
* minimum received,
* the route,
* protocol and network fees,
* price impact.

If slippage or price impact looks unusually high, reduce size or reassess the pair.

### 5. Confirm the swap

1. Tap **Swap**.
2. Review the TON Connect request inside the wallet.
3. Sign the transaction.

The interface then shows the status of the trade and refreshes balances after confirmation.

## How to add liquidity to a pool

Providing liquidity means depositing tokens into a pool so other users can trade against it. In return, the position can earn a share of swap fees.

### 1. Find the pool

The usual entry points are:

1. the selected pair on the swap screen, or
2. a dedicated pool or liquidity section in the app.

On the pool screen, check the pair, pool type, fee tier, and any displayed liquidity or APR metrics.

### 2. Choose the deposit format

Depending on the pool type, you may see:

* **Two-sided deposit**, where you provide both tokens in the required proportion.
* **Single-sided deposit**, where the protocol converts part of one token into the missing side.

### 3. Enter the amounts and review your share

Before deposit, the interface usually shows:

* token input fields,
* an estimated pool share,
* any visible APR or yield estimate,
* warnings about risks such as impermanent loss.

If the token needs an approval step first, complete that transaction before the deposit.

### 4. Confirm the deposit

1. Tap **Add Liquidity** or **Deposit**.
2. Review the wallet prompt.
3. Sign the transaction.

After confirmation, the position appears in your liquidity or portfolio view.

## Managing and withdrawing a position

From the position view you can usually:

* review pool share and token amounts,
* withdraw part of the position,
* exit the position completely.

When you withdraw, you receive tokens back in the pool's current proportions, not necessarily the same mix you deposited.

## Minimal checklist before you act

* Verify token contract addresses instead of relying only on names.
* Double-check which token you pay and which token you receive.
* Keep slippage settings reasonable, especially in thin pools.
* Remember that LP positions carry a different risk profile from simply holding a token.

For a deeper view of pool types and LP risk, continue with [Liquidity Pools](https://docs.t0ns.com/trading-and-liquidity/liquidity-pools.md) and [Risks & Impermanent Loss](https://docs.t0ns.com/trading-and-liquidity/risks-and-impermanent-loss.md).
