> For the complete documentation index, see [llms.txt](https://docs.pancakeswap.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pancakeswap.finance/chinese/jiao-yi/pancakeswap-exchange/smart-router-v2.md).

# Smart Router (V2)

<figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/Smart%20Router.png" alt=""><figcaption></figcaption></figure>

PancakeSwap Smart Router 是一种路由算法，它连接 AMM 和 StableSwap（BNB Chain）以及 AMM 和 Market Maker（Ethereum），以提供更好的流动性和定价。它使用一种智能订单路由算法，跨多个池执行交易，为交易者找到最优价格。有关 StableSwap 的更多信息，[请点击此处](broken://pages/nNPogTZMxocdyFIBYbkE)；有关 Market Maker 集成，[请点击此处](/chinese/jiao-yi/pancakeswap-exchange/market-maker-integration.md)。

厨房将逐步推出 StableSwap 交易对，以进一步测试和改进该产品。

## 我为什么应该在 AMM 兑换中使用 Smart Router？

* 以相同的交易步骤更高效地兑换你的稳定币或其他资产价格相近的交易对。
* 与 Market Maker 进行交易，它们在交易上可能提供比普通 PancakeSwap AMM 更优的执行。
* 借助 StableSwap 功能，交易滑点低于普通 AMM。
* 与普通 AMM 相比，StableSwap 的交易手续费更低。

## 仍在烹饪中

* 更好的输出 UI。
* 用于更高效交易的拆分路由。例如，根据交易规模和流动性，路由将交易对的 50% 发送到不同的路由以节省费用。


---

# 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://docs.pancakeswap.finance/chinese/jiao-yi/pancakeswap-exchange/smart-router-v2.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.
