Uniswap Guide

Uniswap V2 vs V3 vs V4: What Actually Changed and Why It Matters

If you are trying to understand the differences between Uniswap V2, V3, and V4, the short answer is this: each version was a major architectural upgrade focused on capital efficiency, flexibility, and cost. V2 introduced the classic constant product AMM model, V3 added concentrated liquidity with multiple fee tiers, and V4 introduced a plugin-based "Hooks" system that allows developers to customize pools in ways that were previously impossible. Below, we break down the specific changes so you can decide which version fits your trading or liquidity strategy. ## The Core Model: From Constant Product to Concentrated Liquidity The most fundamental shift between V2 and V3 was how liquidity is deployed. V2 used a simple curve where liquidity was spread across the entire price range of zero to infinity. V3 changed this by allowing liquidity providers (LPs) to concentrate their capital within a custom price range. ### V2: The Original AMM Blueprint - **Price range:** 0 to infinity (full range only). - **LP strategy:** Passive; you provide liquidity and earn fees proportional to your share, but your capital is used inefficiently because most of it sits idle at extreme prices. - **Fee structure:** A single flat fee (0.30% for standard pairs) that applied to all pools. ### V3: Capital Efficiency Through Custom Ranges - **Price range:** LPs choose a specific range, such as $1,000 to $2,000. - **LP strategy:** Active; you can earn higher fees per dollar deposited because your capital works only within your chosen range. - **Fee tiers:** Multiple options (e.g., 0.05%, 0.30%, 1.00%) so pools can be tailored to volatile or stable assets. - **Key trade-off:** If the price exits your range, your liquidity stops earning fees and you hold a single asset until the price returns. ## V4: The Hooks Revolution and Singleton Architecture Uniswap V4 does not replace the concentrated liquidity model from V3; instead, it introduces a new layer of customization. The two biggest changes are the "singleton" contract and the "Hooks" system. ### The Singleton Contract: Lower Gas for Multi-Hop Trades In V2 and V3, each pool was a separate contract. If you wanted to trade ETH → USDC → DAI, the protocol had to move funds between multiple contracts, which cost extra gas. V4 uses a singleton contract, meaning all pools live in one smart contract. This allows the protocol to "flash accounting" internally, netting balances before settling, which reduces gas costs for complex trades. ### Hooks: Custom Logic Before and After Trades Hooks are external smart contracts that can execute logic at specific points during a pool's life—before a swap, after a swap, before liquidity is added, or after fees are collected. This is the biggest change because it turns Uniswap from a simple AMM into a platform for building new financial products. | Feature | V2 | V3 | V4 | | --- | --- | --- | --- | | Liquidity Model | Full range only | Concentrated (custom range) | Concentrated + Hooks | | Fee Structure | Single tier (0.30%) | Multiple tiers | Multiple tiers + custom fee logic via Hooks | | Pool Architecture | One contract per pool | One contract per pool | Singleton (all pools in one contract) | | Customization | None | None | Hooks for dynamic fees, oracles, limit orders | | Gas Efficiency | Baseline | Improved | Best for multi-hop trades | ## Why the Changes Matter for Traders and LPs Understanding the differences is not just academic; it changes your strategy. ### For Active Traders: V4 Lowers Slippage and Costs If you frequently trade across multiple pools, V4's singleton architecture is a clear win. You pay less gas, and because the protocol can internally route through multiple pools in a single transaction, you may see less slippage on complex routes. ### For Passive LPs: V3 and V4 Require More Management In V2, you could "set and forget" your liquidity. In V3 and V4, you must actively monitor the price. If the market moves outside your range, you stop earning fees and may be left holding an unwanted asset. However, the higher fee density within your range can compensate for the extra effort. ### For Developers: V4 Opens a New Design Space The Hooks system is the most significant change for builders. You can now create pools with dynamic fees that adjust based on volatility, implement on-chain limit orders, or build time-weighted average market maker (TWAMM) strategies directly into a pool. This was impossible in V2 and V3 without complex external contracts. ## Migration and Compatibility: What You Need to Know If you are currently using V2 or V3, you do not need to migrate. All versions run independently, and the Uniswap interface still supports them. However, if you want to access the newest features, you will need to move your positions. - **V2 to V3:** Requires withdrawing your LP tokens from the V2 pool and then depositing into a V3 pool with a chosen range. There is no automatic migration. - **V3 to V4:** Similar process; you must close your V3 position and open a new one in a V4 pool. Note that V4 pools are only available if a deployer has created them with the specific Hooks they want to use. - **Liquidity incentives:** Historically, Uniswap has not offered yield farming rewards for LPs, so your decision should be based on fees and strategy, not token incentives. ## Final Takeaway: Which Version Should You Use? If you want simplicity and do not mind lower capital efficiency, V2 still works fine. If you are an active LP who wants to maximize fee yield, V3 is battle-tested and widely supported. If you are a developer looking to build custom AMM logic, or a trader who frequently routes through multiple pools, V4 is the future—but it is newer and has a smaller pool selection. The best approach is to use all three: V2 for long-tail assets, V3 for standard concentrated positions, and V4 for experimental or highly optimized strategies.