What Is Uniswap (UNI)?
Uniswap is a decentralized exchange (DEX) protocol on Ethereum that enables users to swap ERC-20 tokens directly from their wallets using automated liquidity pools. Uniswap eliminates order books, instead using smart contracts and liquidity provided by users to facilitate trades. Its native token, UNI, governs protocol upgrades and can be earned through participation.
What You’ll Learn
- How Uniswap’s automated market maker (AMM) model works for trading
- The role and mechanics of liquidity pools on Uniswap
- How UNI token holders influence protocol governance
- Risks and considerations for traders and liquidity providers
- A real-world example of a Uniswap trade with concrete numbers
On This Page
How does Uniswap work?
Uniswap works by enabling users to swap ERC-20 tokens directly through smart contracts without intermediaries, using an automated market maker (AMM) model. Instead of matching buyers and sellers, Uniswap uses liquidity pools funded by users to facilitate trades. Prices are determined algorithmically based on the ratio of tokens in each pool, following the constant product formula x*y=k. This design enables anyone with an Ethereum wallet to trade tokens 24/7, with no sign-ups or KYC.
Automated Market Maker (AMM) Model
Uniswap pioneered the AMM model, replacing traditional order books with smart contracts that hold reserves of two tokens per pool. The price of each token is set so that the product of their quantities remains constant (x*y=k). Traders interact directly with these pools, and prices adjust automatically after each trade.
- Token swaps: Users can swap any ERC-20 token pair listed on Uniswap instantly.
- Permissionless access: Anyone can create a pool or provide liquidity; no approval is required.
- Smart contract execution: Trades and liquidity actions are executed on-chain, with transparency and auditability.
What is the UNI token and what does it do?
The UNI token is Uniswap’s native governance token, enabling holders to propose and vote on protocol changes, fee structures, and treasury allocations. UNI does not confer ownership of the protocol or direct revenue share from trading fees, but it gives holders influence over Uniswap’s future direction.
UNI Token Utility
UNI holders can:
- Vote on governance proposals: Protocol upgrades, fee changes, and treasury use are decided by token-weighted votes.
- Delegate voting power: Users can delegate their UNI to others for more efficient governance.
- Receive airdrops: Early Uniswap users received retroactive UNI distributions in September 2020, with 400 UNI per eligible address.
How do Uniswap liquidity pools function?
Uniswap liquidity pools are smart contracts holding reserves of two ERC-20 tokens, enabling traders to swap between them and liquidity providers to earn fees. Anyone can add liquidity by depositing equal values of both tokens to a pool, receiving LP tokens in return. When trades occur, a 0.3% fee (Uniswap v2) or variable fee (Uniswap v3) is collected and distributed to liquidity providers.
How Liquidity Provision Works
To provide liquidity, a user deposits equal USD value amounts of both tokens in a pair (e.g., ETH and USDC). In return, they receive LP tokens representing their share of the pool. When they withdraw, they receive their portion of both assets plus a share of accrued trading fees, but their final balance may be affected by price changes (impermanent loss).
- LP tokens: ERC-20 tokens representing a user’s share of the pool.
- Fee accrual: Fees are automatically added to the pool and can be claimed on withdrawal.
- Impermanent loss: The risk that providing liquidity yields less value than holding the assets separately if their prices diverge.
Real-World Example
Suppose Alice provides $5,000 worth of ETH and $5,000 worth of USDC to the ETH/USDC pool on Uniswap v2. She receives LP tokens representing her 2% share of the pool. Over a month, the pool processes $1 million in volume, generating $3,000 in fees (0.3%). Alice earns 2% of the fees ($60), but if ETH’s price rises sharply against USDC, her withdrawal amount may be affected by impermanent loss, potentially reducing her net gain compared to simply holding the assets.
What are the risks and considerations for Uniswap users?
Uniswap users face risks including impermanent loss, smart contract vulnerabilities, and price slippage during large trades. Traders must also consider gas fees on Ethereum, which can be significant during network congestion.
Key Risks Explained
- Impermanent loss: Occurs when the price of pooled tokens diverges, reducing LP returns compared to holding tokens separately.
- Smart contract risk: Bugs or exploits in Uniswap contracts could lead to loss of funds, though Uniswap’s code is open source and widely audited.
- Price slippage: Large trades relative to pool size can cause unfavorable execution prices.
- Gas fees: High Ethereum transaction fees can make small trades uneconomical.
How to trade on Uniswap: Step-by-step example
To trade on Uniswap, connect an Ethereum wallet, select a token pair, enter the amount to swap, and confirm the transaction. The protocol calculates the output amount based on current pool reserves and charges a fee, which goes to liquidity providers.
Step-by-Step Uniswap Swap
- Connect wallet: Use MetaMask, WalletConnect, or another Ethereum wallet.
- Select tokens: Choose the token to swap from and the token to receive (e.g., swap 1 ETH for USDC).
- Review rates and slippage: Uniswap displays the expected output and minimum received after slippage tolerance.
- Confirm transaction: Approve the token (if needed), then sign and submit the swap. The trade executes on-chain, and tokens appear in your wallet after confirmation.
Key Insight
Uniswap’s AMM design means large trades relative to pool size can move prices significantly (slippage), so liquidity depth is a critical factor for traders considering execution quality.
Frequently Asked Questions
Is Uniswap safe to use?
Uniswap is a widely used, audited protocol, but risks remain. Smart contract bugs, phishing scams, and user error can result in loss of funds. Always use the official site and verify contracts before interacting.
How does Uniswap make money?
Uniswap itself does not take a direct cut of trading fees. Instead, fees are distributed to liquidity providers. However, protocol governance can choose to activate a protocol fee, sending a portion of fees to the Uniswap treasury.
What is impermanent loss on Uniswap?
Impermanent loss occurs when the price of tokens in a liquidity pool diverges from their price at deposit. Liquidity providers may end up with less value than if they had simply held the tokens, especially during volatile markets.
Can anyone list a token on Uniswap?
Yes, Uniswap is permissionless. Anyone can create a new trading pair by providing equal-value deposits of two ERC-20 tokens. However, users should exercise caution and verify token contracts to avoid scams or low-liquidity assets.
What are Uniswap v2 and v3?
Uniswap v2 introduced direct ERC-20 pairs and flash swaps. Uniswap v3, launched in 2021, added concentrated liquidity, allowing LPs to provide liquidity in custom price ranges, improving capital efficiency and fee potential for active managers.
How are Uniswap fees set?
Uniswap v2 charges a 0.3% fee per trade, distributed to liquidity providers. Uniswap v3 offers multiple fee tiers (0.05%, 0.3%, 1%), allowing LPs to select their preferred level based on expected volatility and trading activity.
Key Takeaways
- Uniswap is a leading decentralized exchange on Ethereum using an AMM model.
- Users trade directly from wallets with no intermediaries or accounts.
- Liquidity providers earn trading fees but face impermanent loss risk.
- UNI token holders govern protocol upgrades and treasury decisions.
- Trade execution quality depends on pool liquidity and slippage.

