> For the complete documentation index, see [llms.txt](https://docs.algebra.finance/algebra-integral-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.algebra.finance/algebra-integral-documentation/introducing-algebra-integral-to-dexes/overview-of-algebra-integral/v3-vs.-v4-key-differences.md).

# V3 vs. V4: Key Differences

**V3 DEXes** (like Uniswap V3 or Algebra V3) introduced *concentrated liquidity*, enabling LPs to earn more by deploying capital within custom price ranges. However, core mechanics — like fee models, incentive logic, and routing — were still hardcoded into monolithic contracts. This made upgrades and experimentation difficult and expensive, requiring new deployments, liquidity migrations and costly audits of entire new codebase.

**V4 DEXes**, while keeping CLAMM at its core, use a **modular plugin system**. Features like dynamic fees, farming logic, or token-specific handling can be added, removed, or updated without touching the base contracts or migrating liquidity. This unlocks unprecedented flexibility for builders and protocols.

#### Why Modularity Matters for DEX Teams

With a modular architecture like **Algebra V4**, partnering DEX gains:

* **Plug-and-play upgrades** — Introduce new features without redeploying your entire DEX
* **Custom strategies** — Offer different mechanics for different pools or ecosystems
* **Faster innovation cycles** — Test, iterate, and deploy new ideas within weeks
* **No forced migrations** — Liquidity stays in place, users stay onboard

#### Algebra: The First Modular CLAMM Engine

Algebra pioneered modularity before it was mainstream — launching the first CLAMM engine with full plugin support in production. Over 20+ DEXes now run on Algebra, each fine-tuned with pool-specific logic and features.

From dynamic fees to referral systems and native farming, Algebra gives DEXes all the flexibility of V4 architecture.


---

# 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:

```
GET https://docs.algebra.finance/algebra-integral-documentation/introducing-algebra-integral-to-dexes/overview-of-algebra-integral/v3-vs.-v4-key-differences.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.
