# Uniswap V3添加/移除流动性教程？

Uniswap v3 通过「集中流动性」功能，允许 LP（流动性提供者） 为特定的价格区间提供流动性，并将不同用户对同一交易对提供的流动性汇总到一个池子里（形成一条综合曲线）供用户交易，从而提高资金利用率。

## Uniswap V3添加流动性

### 1. 添加代币设置手续费

点击「资金池」-「+ New Position」，选择要添加的代币并设置手续费费率。0.05% 适合稳定币交易对，0.3% 适合常规资产交易对，1% 适合小众资产交易对。

<figure><img src="https://1523574308-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaUD1j15UCzdjC6ftyzSr%2Fuploads%2Fb1CMlh4brpHbTjqkbCpK%2F1.png?alt=media&#x26;token=2bbcbf78-72cf-4204-9a4c-35171e4cd23d" alt=""><figcaption></figcaption></figure>

### 2. 设置价格区间

Min Price 是最低价，Max Price 是最高价，Current Price 是当前该资金池中的成交价（即当前汇率）。根据自己想要提供流动性的价格区间设置对应的 Min Price 和 Max Price 即可。

<figure><img src="https://1523574308-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaUD1j15UCzdjC6ftyzSr%2Fuploads%2FLa7jtQA3swf3diFKOTDX%2F2.png?alt=media&#x26;token=851aee6f-d8a6-4553-b9fb-6428b9a93480" alt=""><figcaption></figcaption></figure>

### 3. 设置要投入的代币数量

如果你是第一次提供某币种的流动性，则需要先对该币种进行授权。图中以 USDT 为例，点击「Approve USDT」进行授权，授权成功后再点击「Add」进入下一步。

<figure><img src="https://1523574308-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaUD1j15UCzdjC6ftyzSr%2Fuploads%2FTCi2LKzyrZSit4x7aZUz%2F3.png?alt=media&#x26;token=207e1e57-cc92-414a-9f39-9833d3aafe80" alt=""><figcaption></figcaption></figure>

### 4. 添加流动性

再次点击「Add」确认提供流动性，当交易发出后需要等待处理。成功后，即可在 Uniswap 的资金池页面看到添加的流动性。

<figure><img src="https://1523574308-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaUD1j15UCzdjC6ftyzSr%2Fuploads%2F3iAdvFQDxhtgc3l2d56d%2F4.png?alt=media&#x26;token=a5669719-b05d-4d67-ab3a-12692dc1f4de" alt=""><figcaption></figcaption></figure>

### 5. 查看添加流动性信息

点击「In range」即可查看在 Uniswap v3 存入流动性获取的 NFT（即流动性凭证），该 NFT 是一张动态的图片，展示了交易对、手续费率、ID 和价格区间等信息。

<figure><img src="https://1523574308-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaUD1j15UCzdjC6ftyzSr%2Fuploads%2FYdt5lDtcz3uB14Py8grj%2F5.png?alt=media&#x26;token=7178424c-36ba-4e07-b25b-4353895b2fd4" alt=""><figcaption></figcaption></figure>

## Uniswap V3移除流动性

### 1. 找到上面添加的流动性

在 DApp 浏览页面找到并打开 Uniswap，切换至资金池页面。接着点击「Remove Liquidity」，输入要退出流动性的资金数额，如果要全部退出，点击「Max」即可，然后点击「Remove」。

<figure><img src="https://1523574308-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaUD1j15UCzdjC6ftyzSr%2Fuploads%2Fz31qPCShhXAijrOUwKXX%2F6.png?alt=media&#x26;token=e9688591-cde7-4b2a-8909-15e73de9226c" alt=""><figcaption></figcaption></figure>

### 2. 移除流动性

在弹出的流动性移除详情页中再次点击「Remove」-「确认」，交易发出后需要等待处理。成功后，即可在 Uniswap 的资金池页面看到提示。回到 imToken 资产页面也会看到同步更新的资产数额。

<figure><img src="https://1523574308-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaUD1j15UCzdjC6ftyzSr%2Fuploads%2FlsqupTFATSYzFe7e3p7O%2F7.png?alt=media&#x26;token=486e0f86-88dc-440c-ae44-a2916f62215a" alt=""><figcaption></figcaption></figure>

流动性移除后，LP 仍能在 Uniswap 和 imToken 看到代表仓位的 NFT，但此时该仓位会在 Uniswap 上显示为 Inactive（非活跃）的状态。

## Uniswap V3资金池的特点：

**1、V3池子不支持分红合约**\
和V2相比，V3不支持LP分红、持币分红等复杂的分红合约，只能支持标准合约。如果您在 GTokenTool 创建的是分红合约，必须在V2添加流动性，以确保功能的稳定运行，不能在V3加池。

**2、V3锁池麻烦**\
很多人习惯通过 Pinksales 等平台锁池，一次锁个三年、五年的。但是V3的池子是无法这样锁的，至少在粉红平台并不支持，需要注意。

**3、Arb链不支持Uniswap V2**\
目前，Uniswap只在Arb链上部署V3合约。如果要想在Arb链上实现代币的复杂功能，需要通过SushiSwap V2做资金池。

**4、V3支持单边流动性**\
在一个成熟的资金池里，用户可以通过V3增加单边流动性，即只增加同一个代币，无需以交易对的形式添加流动性。

如有不明白或者不清楚的地方，请加入官方电报群：[**https://t.me/gtokentool**](https://t.me/gtokentool)


---

# 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.gtokentool.com/solana-basic/uniswapv3.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.
