Educational content, not investment advice. Crypto-asset values fluctuate.

← All lessons

Uniswap V4 — what's new and what's next

ETH Uniswap V4
ℹ️
Uniswap V4 launched in January 2025. TVL (Total Value Locked — the total amount of money locked in the protocol) is still growing — V3 still has more liquidity

What's new in Uniswap V4?

Uniswap V4 is a major upgrade. V3 was about concentrated liquidity (how to provide liquidity more efficiently). V4 is about modularity and efficiency.

Three main innovations:

  1. A singleton contract — one contract for every pool
  2. The Hooks system — programmable add-ons for every pool
  3. Flash Accounting — cheaper gas

The singleton contract

The V3 problem

V3 deploys a separate contract for every pool. That means:

The V4 solution

The hotel analogy

V3: every pool has its own "house." To visit several pools, you travel between houses. Expensive and slow.

V4: every pool lives in a single "hotel." Moving from one pool to another is just walking from room to room. Faster and cheaper.

Uniswap V3Uniswap V4
Number of contracts1 per pool1 for all
Multi-hop swap costExpensive (several transfers)Cheap (internal accounting)
Creating a new poolExpensive (millions of gas units)Cheap

The Hooks system — the biggest innovation

Hooks are add-ons you can "plug into" a pool. They bolt on extra logic.

Hooks = an app store

Like a phone with apps: the phone itself (the pool) works fine on its own, but with apps (hooks) it can do a lot more — calculate, monitor, automate.

What can Hooks do?

Hook pointWhen it firesWhat it can do
beforeSwapBefore every swapAdjust the fee based on market conditions
afterSwapAfter a swapCollect stats
beforeAddLiquidityBefore an LP depositCheck who's allowed to join
afterAddLiquidityAfter an LP depositAuto-stake

Hooks examples

1. Dynamic fees: Calm market = low fee. Volatile market = higher fee. Protects LPs from losses.

2. Auto-reinvesting: A hook automatically reinvests earnings. Nothing to do by hand.

3. Limit orders: Set your price, and the hook executes automatically.

Flash Accounting — cheaper gas

Flash Accounting lets you perform several actions at once, checking the balance only at the end.

How it worked in V3:

Swap A → B: 2 transfers
Swap B → C: 2 transfers
Total: 4 transfers = 4x gas

How it works in V4:

Swap A → B → C: internal accounting
At the end: 2 transfers
Total: 2 transfers = 2x gas
OperationV3 GasV4 GasSavings
Simple swap~130,000~100,000~23%
Swap through 2 pools~260,000~150,000~42%
Swap through 3 pools~390,000~180,000~54%

Native ETH — simpler

V3 required you to "wrap" ETH into WETH (an extra transaction). V4 supports native ETH directly. That means:

When to use V4 vs V3?

SituationRecommendedWhy
Long-term LP positionV3Well-tested, plenty of liquidity
Swapping through multiple poolsV4Cheaper gas
Need dynamic feesV4Hooks support this
Frequent operations (collect, move, swap)V4Lower gas adds up over many transactions
Maximum liquidityV3Still has more TVL for now
ℹ️
Uniswap V4 launched in January 2025, and the code is audited. TVL is still growing compared to V3 — lower TVL means less trading and potentially lower earnings. For large positions, V3 may still be the better fit.

Hooks — what's worth checking before you trust one

Since anyone can build a Hook, it's worth asking a few questions about each one. This is standard DeFi hygiene — once you know what to look for, checking takes a few minutes.

You can check each of these yourself in a few minutes — the point isn't to fear Hooks, it's to choose deliberately.

V4 and DeFi Risk OS

DeFi Risk OS platform support for V4 will arrive during Phase 2. Right now we support V3.

FeatureV3V4
LP position trackingYesPlanned
Earnings calculationYesPlanned
IL calculatorYesPlanned

V3 vs V4 — in short

  • V3 = concentrated liquidity (how to provide liquidity more efficiently)
  • V4 = modularity + efficiency (how pools can get smarter)

V4 doesn't replace V3. Both versions run side by side. LPs can choose whichever fits them better.

Once you understand Singleton, Hooks, and Flash Accounting, you can evaluate a specific pool for yourself and decide whether V4 is worth it, or whether you'd rather stick with V3 — you're deciding with arguments, not gut feeling.

Up next: Let's move to Solana — the Orca Whirlpool protocol, with Solana speed and prices.

Quick check
What is the Singleton contract in Uniswap V4?
Practice task
0 / 5
Compare a V3 and a V4 pool live

The best way to understand V4 is to see it side by side with V3. Takes about 10 minutes, no wallet needed.

We're ONLY exploring — don't open a position, and you don't need to connect a wallet. Remember: Uniswap = Ethereum/Arbitrum ONLY, it doesn't exist on Solana.

This is learning, not investing — use only small amounts you treat as tuition.

You just live-compared a V3 and a V4 pool — TVL, Volume, hooks — and decided for yourself which version you'd pick. Most people never run this kind of analysis.