What is Uniswap? A Deep Dive into v1, v2, v3, and v4

·

Uniswap stands as the largest decentralized exchange (DEX) in Web3, boasting over $3.3 billion in Total Value Locked (TVL). Pioneering the Automated Market Maker (AMM) model, Uniswap has become a cornerstone of decentralized finance (DeFi). Since its 2018 launch, it has released major upgrades—v2 in 2020, v3 in 2023, and the upcoming v4—each enhancing functionality and user experience.


Key Terminology


The Evolution of Uniswap

History

Uniswap emerged as one of the first DEXs on Ethereum, quickly dominating trading volume. Unlike centralized exchanges (e.g., Binance, Coinbase), which rely on order books, Uniswap uses an AMM to facilitate trades via liquidity pools. This decentralized approach eliminates the need for traditional market makers.

How AMMs Work

An AMM uses mathematical algorithms to price tokens and execute swaps via liquidity pools. Users (Liquidity Providers/LPs) deposit tokens into pools, earning fees from trades. The Constant Product Market Maker (CPMM) formula (x * y = k) ensures liquidity remains balanced.


Core Concepts

Impermanent Loss Explained

Impermanent loss occurs when an LP’s pool share underperforms holding the tokens separately. For example:

👉 Learn how to mitigate impermanent loss


Uniswap Versions: A Comparative Analysis

v1: The Foundation

v2: Major Upgrades

v3: Concentrated Liquidity

👉 Explore Uniswap v3 strategies

v4 (Coming 2024)


FAQs

1. Is Uniswap safe to use?
Yes, Uniswap is audited and non-custodial (you control your funds).

2. How do LPs earn rewards?
Via trading fees (0.05%–1% per swap, depending on the pool).

3. What’s the biggest risk for LPs?
Impermanent loss—especially in volatile token pairs.

4. Why upgrade to v3/v4?
Higher capital efficiency and customizable liquidity.

5. Can I trade ETH directly in v4?
Yes—v4 supports native ETH (no WETH conversion).


Conclusion

Uniswap’s innovation—from CPMMs to concentrated liquidity—has redefined DeFi. With v4’s hooks and efficiency upgrades, it continues to lead the DEX space.

Keywords: Uniswap, AMM, DEX, Liquidity Pools, Impermanent Loss, DeFi, ERC-20, CPMM

For advanced AMM math, read Atis Elsts’ Uniswap v3 Liquidity Guide.

### Notes: