Back to all dispatches
Tutorial05 juillet 2026·By ·5 min read

How to Swap Tokens on a DEX Without Getting Rekt

Seven critical steps to verify a contract, check liquidity, set slippage limits, and execute a DEX swap without losing 100% to rug pulls or bad pricing.

How to Swap Tokens on a DEX Without Getting Rekt
Listen to this article9:02
Now reading aloudHow to Swap Tokens on a DEX Without Getting Rekt
Photo: Alesia Kozik / Pexels

You've found a memecoin, an altcoin, or a new L2 token. Your FOMO is rising. Your fingers are hovering over PancakeSwap. The panda watches. The panda judges.

Let's do this the boring way first: verify the token is real, check the contract, set sensible limits, and execute. No tears later.

Prerequisites

  • A Web3 wallet (MetaMask, Trust Wallet, Coinbase Wallet, or WalletConnect compatible)
  • Some ETH, BNB, or SOL as gas + initial liquidity (chain depends on your DEX)
  • 10 minutes of patience
  • Basic ability to copy-paste a contract address

Time to complete: 5–10 minutes.


What You're Actually Doing

A DEX swap is simple in principle: you send Token A to a smart contract, the contract checks the liquidity pool, calculates the price at that moment, and sends you Token B. Price impact, slippage, and rug-pull contracts are the three ways this goes wrong.

According to CoinGecko, decentralized exchanges processed $74.44B in total DeFi TVL as of 2026-07-05, with Ethereum holding $39.84B and BSC at $5.01B. The sheer volume means contracts are scrutinized, but new tokens still launch on these chains daily:most legitimate, some not.

Before you swap, you should already know how to read a BSC contract on BscScan and understand what slippage actually means.


The scammiest scam is when you click a Discord link, land on a fake DEX clone, paste a token address, and the contract drains your wallet on approval.

Rule of thumb: Never copy the contract address from Discord, Twitter, or a sketchy website. Always go to the official source:

  1. Visit DexScreener or CoinGecko
  2. Search for the token name
  3. Click the contract address link directly from the official listing
  4. Copy the address (do NOT manually type it)

If the token is not on DexScreener or CoinGecko yet (brand new), that's a yellow flag. Most legit projects list within 24 hours. Proceed with extreme caution.


Step 2: Verify the Contract (The Critical Step)

Skip this and lose your money. Takes 3 minutes.

  1. Open BscScan, Etherscan, or Solscan
  2. Paste the contract address
  3. Check on the "Contract" tab:
Signal Good Bad
Code Visible + verified Unverified or blank
Holders 500+ diverse Top holder >50% (rug incoming)
Owner Renounced Has mint/burn powers
Activity Steady over weeks Volume spike in 1 hour

The panda's rule: if the owner can mint new supply, they can dilute infinitely. Red flag.


Step 3: Check Liquidity (Before Connecting)

  1. Go to your DEX (PancakeSwap, Uniswap, etc.)
  2. Enter the token address and amount (don't connect wallet)
  3. Check Price Impact:
    • 2–5% = normal
    • 10%+ = thin liquidity, bad deal
    • 50%+ = trap, skip it

If impact is absurd, the pool is too small. Skip the trade.


Step 4: Set Slippage Correctly

Slippage = price movement between click and execution. Miners can reorder, so set a limit.

  • Stable tokens: 0.5–1%
  • Volatile altcoins: 1–2%
  • New memes: 2–3% max

If slippage >5%, either the token is extremely volatile OR you're on a fake DEX. Check the URL (e.g., pancakeswap.finance, not pancakeswapp.finance).


Step 5: Don't Use "Max" Unless You Mean It

"Max" sends 100% of your balance minus gas. Be deliberate. Instead:

  1. Enter a specific amount (0.1 ETH, not your savings)
  2. Verify Output (tokens you'll receive)
  3. Verify Gas Fee (BSC <$10, ETH <$50, SOL <$0.50)

If numbers look insane, abort.


Step 6: Approve the Token Spending (Two Transactions)

This trips people up. A DEX swap is two transactions:

  1. Approve : you tell the contract "I allow you to spend up to [amount] of my tokens"
  2. Swap : you execute the actual swap

You only need to approve once per token per DEX. On the second swap, you skip this step (unless the amount is higher than your previous approval).

Steps:

  1. Click "Approve" (this spends gas but no actual swap happens)
  2. Wait for the transaction to confirm (BscScan / Etherscan shows it as "Success")
  3. Click "Swap" (the actual trade)
  4. Wait for confirmation

The panda's warning: if the approval transaction fails, do NOT retry immediately. Wait 30 seconds, refresh the page, and try again. Failed transactions still cost gas.


Step 7: Execute the Swap and Wait

Once both transactions confirm:

  1. Open your wallet
  2. Click "Tokens" (or "Assets")
  3. Add the new token manually (paste the contract address into a "import token" dialog, or it auto-appears in 5 min)
  4. Verify your balance

Congratulations, you swapped.


Troubleshooting

"Transaction failed : insufficient liquidity"

  • The pool lacks the token you want. Wait 10 min, use a smaller amount, or try another DEX.

"Price impact too high"

  • Liquidity is thin. Either reduce your order or abandon it.

"Approval succeeded, but Swap failed"

  • The token is paused, has limits, or is a honeypot. Check BscScan for pause/limit functions. If found, it's likely a scam.

"I received 0 tokens"

  • Slippage was too high or the token has a fee-on-transfer tax. Always check for "Tax" on BscScan before buying.

"My wallet was drained"

  • You approved a malicious contract (DEX clone or wrong address). Revoke access via Revoke.cash immediately.

FAQ

Q: CEX or DEX?
A: DEX = privacy, you control keys. CEX = safer execution, new tokens need DEX. Use the 7-step checklist.

Q: Can I get rugged on a DEX?
A: Only by the token contract. Malicious code or pulled liquidity = you lose. Step 2 verification is mandatory.

Q: Why slippage matters:
A: Price moves between click and mine. Slippage protects you from getting a terrible price.

Q: Gas costs:
A: ETH: $15–100. BSC: $0.50–5. Solana: <$0.01. Skip if gas exceeds your profit.

Q: Sell taxes:
A: Deducted automatically. Check before buying:not a scam if disclosed, but a bad token.


You've executed a swap without getting rugged. Next: learn to read price charts, optimize gas, and recognize which DEXes are safe (Uniswap, PancakeSwap, Magic Eden are battle-tested).

Safe trading. The panda approves.

#tutorial#dex#security#trading#token-swaps

Newsletter

The panda's weekly take, in your inbox

One email per week. Crypto, lucidly. No spam, no shill.

Disclaimer. This article is not financial advice. Always do your own research (DYOR) before investing.