DeFi (Decentralized Finance)

Financial building blocks run by code, not a company.

In one minute

Heads up: Educational only — not financial advice. DeFi has smart-contract, market, and operational risks. Start small.

Core building blocks

DEXs (swaps)

Trade tokens via pools of liquidity (AMMs). Price updates with each trade; big trades move price more.

Lending/borrowing

Deposit assets to earn interest; borrow against collateral. If price falls, positions can be liquidated.

Stablecoins

Tokens that try to hold a steady value. Can be fiat-backed, crypto-backed, or algorithmic (riskier). See Stablecoins.

Yield & aggregators

Strategies that route deposits to where they earn. Returns depend on fees, incentives, and market conditions.

Liquid staking

Stake a coin (on PoS chains) and receive a "receipt" token you can use in DeFi. Understand depeg and validator risks.

Derivatives

Perpetual swaps, options, and futures managed by contracts and oracles. Higher complexity and risk.

How a token swap works (step-by-step)

  1. Connect your wallet to a DEX front end.
  2. Choose Token A → Token B. The app quotes a price and expected slippage.
  3. If Token A is an ERC-20 (or similar), first approve the DEX to spend a limited amount.
  4. Confirm the swap transaction. The AMM adjusts pool balances and you receive Token B.
  5. Pay gas and a small DEX fee that goes to liquidity providers (LPs).

Tip: For new tokens, add the exact contract address to your wallet to see the balance.

Liquidity pools & impermanent loss (IL)

LPs deposit two assets (for example, Token A and Token B) into a pool. Traders swap against it. LPs earn fees, but the mix of tokens changes with price.

Lending & borrowing (what to know)

Bridges & cross-chain moves

Costs & confirmations

Risks & how to manage them

  • Smart-contract bugs: Prefer battle-tested protocols; audits help but are not guarantees.
  • Oracle risk: If price feeds are manipulated or delayed, trades or liquidations can misfire.
  • Liquidity risk: Thin pools cause big price impact and slippage.
  • Governance risk: If a small group controls upgrades or treasury, rules can change quickly.
  • Stablecoin depeg: A "1 USD" token can trade away from 1 under stress.
  • MEV and front-running: Transactions sit in a public queue; others may jump ahead.
  • Bridge risk: Bridges are frequent hack targets. Use official ones and double-check domains.
  • Rug pulls and impostor tokens: Only use contract addresses from official project docs.

Mitigations: verify contracts, use small tests, diversify, watch announcements, and consider protocols with multisigs and timelocks.

Simple checklists

Before swapping

Before providing liquidity

Before borrowing

Educational content only. Do your own research.

Quick glossary

More crypto topics