cryptotradingbook

DeFi trading and risks

Intermediate → Advanced · ~12 min read

At a glance

  • DeFi trading means self-custody + smart contracts: no login, no customer support, no undo.
  • Smart-contract risk replaces exchange risk - audits reduce, never remove, it.
  • Rug pulls and honeypots are first-day residents of every DEX listing.
  • Gas fees and MEV (front-running) are real costs that spot exchanges don't show you.
  • On-chain does not mean regulation-free: traces are permanent and analyses exist.

1. What changes when you trade DeFi

No account, no KYC at the protocol, no withdrawal approval - and no support desk, no freeze-and-refund, no undo. Your self-custody wallet signs everything. The exchange risks of Part I don't disappear; they transform into smart-contract and user-error risk.

2. Smart-contract risk

Every DEX, pool and bridge is code holding money. Bugs are exploited continuously - bridges alone have lost billions. Audits lower probability, not possibility; a fresh unaudited token contract is a coin flip with extra steps. The DeFi principle: code executes exactly as written, including when it is wrong.

3. Rug pulls and honeypots

The DEX listing layer has no admission control: anyone lists anything. Rug pulls (developers empty liquidity) and honeypots (buyable, not sellable) are structural features, not bugs in the system - they are the reason permissionless trading needs permissionless scepticism. Practical tells: locked/verified liquidity, concentration of holdings, contract renouncement - none perfect, all necessary.

Remember: "If you can't sell it, you don't own it" - approval management (revoke old allowances) is part of DeFi hygiene, like locking doors.

4. The visible and invisible costs

Gas fees are visible; MEV is not: bots see your pending trade and extract value via front-running or sandwiching. Small trades on busy chains can pay double-digit percent in combined friction. On a CEX, you paid a spread; on-chain, the auction is public.

5. When this fails

DeFi trading fails on the same math as everything else - plus failure modes CEX traders never meet: infinite-mint bugs, oracle manipulation (thin pools reporting fantasy prices), bridge exploits, and governance capture. Insurance does not exist in most cases; "the code is the law" also means the loss is the law.

Risk: Approving a token contract can expose the whole balance of that token, forever, until revoked. The most profitable exploit in DeFi history is still the user signing what they didn't read.

Knowledge check

  1. What disappears when you trade on a DEX instead of a CEX? (Custody handover - and support, freeze/refund mechanisms, undo.)
  2. What is smart-contract risk in one sentence? (Bugs or exploits in the code holding the money - audits reduce, never remove.)
  3. What is a honeypot token? (Buyable but not sellable - a contract trap.)
  4. Name an invisible on-chain trading cost. (MEV - front-running/sandwiching of pending trades.)
  5. What does "revoke old approvals" mean and why? (Cancel standing token allowances - they remain active and exploitable otherwise.)