Quick answer

The Uniswap protocol is an open set of smart contracts that lets people swap tokens directly from their wallets by trading against liquidity pools. Instead of an order book where buyers and sellers are matched, each pool holds two tokens, and a formula sets the price based on the ratio of those tokens. Anyone can trade, and anyone can supply liquidity in exchange for a share of trading fees.

Uniswap started on Ethereum and has since been deployed on many other networks. It has gone through several major versions, each changing how liquidity is provided. The UNI token gives holders a say in governance, but it is not required to swap.

How the Uniswap protocol works

Uniswap is an automated market maker, often shortened to AMM DEX. If the concept of a decentralized exchange is new, start with our explanation of what a DEX is and how it works. In short, three groups interact with the contracts:

  • Traders send one token into a pool and receive the other token out. The price they get depends on the pool's reserves and the size of the trade.

  • Liquidity providers (LPs) deposit both tokens of a pair into a pool. In return they earn a share of the swap fee charged on each trade, and they carry the risk that price changes alter the mix of tokens they hold.

  • Builders create wallets, aggregators and apps that route trades through Uniswap pools. The protocol itself has no sign-up and no account; it only responds to transactions.

A key distinction is between the protocol and the interface. The contracts live on-chain and work the same no matter which app calls them. The web app and wallet built by Uniswap Labs are just one way to reach them, and other front ends and aggregators also route orders into the same pools. Front ends may show different routes, warnings or extra fees, so it is worth reading the fee breakdown before confirming.

Uniswap versions: from v1 to v4

The Uniswap versions are separate sets of contracts. Older versions keep working, which is why you can still find liquidity spread across them.

v1 and v2: full-range pools

The first version launched on Ethereum in 2018 and paired every token with ETH. Version 2 allowed direct pools between any two ERC-20 tokens, added built-in price oracle data and introduced flash swaps. In v2 every LP's liquidity covers the full price range, from zero to infinity, with a single 0.3% swap fee. This is simple and passive, but most of the capital sits at prices that are rarely traded.

v3: concentrated liquidity

Version 3 introduced concentrated liquidity. LPs choose a price range, and their capital is only active while the price stays inside it. This makes liquidity far more capital-efficient near the current price, but positions need monitoring: if the price leaves the range, the position stops earning fees and ends up holding only one of the two tokens. v3 also added several fee tiers, so stable pairs can use a low fee and volatile pairs a higher one, and LP positions became NFTs because each one has unique settings.

v4: singleton and Uniswap hooks

Version 4 moved all pools into one contract, called a singleton or pool manager, which reduces the cost of creating pools and of multi-hop trades. Its headline feature is Uniswap hooks: optional plugin contracts attached to a pool that run custom logic at points such as before or after a swap or a liquidity change. Hooks can enable features like dynamic fees, limit-order style behavior or custom oracles. They also add a new layer of risk, because each hook is separate code with its own quality and trust assumptions.

Three columns comparing Uniswap versions: a plain liquidity pool, a pool with a target for concentrated ranges, and a pool with a gear for hooks

The UNI token and Uniswap governance

The UNI token was launched in 2020, with part of the supply distributed to past users and liquidity providers. Its main role is governance. Holders can vote directly or delegate their votes to another address, and proposals that pass are executed on-chain.

Uniswap governance typically covers matters such as how the community treasury is used, which deployments on new networks are recognized, and protocol-level parameters such as whether a protocol fee is collected on certain pools. The process usually moves from forum discussion to a temperature check and then a formal on-chain vote with quorum requirements.

Some points to keep in mind:

  • UNI is not needed to trade or to provide liquidity. Swap fees go to LPs in the pool, paid in the tokens being traded.

  • Voting power is concentrated in large holders and delegates, which is common in token governance and worth understanding before treating any vote as a broad community decision.

  • Governance decisions can change how value flows in the protocol, so the token's role can evolve over time. Check official governance channels for the current state rather than relying on older articles.

Fees, slippage and price impact on Uniswap

A swap on Uniswap involves several separate costs, and beginners often mix them up:

  • Pool fee: a percentage of the trade paid to LPs, set by the pool's fee tier or by a hook.

  • Network fee (gas): paid to the blockchain to process the transaction. It varies by network and congestion, and is usually much lower on layer 2 networks than on Ethereum mainnet.

  • Price impact: the change in price your own trade causes. Large trades in small pools move the price significantly.

  • Slippage: the difference between the quoted price and the executed price caused by other trades landing first. Your slippage tolerance sets the maximum you accept before the transaction reverts. Our guide on slippage in DeFi explains how to set it.

Very loose slippage settings can also expose a trade to sandwich attacks, where a bot trades just before and after you to profit from the price move you cause.

Risks to understand before using Uniswap

The Uniswap protocol is permissionless: anyone can create a pool for any token. That openness is also its main risk for users. Fake tokens can copy the name and ticker of well-known assets, and the protocol will not stop you from buying them.

Other risks include smart contract bugs (in the core contracts or in hooks), impermanent loss for liquidity providers, and wallet-level mistakes such as approving unlimited token spending to the wrong contract. For LPs, our article on impermanent loss explains how price divergence affects a position. Like all crypto assets, tokens traded on Uniswap can be very volatile, so do your own research before committing funds.

Checklist before swapping on Uniswap

  1. Confirm the network. Make sure your wallet is connected to the network where you hold the tokens and where the pool exists.

  2. Verify the token contract address from an official project source, not just the ticker. See how to check a crypto token before swapping.

  3. Read the price impact. If it is high, the pool may be too shallow for your trade size.

  4. Set a reasonable slippage tolerance rather than the maximum allowed.

  5. Review the approval request. Know which contract you are approving and for what amount; our guide to token approvals covers how to limit and revoke them.

  6. Keep enough native coin for gas and save the transaction hash after confirming.

If you want a simpler route for a one-off exchange between coins on different networks, an instant exchange such as SimpleSwap can be an alternative to managing approvals and gas on a DEX.

FAQ

Is Uniswap a company or a protocol?

Both names are used. The Uniswap protocol is a set of on-chain smart contracts, while Uniswap Labs is a company that develops software and interfaces that connect to it.

Do I need UNI to use Uniswap?

No. Swaps are paid in the tokens you trade plus the network's gas coin. UNI is mainly used for governance voting and delegation.

What are Uniswap hooks?

Hooks are optional contracts attached to v4 pools that run custom logic around swaps and liquidity changes, such as dynamic fees. They add flexibility but also add code that users should trust before interacting.

Why do I get different prices on different Uniswap versions?

Each version and fee tier has separate pools with different reserves. Routers usually split or route your trade to get the best combined result.

Can a token on Uniswap be fake?

Yes. Anyone can create a pool for any token, so always verify the contract address from an official source before swapping.