Token Swaps
Exchange one supported token for another through liquidity pools. Trades are executed by smart contracts, giving users direct control over their assets throughout the transaction.
Uniswap Exchange is a decentralized exchange protocol that enables users to swap digital assets directly from their wallets—without relying on a traditional intermediary or centralized order book.
Explore UniswapUniswap is a decentralized exchange protocol built on Ethereum. Rather than matching buyers and sellers through an order book, it uses an automated market maker model powered by smart contracts, allowing anyone to swap tokens, provide liquidity, or create new markets directly on-chain.
Exchange one supported token for another through liquidity pools. Trades are executed by smart contracts, giving users direct control over their assets throughout the transaction.
Liquidity providers deposit token pairs into pools, helping enable smooth trading while potentially earning fees generated by swap activity on the protocol.
Users connect a compatible crypto wallet and retain control of their private keys. Uniswap facilitates on-chain transactions rather than holding user funds in a centralized account.
At the core of the Uniswap Exchange is the automated market maker, or AMM. Instead of relying on individual buyers and sellers to match orders, liquidity pools use token reserves and pricing formulas to determine exchange rates.
When a trader swaps one asset for another, the protocol draws from the relevant pool and adjusts its reserves accordingly. This design creates continuous market access, supports a wide range of token pairs, and removes the need for a centralized matching engine.
Uniswap v4 expands the protocol into a more customizable developer platform. Its hook system allows external smart contracts to add tailored logic to liquidity pools, while its singleton architecture consolidates pools under a single PoolManager contract for greater efficiency.
Hooks are modular smart-contract plugins that can customize pool behavior at key stages, including swaps, liquidity changes, and fee logic.
Uniswap v4 uses flash accounting to defer token transfers until the end of a transaction, helping reduce gas consumption for multi-step operations.
The protocol supports native Ether, allowing users to interact with ETH without first wrapping it into Wrapped Ether.
Uniswap helped popularize decentralized trading by making token swaps accessible, transparent, and non-custodial. Its open protocol design has made it a foundational piece of DeFi infrastructure, supporting traders, liquidity providers, developers, and new token markets across the Ethereum ecosystem.