# PancakeSwap Infinity

> If you're a developer or looking for detailed technical documentation, please refer to this doc <https://developer.pancakeswap.finance/>

**PancakeSwap Infinity** is the newest version of PancakeSwap AMM, designed to make decentralized trading faster, cheaper, and more flexible. It uses a modular design that allows for more customization and supports different types of trading pools and pricing models.

With Infinity, developers can build new features more easily using "hooks"—small bits of code that run at key actions in a pool’s lifecycle. These allow for use-cases like custom oracles, dynamic fee pools, advanced trading & liquidity management features, and more.

Compared to PancakeSwap v3, Infinity is more gas-efficient and future-proof. By decoupling core functions like accounting and trading logic, it allows for seamless integration of new pricing curves with hook capabilities—enabling the protocol to evolve without requiring redeployment.

### ⭐️ Key Features

1. Singleton
2. Flash Accounting
3. Hooks
4. Native Token Support
5. Custom Pricing Curves
6. ERC-6909
7. `donate()`

{% hint style="success" %}
**Open-sourced:** [PancakeSwap Infinity](https://github.com/pancakeswap/infinity-core) is released under an open-source license, encouraging developers to innovate, customize, and collaborate freely.
{% endhint %}


---

# 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.pancakeswap.finance/trade/pancakeswap-infinity.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.
