Key Takeaways
- Uniswap is a decentralized exchange protocol on Ethereum that replaces order books with automated liquidity pools, letting anyone trade or provide liquidity without intermediaries.
- The protocol has evolved across four major versions, from the original constant-product formula in v1 to concentrated liquidity in v3 and customizable pool logic via hooks in v4.
- UNI is the governance token of the protocol, giving holders a vote on upgrades, fee parameters, and treasury allocation, with no centralized team controlling the contracts.
In This Article
What is Uniswap?
Uniswap is a decentralized exchange protocol built on Ethereum. Instead of matching buyers and sellers through an order book, it lets users trade tokens directly against pools of liquidity supplied by other users. There are no accounts, no listing fees, and no central operator deciding which assets get traded.
The project was launched in November 2018 by Ethereum developer Hayden Adams, who built the first version after Vitalik Buterin described an early concept for an on-chain market maker. Dan Robinson and Noah Zinsmeister later contributed to the protocol’s design, and the team eventually formed Uniswap Labs to maintain the codebase and the official web interface.
Today, Uniswap is one of the largest DEXs in the industry by trading volume and is deployed across Ethereum and several layer-2 networks, including Arbitrum, Optimism, Polygon, and Base.
How Does Uniswap Work?
Uniswap uses a design known as an Automated Market Maker (AMM). Instead of an order book, each trading pair has a liquidity pool that holds two tokens at a ratio determined by a mathematical formula. In the original Uniswap v1 and v2, that formula was the constant-product rule: the product of the two token balances in a pool stays the same after every trade.
Liquidity providers deposit equal value of two tokens into a pool and receive LP tokens representing their share. Every swap that passes through the pool pays a small fee, which is distributed pro rata to all liquidity providers. Anyone with a wallet and a small amount of ETH for gas can become a liquidity provider or a trader.
Because the contracts are public and permissionless, any ERC-20 token can be listed by anyone who is willing to seed a pool. This makes Uniswap a default home for new tokens, but it also means buyers have to verify what they are trading.
From v1 to v4: How Uniswap Evolved
Uniswap has shipped four major protocol versions, each addressing limitations of the previous one.
- v1 (2018): The original release. Every pool paired an ERC-20 token with ETH, using the constant-product formula.
- v2 (2020): Introduced direct ERC-20 to ERC-20 pools, time-weighted average price oracles, and flash swaps. This is the version many people still associate with Uniswap.
- v3 (2021): Added concentrated liquidity, letting providers choose a price range in which their capital is active. This dramatically improved capital efficiency but made being an LP more complex.
- v4 (2025): Introduced hooks, which let developers attach custom logic to pools, plus a singleton contract architecture that lowers gas costs for multi-hop trades.
What Makes Uniswap Different
Several design choices set Uniswap apart from centralized and many decentralized exchanges.
Permissionless Listing
Anyone can create a new pool for any ERC-20 token by paying gas. There is no listing committee and no fee. This is why most new tokens appear on Uniswap before they reach centralized exchanges, and it is also why traders need to check the contract address of a token before they buy it.
Non-Custodial by Design
Uniswap never holds user funds. Trades execute directly between the user’s wallet and the relevant smart contracts. Uniswap Labs operates the most popular web interface, but the underlying protocol can be accessed from any compatible front-end.
Anyone Can Become a Liquidity Provider
By depositing a pair of tokens into a pool, anyone becomes a liquidity provider and earns a share of the swap fees on that pool. In v3 and v4, providers can also choose specific price ranges to concentrate their capital.
No Central Order Book
Prices are determined by the ratio of tokens in each pool, not by matched buy and sell orders. The protocol exposes time-weighted average prices on-chain, which other DeFi applications use as a price feed.
Multi-Chain Deployment
Although Uniswap started on Ethereum mainnet, it is now live on multiple layer-2 networks. Trading on Arbitrum, Optimism, Polygon, or Base typically costs a fraction of mainnet gas while using the same protocol.
Competitive Fees
The default swap fee on Uniswap is 0.3%, with additional tiers (0.05%, 0.30%, 1.00%) introduced in v3 to match different asset volatilities. Total cost depends on the underlying network: a swap on Ethereum mainnet pays the protocol fee plus gas, while the same swap on a layer-2 can cost cents.
The UNI Token
UNI is the governance token of the Uniswap protocol, launched on September 17, 2020. There was no ICO. Instead, the initial supply was distributed through a retroactive airdrop to past users, ongoing liquidity mining programs, and allocations to the team, investors, and a community treasury.
The genesis supply was one billion UNI, with the broad allocation split between community members (including the treasury) and team, investors, and advisors, all vesting over four years. UNI is now traded on most major exchanges and is held by tens of thousands of governance participants.
UNI holders vote on protocol upgrades, fee parameters, treasury spending, and grants. Governance proposals are discussed off-chain, then formally voted on through the Uniswap governance portal once they reach a defined support threshold.
UNI is widely available on centralized exchanges, including Binance and KuCoin, and on the Uniswap protocol itself.
Risks to Be Aware Of
Trading on a decentralized exchange shifts certain risks from a custodian onto the user. Anyone interacting with Uniswap should understand a few specific issues.
- Impermanent loss: When the price of the two tokens in a pool diverges, the value of an LP position can fall below simply holding the tokens.
- Scam tokens: Because anyone can list, many pools point to fake or malicious copies of well-known tokens. Always verify the contract address from a trusted source before swapping.
- MEV and slippage: Public mempools allow bots to sandwich trades, especially large ones. Setting a tight slippage tolerance and using protected RPCs reduces this risk.
- Smart contract risk: The Uniswap core contracts have been audited and battle-tested for years, but custom v4 hooks are written by third parties and may not have the same security guarantees.
- Gas costs on mainnet: Small swaps on Ethereum mainnet can cost more in gas than the trade itself. Layer-2 networks usually make more sense for smaller positions.
How to Trade on Uniswap
The basic flow has not changed much since v1, even though the protocol under the hood has.
- Open the Uniswap interface at app.uniswap.org or a trusted aggregator.
- Connect a wallet such as MetaMask, Rabby, or any other wallet that supports the network you are using.
- Select the network (Ethereum mainnet, Arbitrum, Optimism, Polygon, Base, etc.) and the token you want to swap from.
- Select the token you want to swap to. The interface searches across pools and routes for the best price.
- Review the rate, slippage tolerance, and fee. For large trades, lower the slippage tolerance.
- Click Swap, then confirm the transaction in your wallet.
- Wait for the transaction to confirm on-chain. You can track it on a block explorer such as Etherscan for Ethereum mainnet, or the equivalent explorer for whichever layer-2 you used.
Uniswap is one of the most important pieces of infrastructure in DeFi, and the same protocol that powered a handful of pools in 2018 now settles billions of dollars in trades across multiple chains. The trade-off it offers, more freedom and self-custody in exchange for more responsibility, is the same one that defines the rest of the DeFi ecosystem.
Stay Ahead in Crypto