#1 BTC $80,499.54 -0.17% #2 ETH $2,341.99 -1.24% #3 USDT $0.9991 +0.01% #4 BNB $735.15 -0.20% #5 XRP $1.29 +0.38% #6 USDC $1.00 +0.02% #7 SOL $101.54 -0.58% #8 TRX $0.3290 -0.20% #9 STETH $2,330.79 -1.86% #10 ZEC $1,197.59 +2.37%

Blog / Historical Archive

History of AMMs: Uniswap v1 to v4

x*y=k to hooks.

Uniswap v1

Hayden Adams launched Uniswap v1 on November 2, 2018, inspired by a Vitalik Buterin post. Each pool paired a token with ETH and used the constant product rule x × y = k, so swapping changes reserves along a hyperbola.

Curve's StableSwap

Curve launched in January 2020 with an invariant mixing constant sum and constant product, controlled by an amplification coefficient A. That allows very low slippage between pegged assets such as USDC and DAI.

Uniswap v2

Released May 2020, v2 enabled any ERC-20 pair, flash swaps and time-weighted average price oracles. Its 0.30 percent fee and simple LP tokens were copied by SushiSwap, PancakeSwap and hundreds of forks.

Uniswap v3 concentrated liquidity

v3 launched May 5, 2021. LPs provide liquidity within price ranges defined by ticks of 1.0001^i, making capital up to 4,000 times more efficient within a narrow range, but positions stop earning fees outside it and have amplified impermanent loss.

Uniswap v4 hooks

v4 went live in January 2025 with a singleton contract, flash accounting and hooks that let pools run custom logic, such as dynamic fees or on-chain limit orders.

By the numbers

For History of AMMs, the reference figures are v1 of Nov 2018, v2 of May 2020, v3 of May 2021, v4 of Jan 2025. The comparison table below lines up version, launch, key feature — v1: Nov 2018 / ETH pairs, x·y=k; v2: May 2020 / ERC-20 pairs, TWAP; v3: May 2021 / Concentrated liquidity; v4: Jan 2025 / Hooks, singleton.

Modeling History of AMMs with the AMM Impermanent Loss Calculator

The AMM Impermanent Loss Calculator takes three inputs — Price ratio change (x), Deposit ($), Fee APR (%). IL = 2√r ÷ (1 + r) − 1. With its default inputs (Price ratio change (x) = 2; Deposit ($) = 10000; Fee APR (%) = 20) it returns -5.72 %; swap in the figures from History of AMMs above to reproduce the scenario yourself.

Modeling History of AMMs with the Concentrated Liquidity CLMM Range Calculator

The Concentrated Liquidity CLMM Range Calculator takes three inputs — Lower price ($), Upper price ($), Current ($). Capital efficiency ≈ 1 ÷ (1 − (Pa/Pb)^¼). With its default inputs (Lower price ($) = 2500; Upper price ($) = 3500; Current ($) = 3000) it returns 12.4 x; swap in the figures from History of AMMs above to reproduce the scenario yourself.

Data Table

VersionLaunchKey feature
v1Nov 2018ETH pairs, x·y=k
v2May 2020ERC-20 pairs, TWAP
v3May 2021Concentrated liquidity
v4Jan 2025Hooks, singleton

Frequently Asked Questions

What is x·y=k?

The constant product formula keeping reserve product constant.

Why is v3 more capital efficient?

Liquidity is concentrated within a chosen range.

What are hooks?

Custom contracts called at points in a pool's lifecycle.

Related Calculators

Related Tokens

Related Articles