๐ What is Uniswap?
Uniswap is the largest decentralized exchange (DEX) in the world, pioneered in 2018 by Hayden Adams. It uses an Automated Market Maker (AMM) model that allows users to swap ERC-20 tokens directly from their wallets without needing a centralized intermediary. Uniswap is entirely non-custodial โ you control your funds at all times.
In this guide, you'll learn everything you need to start using Uniswap, from setting up a wallet to swapping tokens and providing liquidity.
Uniswap is a non-custodial DEX where you trade directly from your wallet. You remain in control of your funds throughout the entire process.
๐ Before You Start: What You'll Need
-
1
An Ethereum-Compatible Wallet
You'll need a wallet like MetaMask, Trust Wallet, Coinbase Wallet, or Ledger (hardware). These wallets allow you to interact with Uniswap and securely manage your tokens.
-
2
ETH for Gas Fees
Every transaction on Ethereum (or any EVM chain) requires gas fees. You'll need ETH (or the native token of the chain you're using) in your wallet to pay for transaction fees.
-
3
Tokens to Swap
Have the tokens you want to swap in your wallet. If you're using USDT TRC20 on Uniswap, note that Uniswap primarily supports ERC-20 tokens on Ethereum and EVM-compatible chains.
-
4
Understanding Fees
Be aware of the fees: protocol fees (0.05%โ1% depending on the pool) and gas fees (paid to the network). You'll see the total cost before confirming any transaction.
๐ Step-by-Step: How to Swap Tokens on Uniswap
-
1
Go to the Official Uniswap Website
Visit app.uniswap.org. Always double-check the URL to avoid phishing sites. Bookmark the official site for future use.
-
2
Connect Your Wallet
Click the "Connect Wallet" button in the top-right corner. Select your wallet provider (MetaMask, Coinbase Wallet, etc.) and follow the prompts to connect. Ensure you're on the correct network (Ethereum, Arbitrum, etc.).
-
3
Select the Token You Want to Swap
Click the "Select token" dropdown. Choose the token you want to swap from. If your token isn't listed, paste its contract address to add it manually.
-
4
Select the Token You Want to Receive
Click the "Select token" dropdown on the right side. Choose the token you want to receive.
-
5
Enter the Amount
Type the amount of tokens you want to swap. The platform will automatically calculate the estimated output.
-
6
Review the Swap Details
Check the estimated output, price impact, slippage, and fees. If you're happy with the details, click "Swap."
-
7
Confirm the Transaction in Your Wallet
A pop-up will appear in your wallet. Review the gas fee and the transaction details. Click "Confirm" to complete the swap.
-
8
Wait for Confirmation
Wait for the transaction to be processed on the blockchain. Once confirmed, the swapped tokens will appear in your wallet.
If your transaction fails, check that you have enough ETH for gas fees and that your slippage tolerance isn't too low. You can adjust slippage in the settings (gear icon).
๐ Understanding Slippage on Uniswap
Slippage is the difference between the expected price of a swap and the actual execution price. It happens because the price can change between the time you submit a transaction and when it's processed.
Uniswap allows you to set a slippage tolerance โ the maximum percentage of price change you're willing to accept. The default is 0.5%. If the actual slippage exceeds your tolerance, the transaction will fail to protect you from unfavorable prices.
Click the gear icon (Settings) on the swap page to adjust slippage tolerance. For stablecoin pairs, 0.1%โ0.5% is usually sufficient. For volatile tokens, you may need 1%โ3%.
๐ How to Add Liquidity on Uniswap
Adding liquidity on Uniswap allows you to earn a share of the trading fees from a pool. As a liquidity provider (LP), you deposit pairs of tokens into a pool and receive LP tokens representing your share.
-
1
Connect Your Wallet
Connect your wallet to Uniswap and ensure you're on the correct network.
-
2
Go to the "Pool" Section
Click the "Pool" tab at the top of the page. Then click "New Position" to start providing liquidity.
-
3
Select the Token Pair
Choose the two tokens you want to provide liquidity for (e.g., ETH/USDC).
-
4
Set Your Price Range (V3)
In Uniswap V3, you can set a price range for your liquidity. If the price stays within this range, you earn fees. If it moves outside, your liquidity becomes inactive until the price returns.
-
5
Deposit Tokens
Enter the amount of tokens you want to deposit. The platform will calculate the required amount of the second token. Click "Preview" and then "Add Liquidity."
-
6
Confirm the Transaction
Review the details and confirm the transaction in your wallet. You'll receive LP tokens representing your share of the pool.
As a liquidity provider, you're exposed to impermanent loss โ the loss you may experience if the price ratio of the tokens changes compared to when you deposited. The loss is only realized when you withdraw your liquidity.
๐ฐ Understanding Uniswap Fees
Uniswap charges two types of fees:
- Protocol Fees (Swap Fees): A percentage of each swap that goes to liquidity providers. Uniswap V3 offers three fee tiers: 0.05% (stable pairs), 0.30% (standard pairs), and 1% (volatile pairs).
- Gas Fees: Paid to the blockchain network for processing the transaction. Gas fees vary based on network congestion and are paid in the chain's native token (e.g., ETH).
Stablecoin pairs (USDC/USDT) typically use the 0.05% tier. Standard pairs (ETH/USDC) use 0.30%. Highly volatile pairs (SHIB/ETH) may use the 1% tier.
๐ก๏ธ Uniswap Safety Tips
- Use the Official Website: Always use app.uniswap.org. Be wary of phishing sites that look identical but are fake.
- Double-Check Contract Addresses: When adding a custom token, verify the contract address from a trusted source like Etherscan.
- Use a Hardware Wallet: For large holdings, use a hardware wallet like Ledger or Trezor for an extra layer of security.
- Set Appropriate Slippage: Don't set slippage too high. 0.5%โ1% is usually sufficient for most trades.
- Never Share Your Private Key: Uniswap will never ask for your private key or seed phrase. Anyone who does is a scammer.
- Revoke Token Approvals: Regularly revoke unused token approvals using revoke.cash to reduce risk.
If you're asked to enter your seed phrase, connect to a suspicious site, or a deal seems too good to be true โ it's likely a scam. Always trust your instincts and verify everything.
๐ Uniswap V3 vs V2: Which One to Use?
Uniswap V3 is the latest version with advanced features, but V2 is still available. Here's how they compare:
| Feature | Uniswap V3 | Uniswap V2 |
|---|---|---|
| Liquidity Model | Concentrated liquidity (price ranges) | Constant product (x*y=k) over full range |
| Capital Efficiency | Up to 4000x more efficient | Standard efficiency |
| Fee Tiers | 0.05%, 0.30%, 1% | 0.30% (fixed) |
| Complexity | More complex (price range management) | Simple and straightforward |
| Best For | Active LPs, advanced traders | Beginners, passive LPs |
If you're a beginner, start with V3 for swapping (it offers better prices and lower fees). For providing liquidity, V3 offers better returns but requires active management. V2 is simpler for passive LPs.