# 什麼是 Autoswap？

Autoswap 讓您可以使用**單一代幣**提供、提取和管理流動性。無需手動計算比率、兌換後再回來操作——Byreal 在一筆原子交易中完成兌換和流動性操作。

## Autoswap 可以做什麼

| 功能        | 說明                            |
| --------- | ----------------------------- |
| **建立持倉**  | 使用單一代幣（代幣 X 或代幣 Y）開啟新的 LP 持倉  |
| **增加流動性** | 使用單一代幣向現有持倉添加更多流動性            |
| **減少流動性** | 以您選擇的單一代幣提取流動性                |
| **複製持倉**  | 使用單一代幣複製其他 LP 的持倉             |
| **再平衡**   | 關閉當前持倉並在不同價格範圍開啟新持倉——在一個流程中完成 |
| **複利**    | 一鍵領取已賺取的交易手續費並重新添加為流動性        |

## 運作原理

1. 您選擇一種代幣並輸入金額
2. Byreal 根據您的價格範圍和當前池價格計算最佳兌換比率
3. 兌換透過 [Jupiter](https://jup.ag/) 和其他領先的 Solana DEX 聚合器路由，在所有流動性來源中獲取最佳可用匯率
4. 兌換和流動性操作以原子方式執行——如果任何步驟失敗，整筆交易回滾，您的資金將被退還

## 安全機制

* **最佳匯率路由** — Byreal 透過 Jupiter 和其他領先的 DEX 聚合器路由每筆 Autoswap，比較所有 Solana DEX 的價格以找到最佳路線
* **原子交易** — 兌換 + 存入作為一筆交易執行。如果任何步驟失敗，一切回滾
* **價格影響保護** — 5% 時發出警告，10% 時阻止交易，防止在低流動性池中造成大額損失
* **Gas 預留** — 存入 SOL 時，系統自動預留 0.02 SOL 用於交易手續費

**準備好開始了嗎？** 請參閱[如何提供流動性](/zh-tw/liquidity-farming/how-to-provide-liquidity.md)和[如何管理您的持倉](/zh-tw/liquidity-farming/manage-lp-position.md)獲取逐步指南。


---

# 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.byreal.io/zh-tw/liquidity-farming/what-is-autoswap.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.
