Skip to main content

Uniswap V3 vs Uniswap V4: AMM Architecture

Uniswap V4's key architectural changes from V3 are the hook system and singleton contract — representing the largest expansion of AMM programmability since concentrated liquidity.

Comparison

AspectUniswap V3Uniswap V4
Contract architectureOne contract per pool; multi-hop trades call multiple contractsSingleton: all pools managed by single contract; multi-hop = single interaction
Gas: multi-hop swapHigher: each hop is a separate contract call + transferLower: single contract interaction; no per-pool transfer overhead
Pool customizationFixed: fee tier (1bp/5bp/30bp) + tick spacingHooks: arbitrary logic at swap/LP/donate lifecycle points
Dynamic feesStatic fee per pool; no volatility-based adjustmentHook-programmable: fees can adjust to volatility, volume, or oracle data
LP position managementManual: LP must rebalance ranges when price movesHook-automated: hooks can auto-rebalance, compound fees, or relay to lending
MEV internalizationNot natively supportedHooks can capture arbitrage profits and return to LPs
Custom order typesLimited to range orders (V3-specific limit order equivalent)Hooks enable TWAP orders, stop-loss, and other complex order types
Risk surfacePer-pool risk isolation: bug in one pool doesn't affect othersSingleton concentrates TVL; a hook bug could affect all pools using that hook

Analysis

V4's hooks and singleton are a generational leap in AMM programmability but introduce new risk vectors. V3's battle-tested per-pool isolation remains the safer choice for simple use cases.

See also