Uniswap was deployed by Hayden Adams in November 2018 — a single engineer who had been unemployed for months, taught himself Solidity, and built the first version in approximately three months after being encouraged to try by Vitalik Buterin. The first version was a proof of concept. V2 (May 2020) became the DeFi infrastructure standard. V3 (May 2021) introduced concentrated liquidity and became the most capital-efficient AMM ever built. V4 (2024) introduced "hooks" — programmable callbacks that allow developers to customise pool behaviour — and the Uniswap X intent-based swap routing system. Throughout this evolution, Uniswap has maintained its position as the most widely used DEX in the world by cumulative volume, handling $1-3 trillion annually across its protocol versions — more than many traditional stock exchanges.
How the AMM Works: x*y=k
The Automated Market Maker model that Uniswap popularised is elegantly simple: a liquidity pool holds two assets (say, ETH and USDC). The pool enforces the invariant x * y = k — the product of the two asset quantities must remain constant after any trade. To buy ETH with USDC: you add USDC to the pool (increasing x) and the pool gives you ETH (decreasing y), with the price determined by the formula — you must leave the pool at least as balanced as the constant k requires. The price at any moment is simply the ratio of the two asset quantities: price = x/y. As trades push the ratio away from market price, arbitrageurs step in to profit by trading the pool back into alignment — this is the mechanism that keeps AMM prices accurate. The model requires no order books, no market makers, no price discovery — it works with any two assets as long as there are liquidity providers and arbitrageurs. Liquidity providers (LPs) deposit equal value of both assets, receive LP tokens representing their share of the pool, and earn a percentage of all trading fees (0.05%, 0.30%, or 1.00% depending on the fee tier).
V3: Concentrated Liquidity
V2 spreads LP capital uniformly across all possible prices from 0 to infinity — a highly capital-inefficient approach, because most trading happens within a narrow price range. If ETH is at $3,000, almost all ETH/USDC trades happen between $2,500 and $3,500 — yet V2 LPs have capital deployed at every price from $0 to ∞. V3's concentrated liquidity allows LPs to specify a price range for their capital: an LP providing ETH/USDC liquidity can say "deploy my capital only between $2,800 and $3,200." Within that range, the LP earns dramatically more fees per dollar of capital (because their capital is 100% utilised for trades in that range). Outside that range, the LP earns zero fees and holds entirely one asset. The trade-off: concentrated liquidity requires active management — if the price moves outside the LP's range, they stop earning fees and need to rebalance their position. Professional market makers using V3 can earn 50–200x more fees per dollar of capital than passive V2 LPs, but they also have more complex risk management requirements. Retail passive LPs typically underperform versus just holding the underlying assets due to impermanent loss in narrow-range positions during volatile markets.
V4: Hooks and Uniswap X
Uniswap V4 introduces "hooks" — smart contract callbacks that execute at specific points in a pool's lifecycle (before/after a swap, before/after liquidity changes). Hooks allow developers to build custom AMM logic as add-ons to Uniswap pools: dynamic fee curves that adjust fees based on volatility, TWAMM (time-weighted automated market maker) for large order execution, custom oracle integrations, or on-chain limit orders triggered by price conditions. V4 also uses a "singleton" architecture — all pools in one contract — enabling multi-hop swaps across multiple pools in a single transaction with dramatically lower gas costs. Uniswap X is a separate intent-based swap protocol: users sign an intent ("I want to swap X ETH for at least Y USDC") which is fulfilled by off-chain "fillers" competing to execute the trade at the best price across all liquidity sources (Uniswap pools, other DEXes, private liquidity). X's Dutch auction mechanism for intents often achieves better prices than direct AMM swaps, particularly for larger sizes.
UNI Token: Governance and the Fee Switch
UNI is Uniswap's governance token — distributed via a September 2020 retroactive airdrop (400 UNI to every address that had ever interacted with Uniswap, worth ~$1,200 at launch and $15,000+ at peak) and to liquidity providers, team, and investors. UNI holders vote on protocol upgrades, treasury allocations, and the "fee switch" — a mechanism allowing the protocol to redirect a portion of trading fees to the UNI treasury rather than entirely to LPs. The fee switch debate has been one of the longest-running governance discussions in DeFi: activating it would generate significant protocol revenue accruing to UNI holders, but could reduce LP profitability and liquidity, potentially reducing Uniswap's competitiveness against fee switch-off competitors. A partial fee switch was activated in 2024 on select pools, representing the first time UNI token holders accrued direct cash flow from protocol activity. If scaled broadly, the fee switch fundamentally changes UNI's investment case from "governance token with no cash flows" to "revenue-generating DeFi protocol token" — similar to the transformation that activated fee revenues produced for other governance tokens.
Uniswap V4 introduces hooks — programmable callbacks that execute custom logic at specific points in the swap lifecycle (before/after swaps, before/after liquidity changes). Hooks enable entirely new AMM designs without deploying new contracts: dynamic fees that adjust to volatility, TWAP-based limit orders, on-chain KYC enforcement, and MEV redistribution can all be implemented as hooks on Uniswap V4's shared infrastructure. The singleton contract design (all V4 pools in one contract) reduces gas costs by ~99% for multi-hop swaps. Uniswap's expansion to Arbitrum, Optimism, Polygon, and Base chains gives it the deepest multi-chain liquidity of any DEX protocol. UNI trades on Coinbase, Binance, Kraken, and Bybit. Use our crypto tools for UNI analysis and our DennTech blog for Uniswap updates.
Uniswap's fee switch governance vote — pending for years — could eventually direct a portion of protocol trading fees to UNI token holders, transforming UNI from a pure governance token into a yield-bearing asset backed by one of the highest fee-generating protocols in all of DeFi.