> 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/trade/pancakeswap-exchange/smart-router-v2.md).

# Smart Router (V2)

<figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2Fxmxb5fcL7JUEqFn7obWM%2FSmart%20Router.png?alt=media&amp;token=8ba03110-a4d9-4899-b993-941163bb4892" alt=""><figcaption></figcaption></figure>

PancakeSwap Smart Router is a routing algorithm that links the AMM and stableswap (BNB Chain), and the AMM and market makers (Ethereum), to provide better liquidity and pricing. It uses a smart order routing algorithm that executes trades across multiple pools to find the best price for traders. For more information on StableSwap [click here](/trade/stableswap/classic-stableswap.md) and for the Market Maker integration [click here](/trade/pancakeswap-exchange/market-maker-integration.md).

The Kitchen will gradually roll out StableSwap pairs to further test and improve the product.

## Why should I use the Smart Router for my AMM swaps?

* Swap your stablecoins or other pairs with similar asset prices more efficiently with the same trade steps.
* Swap against market makers, who may provide better execution on trades than the normal PancakeSwap AMM.
* With the StableSwap function, the trading slippage is lower than normal AMM.
* The StableSwap trading fees are lower compared to the normal AMM.

## Still Cooking

* Better UI on output.
* Split routes for more efficient trades. Eg. Router sends 50% of the pair to a different route to save fees depending on the trade size and liquidity.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pancakeswap.finance/trade/pancakeswap-exchange/smart-router-v2.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
