> 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-infinity.md).

# PancakeSwap Infinity

> 如果你是开发者或正在寻找详细的技术文档，请参阅此文档 <https://developer.pancakeswap.finance/>

**PancakeSwap Infinity** 是 PancakeSwap AMM 的最新版本，旨在让去中心化交易更快速、更便宜、更灵活。它采用模块化设计，支持更多自定义，并支持不同类型的交易资金池和定价模型。

借助 Infinity，开发者可以使用 "hooks"（Hook）更轻松地构建新功能——这些小段代码会在资金池生命周期的关键操作时运行。它们支持诸如自定义预言机、动态费用资金池、高级交易与流动性管理功能等用例。

与 PancakeSwap v3 相比，Infinity 更省 gas 且更具前瞻性。通过将记账和交易逻辑等核心功能解耦，它支持无缝集成具备 Hook 能力的新定价曲线——使协议能够在无需重新部署的情况下持续演进。

### ⭐️ 主要功能

1. Singleton
2. Flash Accounting
3. Hooks
4. 原生代币支持
5. 自定义定价曲线
6. ERC-6909
7. `donate()`

{% hint style="success" %}
**开源：** [PancakeSwap Infinity](https://github.com/pancakeswap/infinity-core) 采用开源许可证发布，鼓励开发者自由创新、定制和协作。
{% endhint %}


---

# 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-infinity.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.
