Uniswap is a decentralized exchange that lets you swap cryptocurrency tokens directly from your wallet, without creating an account or trusting a company to hold your funds. It runs on smart contracts (self-executing code on a blockchain) and uses a system called an automated market maker to price trades with math instead of matching individual buyers and sellers. Since launching on Ethereum in 2018, Uniswap has grown into one of the most widely used protocols in decentralized finance, operating across more than a dozen blockchain networks.
How Uniswap Replaces a Traditional Exchange
On a conventional exchange like the New York Stock Exchange or Coinbase, trades happen through an order book. Buyers post the price they’re willing to pay, sellers post the price they want, and a trade executes when those prices match. Uniswap skips that entirely.
Instead, Uniswap uses liquidity pools. A liquidity pool is a smart contract that holds reserves of two tokens, say ETH and USDC. When you want to trade, you swap directly against the pool rather than waiting for another person on the other side. The pool always has tokens available, so trades happen instantly, 24 hours a day, with no intermediary deciding whether to approve your transaction.
The price you get is determined by a formula baked into the code, called the constant product formula: x * y = k. Here, x and y are the quantities of each token in the pool, and k is a fixed number that must stay the same after every trade. When you buy ETH from the pool, the ETH supply in the pool drops and the USDC supply rises, which automatically pushes the price of ETH higher. The bigger your trade relative to the pool’s size, the more the price shifts. No negotiations, no third parties, just math adjusting the ratio after each swap.
Liquidity Providers and Fees
The tokens sitting in those pools don’t appear out of thin air. They come from liquidity providers (LPs), people who deposit pairs of tokens into a pool so that others can trade against them. In return, LPs earn a share of the trading fees generated every time someone swaps through their pool.
Fee levels vary by pool and by protocol version. In Uniswap v2, the standard swap fee is 0.3%, all of which goes to LPs when protocol fees are turned off. When protocol fees are active, LPs receive 0.25% and the protocol captures 0.05%. Uniswap v3 introduced multiple fixed fee tiers, including 0.01%, 0.05%, 0.30%, and 1%, letting pool creators choose a fee that fits the pair’s volatility. A stablecoin-to-stablecoin pair might use 0.01% because prices barely move, while a more volatile token pair might justify a higher fee. The newest version, v4, takes this further with unlimited fee tiers and even dynamic fees that can adjust automatically based on custom logic written by developers.
How Versions Have Evolved
Uniswap has gone through several major upgrades, each adding flexibility and reducing costs for users.
Uniswap v2 established the basic two-token pool model with a flat 0.3% fee. It was simple and effective, but liquidity was spread evenly across all possible prices, which meant a lot of deposited capital sat idle in price ranges where trading rarely happened.
Uniswap v3 introduced concentrated liquidity, letting LPs choose a specific price range where their tokens would be active. This made their capital far more efficient, since the same dollar amount could support deeper liquidity in the range where trades actually occur. The tradeoff is that managing positions became more complex, and LPs who set narrow ranges face higher exposure to impermanent loss (more on that below).
Uniswap v4 is the latest version, built around a singleton architecture where all pools live inside a single smart contract called PoolManager. This cut the gas cost of creating a new pool by roughly 99% compared to deploying a separate contract for each one. V4 also introduced hooks, which are plugin-like smart contracts that execute custom logic at specific moments during a swap, a liquidity deposit, or pool creation. Developers can use hooks to build features like limit orders, dynamic fee adjustments, or custom oracle integrations directly into a pool. A flash accounting system lets users chain multiple actions (swapping, adding liquidity, withdrawing) into a single transaction, settling only the net token balances at the end. This uses transient storage that consumes up to 20 times less gas than traditional storage. V4 also supports trading with native ETH directly, eliminating the need to wrap it into WETH first.
Where Uniswap Operates
Uniswap started on Ethereum but now runs across a wide range of blockchains and Layer 2 networks. Layer 2s are networks built on top of Ethereum that process transactions faster and more cheaply while still relying on Ethereum’s security. You can currently swap tokens on Ethereum mainnet, Arbitrum, Base, Optimism (OP Mainnet), Polygon, BNB Smart Chain, Avalanche, zkSync, Blast, Linea, Celo, Zora, World Chain, Soneium, and Uniswap’s own chain called Unichain, among others. In total, the protocol supports swapping on roughly 18 networks.
For everyday users, this means you can often avoid Ethereum’s higher gas fees by swapping on a Layer 2 like Base or Arbitrum, where a transaction might cost a few cents instead of several dollars.
The UNI Token
UNI is Uniswap’s governance token. Holding UNI gives you voting power over protocol decisions, including whether to activate protocol fees and how fee revenue is used. One recent governance proposal introduced a mechanism called the Protocol Fee Discount Auction, which would auction off temporary fee exemptions and use the proceeds to buy and burn UNI tokens. Fee revenue from various sources would flow into an onchain contract called TokenJar, and withdrawals from TokenJar would require burning UNI through a companion contract called Firepit. This creates a potential link between protocol usage and the token’s supply.
UNI does not entitle you to a share of trading fees by default. LP fees go to liquidity providers, and protocol fees are controlled by governance votes.
Risks of Using Uniswap
Uniswap is permissionless, meaning anyone can create a pool for any token. That openness is powerful, but it also means scam tokens and low-quality projects show up regularly. Always verify a token’s contract address before swapping.
If you provide liquidity, the biggest financial risk is impermanent loss. This happens when the price of tokens in your pool changes after you deposit them, causing your position to be worth less than if you had simply held the tokens in your wallet. The name “impermanent” suggests the loss could reverse if prices return to their original ratio, but there is no guarantee they will. Concentrated liquidity positions in v3 and v4 amplify this effect: a tighter price range earns more fees when prices stay within it, but suffers greater impermanent loss when prices move outside the range.
Slippage is another factor. Because each trade shifts the token ratio in a pool, large trades relative to pool size can move the price significantly between the moment you submit a transaction and when it executes. The Uniswap interface lets you set a slippage tolerance, which cancels your trade if the price moves beyond a threshold you choose. Keeping this setting reasonable (often 0.5% to 1% for major token pairs) helps protect against unfavorable execution.
Finally, all of Uniswap runs on smart contracts. While the core protocol has been extensively audited and has handled hundreds of billions of dollars in volume, smart contract risk can never be fully eliminated. Bugs in hooks or third-party integrations in v4 could introduce vulnerabilities that don’t exist in the core code, so the reputation and audit history of any custom hook matters.
How to Start Using Uniswap
You need a self-custody crypto wallet like MetaMask, Coinbase Wallet, or Rainbow. Connect your wallet to the Uniswap web app at app.uniswap.org, select the network you want to trade on, choose the tokens you want to swap, and confirm the transaction. You will need a small amount of the network’s native token (ETH on Ethereum, for example) to pay gas fees.
There is no account creation, no identity verification, and no minimum trade size. Your tokens stay in your wallet until the moment a swap executes, and the tokens you receive go straight back to your wallet. That direct, non-custodial model is what makes Uniswap fundamentally different from centralized exchanges: you keep control of your assets at every step.

