Uniswap V2

Architecture

Uniswap V2 represents a pivotal iteration in decentralized exchange (DEX) design, fundamentally shifting from a centralized order book model to an automated market maker (AMM) paradigm. Its core innovation lies in the constant product formula (xy=k), enabling liquidity provision through pooling tokens and facilitating trades against these pools, thereby eliminating traditional intermediaries. This architecture fosters permissionless listing of ERC-20 tokens and establishes a transparent, on-chain trading environment, reducing counterparty risk. The protocol’s reliance on smart contracts ensures deterministic execution of trades and liquidity provision, creating a robust and auditable system.