defi · beginner

How to Trade on DEXs (Uniswap, PancakeSwap)

This DEX trading guide explains how to swap tokens on Uniswap, PancakeSwap, and similar decentralized exchanges. You will learn the basic steps, key risks, and simple checks to make before placing a trade.

In this beginner lesson, you will learn how decentralized exchange trading works and how to make a basic token swap on DEXs such as Uniswap and PancakeSwap. You will also learn how to prepare your wallet, check fees, manage slippage, avoid common mistakes, and think about risk before you trade.

1. What Is a DEX?

A <strong>DEX</strong>, or <strong>decentralized exchange</strong>, is a trading platform that lets users swap crypto assets directly from their own wallet. Unlike a centralized exchange, you do not deposit funds into an exchange account before trading. Instead, you connect a crypto wallet and approve transactions from your wallet.

Two of the most popular DEXs are:

  • <strong>Uniswap</strong>: Commonly used on Ethereum and several layer 2 networks such as Arbitrum, Optimism, Base, and Polygon. A <strong>layer 2</strong> is a network built to make transactions cheaper or faster while still using the security of a main blockchain like Ethereum.
  • <strong>PancakeSwap</strong>: Commonly used on BNB Chain and also available on other networks.
  • DEXs usually use <strong>liquidity pools</strong>. A liquidity pool is a smart contract that holds two or more tokens, such as ETH and USDC. A <strong>smart contract</strong> is code on a blockchain that runs automatically when conditions are met. When you trade on a DEX, you are usually swapping against the tokens in one of these pools.

    For example, if you swap ETH for USDC on Uniswap, the pool sends you USDC and receives your ETH. The price changes based on the pool balance and trade size.

    This DEX trading guide is focused on spot swaps, meaning you exchange one token for another at the current market price. It does not cover leverage, futures, or advanced strategies.

    2. What You Need Before You Trade

    Before you trade on a DEX, prepare these items:

  • <strong>A self-custody wallet</strong>: This is a wallet where you control the private keys, such as MetaMask, Rabby, Trust Wallet, or Coinbase Wallet. Your <strong>private key</strong> or <strong>seed phrase</strong> gives access to your funds. Never share it.
  • <strong>The correct blockchain network</strong>: Uniswap and PancakeSwap support different networks. Make sure your wallet is connected to the same network as the token you want to trade.
  • <strong>Gas tokens</strong>: You need the native token of the network to pay transaction fees, called <strong>gas fees</strong>. For example, you need ETH for Ethereum gas and BNB for BNB Chain gas.
  • <strong>The token contract address</strong>: A <strong>contract address</strong> is the unique blockchain address of a token. Many fake tokens use similar names, so always verify the official address from trusted sources.
  • <strong>A realistic trade plan</strong>: Know what you are buying, how much you are willing to risk, and where you may exit.
  • Practical example:

    Suppose you want to trade USDC for ETH on Uniswap using the Base network. You need USDC on Base, a small amount of ETH on Base for gas, and a wallet connected to Base. If your USDC is on Ethereum mainnet instead, it will not automatically appear on Base. You would need to bridge it or use a different trading route.

    If you are brand new and want to compare the experience of a centralized exchange with a DEX, you may also look at an exchange such as CoinW (https://www.coinw.com/en_US/register?r=3443555) to understand the difference between account-based trading and wallet-based trading.

    3. How to Trade on Uniswap or PancakeSwap Step by Step

    The basic process is similar on most DEXs. Here is how to trade on Uniswap or PancakeSwap in a simple way.

    <strong>Step 1: Open the official website</strong>

    Go to the official DEX website. Be careful with search engine ads and fake links. Bookmark the correct site after checking it.

  • Uniswap: use the official Uniswap app.
  • PancakeSwap: use the official PancakeSwap app.
  • <strong>Step 2: Connect your wallet</strong>

    Click <strong>Connect Wallet</strong> and choose your wallet. Your wallet will ask you to approve the connection. Connecting a wallet lets the site view your public address, but it should not move funds by itself.

    <strong>Step 3: Choose the network</strong>

    Select the blockchain network you want to use. For example:

  • Ethereum or Base for a Uniswap trade.
  • BNB Chain for a PancakeSwap trade.
  • Make sure your wallet and the DEX are on the same network.

    <strong>Step 4: Select the tokens</strong>

    Choose the token you want to pay with and the token you want to receive. For example:

  • Pay: USDC
  • Receive: ETH
  • If the token is not listed, paste the verified contract address. Do not trust a token only because the name looks correct.

    <strong>Step 5: Review price, fees, and price impact</strong>

    Before you confirm, review:

  • <strong>Exchange rate</strong>: The estimated price of the trade.
  • <strong>Network fee</strong>: The gas cost paid to the blockchain.
  • <strong>DEX fee</strong>: The fee charged by the liquidity pool, often a small percentage of the trade.
  • <strong>Price impact</strong>: How much your own trade changes the price in the pool. A large price impact means the pool may not have enough liquidity for your trade size.
  • For example, swapping $100 of USDC for ETH in a large pool may have very low price impact. Swapping $10,000 into a small new token pool may move the price a lot and give you a worse result.

    <strong>Step 6: Set slippage tolerance</strong>

    <strong>Slippage</strong> is the difference between the price you expect and the final price you receive. Prices can move while your transaction is waiting on the blockchain.

    If your slippage tolerance is 0.5%, your trade will fail if the final price is more than 0.5% worse than expected. Lower slippage protects you from bad fills but may cause failed transactions. Higher slippage makes the trade more likely to go through but can be risky, especially for volatile or low-liquidity tokens.

    For major pairs like ETH/USDC, beginners often use low slippage such as 0.1% to 0.5%, depending on the network and conditions. For smaller tokens, slippage may need to be higher, but that also increases risk.

    <strong>Step 7: Approve the token if needed</strong>

    The first time you trade a token, your wallet may ask you to <strong>approve</strong> it. An approval gives the DEX smart contract permission to spend that token from your wallet. This is separate from the swap.

    Be careful with unlimited approvals. Many wallets let you approve only the amount you plan to trade. You can also review and revoke old approvals later using trusted approval management tools.

    <strong>Step 8: Confirm the swap</strong>

    After approval, click <strong>Swap</strong> and confirm the transaction in your wallet. Wait for the blockchain to process it. Once confirmed, the new token should appear in your wallet. If it does not, you may need to import the token using its contract address.

    4. Main Risks and Safety Checks

    DEX trading gives you control, but it also makes you responsible for your own safety. There is usually no customer support team that can reverse a bad transaction.

    Use these checks before trading:

  • <strong>Verify the token contract</strong>: Fake tokens are common. Check the project website, official social channels, blockchain explorers, and reputable data sites.
  • <strong>Check liquidity</strong>: Low liquidity can lead to high price impact and difficult exits.
  • <strong>Watch for honeypots</strong>: A <strong>honeypot</strong> is a scam token that lets users buy but blocks or heavily taxes selling. Use caution with unknown tokens.
  • <strong>Read the transaction details</strong>: Your wallet will show what you are approving or swapping. Do not blindly click confirm.
  • <strong>Start with a small test trade</strong>: If you are unsure, make a small trade first to confirm the process works.
  • <strong>Avoid trading during extreme congestion</strong>: High network activity can increase gas fees and cause transactions to fail or fill at worse prices.
  • <strong>Protect your seed phrase</strong>: Store it offline. No real DEX support agent will ever need it.
  • Practical example:

    A beginner sees a token called ABC on social media and wants to buy it on PancakeSwap. Before trading, they should find the official contract address, check that the pool has enough liquidity, look for unusual buy or sell taxes, and test with a small amount. If the token has almost no liquidity or the contract cannot be verified, the safer choice is to avoid the trade.

    5.

    Interactive lesson at /learn/lesson/how-to-trade-on-dexs-uniswap-pancakeswap