Decentralized Finance (DeFi)

How DeFi is rebuilding banking without banks — lending, borrowing, trading, and earning yield through smart contracts — and the real risks every participant must understand.

Read every lesson without signing up. A verified account is optional if you want to save your progress.

Category: Crypto & Digital Assets · Time: ~14 min · Level: intermediate · Lessons: 5

What you'll learn

  • What Is DeFi?
  • DeFi Risks — What Can Go Wrong
  • DeFi Lending & Borrowing
  • Decentralized Exchanges (DEXs)
  • Yield Farming & Staking

What Is DeFi?

🏦 DECENTRALIZED FINANCE: BANKING WITHOUT BANKS

Decentralized Finance (DeFi) is a system of financial services — lending, borrowing, trading, saving, insurance — built on blockchain networks and operated entirely by smart contracts instead of banks or financial institutions.

💡 THE CORE IDEA
Traditional Finance (TradFi): You deposit money at a bank. The bank lends it to others. The bank keeps most of the interest. The bank decides who gets loans. The bank can freeze your account.

DeFi: You deposit money into a smart contract. The contract automatically lends it to others. You keep most of the interest. Code decides who gets loans (based on collateral). Some tokens and protocols have freeze, pause or upgrade controls; access can also depend on centralized interfaces.

📊 HOW BIG IS DEFI?
Total value locked (TVL) estimates depend on token prices, the protocols included and double-counting conventions. TVL is not trading volume, liquid reserves or insurance. Use dated methodology when comparing providers.

🔑 KEY DEFI CONCEPTS

Wallet: Self-custody software (MetaMask, Coinbase Wallet) that connects to DeFi protocols. You control your private keys — not a bank.

Smart Contract: Code deployed on blockchain that automatically executes financial transactions when conditions are met.

Liquidity Pool: A pool of tokens locked in a smart contract that enables automated trading or lending.

Protocol: A DeFi application (Aave = lending; Uniswap = trading; Compound = borrowing).

Yield: The interest or rewards earned by providing assets to DeFi protocols.

⚠️ THE CORE TRADEOFF
In traditional finance, banks accept the risk of your funds. FDIC insurance protects up to $250,000. In DeFi, YOU bear all the risk. No FDIC. No customer service. No chargebacks. Smart contract bugs, hacks, and protocol failures can cause permanent, unrecoverable losses.

📚 SOURCE CONTEXT
Reviewed 2026-10-11. U.S. federal rules unless another jurisdiction is named; year-specific limits are not timeless. Sources:
- https://www.congress.gov/bill/119th-congress/senate-bill/1582/text

Tip: A useful practice: visit DeFiLlama.com and explore the 'TVL' charts for different protocols. Notice which protocols have maintained high TVL over multiple years — that durability is one of the closest trust signals DeFi offers. Protocols that have survived bear markets with TVL intact show some resilience.

Open this lesson

DeFi Risks — What Can Go Wrong

🚨 DEFI RISK: THE COMPLETE PICTURE

DeFi has enabled genuinely new financial capabilities. It has also destroyed billions of dollars through hacks, exploits, design flaws, and fraud. Understanding these risks is essential background information.

⚡ SMART CONTRACT RISK
Smart contracts are code. Code can have bugs. Bugs can potentially be exploited.

Real examples:
- The DAO Hack (2016): $60M stolen, led to Ethereum hard fork
- Poly Network (2021): $611M stolen (attacker later returned it)
- Ronin Network (2022): $625M stolen (Axie Infinity's bridge)
- Euler Finance (2023): $197M stolen, partially returned
- Total DeFi hacks 2020–2024: Over $10 billion stolen

Mitigation: Many people consider protocols with multiple independent audits, long operating history (3+ years), and proven track records to be more reliable. Higher TVL held over multiple market cycles is often used as a proxy for security.

🪤 PROTOCOL RISK (DESIGN FAILURE)
Terra/LUNA (2022): $40 billion destroyed in 72 hours. The algorithmic stablecoin UST lost its $1 peg, triggering an irreversible death spiral. This wasn't a hack — the design itself had flaws. All participants lost everything.

🌊 LIQUIDITY RISK
In stressed markets, liquidity can evaporate. A token that showed $50M daily volume can become illiquid in hours, making it difficult to exit at any reasonable price.

⚖️ REGULATORY RISK
DeFi's legal status is evolving. The SEC has taken enforcement action against several DeFi projects. Jurisdictional risks vary — what's legal in one country may not be in another.

👤 USER ERROR
No customer service. No chargebacks. No "forgot password." Considerations include:
- Sending to wrong address → funds lost forever
- Approving malicious contract → all connected tokens drained
- Losing seed phrase → wallet and all contents lost forever
- Signing a phishing transaction → potential immediate loss

🛡️ RISK MITIGATION CONSIDERATIONS
✅ Starting small — many people find it prudent to begin with small amounts until gaining deep understanding of a protocol
✅ Using hardware wallet (Ledger/Trezor) — increasingly common for significant DeFi activity
✅ Using audited protocols with 2+ year operating history — a common approach
✅ Understanding transactions before signing — it's generally recommended to avoid signing what you don't fully understand
✅ Revoking unnecessary token approvals (revoke.cash) — a practice many find helpful
✅ Refraining from sharing your seed phrase — with anyone, ever, for any reason

Tip: A protective habit: before interacting with any DeFi protocol, visiting revoke.cash and connecting your wallet allows you to see all your current token approvals. Every approval you've granted is a potential attack surface — revoking ones you no longer need can reduce your DeFi security risk.

Open this lesson

DeFi Lending & Borrowing

💰 HOW DEFI LENDING WORKS

The most common DeFi use case is lending and borrowing — and it works very differently from a traditional bank loan.

🏦 TRADITIONAL BANK LOAN
1. Apply for loan — credit check, income verification, weeks of waiting
2. Bank approves or denies based on creditworthiness
3. Borrow at a fixed rate
4. Default → bank pursues legal action, damages your credit score

⛓️ DEFI LOAN
1. Connect wallet to lending protocol (Aave, Compound)
2. Deposit collateral (crypto you own)
3. Immediately borrow up to ~70% of collateral value
4. Collateral rules are enforced by code; interface access, identity requirements and governance controls vary
5. If collateral value falls → automatic liquidation (your collateral is sold to repay the loan)

📊 WHY WOULD ANYONE BORROW LIKE THIS?

1. Liquidity without selling: Hold $10,000 in ETH. Instead of selling it (triggering capital gains tax), borrow $5,000 USDC against it. Use the cash, keep the ETH position.

2. Leverage: Borrow to buy more crypto (extremely risky — amplifies both gains and losses).

3. Yield strategies: Borrow at 3% to earn 8% elsewhere. The interest rate spread is profit (also risky).

⚠️ LIQUIDATION RISK
This is the most important concept to understand:
- You deposit $10,000 ETH, borrow $7,000 USDC
- ETH price drops 30% — your collateral is now worth $7,000
- Smart contract automatically liquidates your ETH to repay the loan
- You lose your ETH collateral AND still owe fees
- You have no recourse, no appeal, no customer service

💡 LENDING SIDE (BEING THE LENDER)
Deposit crypto into protocols like Aave. Earn interest from borrowers. Interest rates float with supply and demand. During bull markets: stablecoin yields can hit 10–20%. During bear markets: yields compress to 1–3%.
Risk: Smart contract risk — if Aave is hacked, lenders can lose deposits. Aave has operated securely since 2017, but no protocol is guaranteed.

📚 SOURCE CONTEXT
Reviewed 2026-10-11. U.S. federal rules unless another jurisdiction is named; year-specific limits are not timeless. Sources:
- https://www.congress.gov/bill/119th-congress/senate-bill/1582/text

Tip: To understand DeFi mechanics: visiting app.aave.com allows you to view current supply and borrow rates for USDC and ETH — you don't need to connect a wallet to view rates. Watching how rates change based on market conditions gives you real insight into how DeFi actually functions.

Open this lesson

Decentralized Exchanges (DEXs)

🔄 WHAT IS A DECENTRALIZED EXCHANGE?

A Decentralized Exchange (DEX) is a trading platform that runs on smart contracts, with no company, no employees, and no central control. Anyone can trade any token directly from their wallet.

🏦 CENTRALIZED EXCHANGE (CEX) vs DEX

Centralized Exchange (such as Coinbase or Binance — for illustrative purposes only, not a recommendation):
- Company controls the order book
- Must verify your ID (KYC)
- Company holds your crypto (custody risk)
- Can freeze your account
- FTX, Celsius, and others showed what happens when they fail

Decentralized Exchange (Uniswap, Curve, SushiSwap):
- Smart contracts run the trading
- No ID required
- You keep custody of your crypto
- No one can freeze your funds
- Smart contract bugs are the primary risk

⚙️ HOW AMMS WORK (AUTOMATED MARKET MAKERS)
Traditional exchanges use order books: buyers list prices they'll pay, sellers list prices they'll accept, orders match.

DEXs use AMMs (Automated Market Makers):
- Liquidity pools: Users deposit pairs of tokens (e.g., ETH + USDC)
- Prices determined by a mathematical formula: x × y = k
- Trades happen instantly against the pool — no order matching needed
- Liquidity providers earn trading fees proportional to their share of the pool

💧 LIQUIDITY PROVIDING (LP)
Anyone can deposit equal values of two tokens into a DEX pool and earn fees from every trade.
Example: Deposit $5,000 ETH + $5,000 USDC into Uniswap ETH/USDC pool. Earn 0.3% of every trade through the pool.

⚠️ IMPERMANENT LOSS: The Hidden Risk
If you provide liquidity and the ratio of tokens changes significantly (ETH doubles while USDC stays stable), you end up with less value than just holding the original tokens. This "impermanent loss" can eliminate trading fee income, especially in volatile markets.

📊 MAJOR DEXS (2025)
- Uniswap: $2B+ daily volume, Ethereum and 10+ chains
- Curve: Specialized in stablecoin trading, minimal slippage
- dYdX: Derivatives and perpetuals trading
- Raydium: Largest Solana DEX

Tip: A hands-on way to learn: going to app.uniswap.org and exploring a hypothetical swap of ETH to USDC allows you to see the current exchange rate, price impact, and fees without executing a trade. This exploration shows you exactly how DEX trading works in practice.

Open this lesson

Yield Farming & Staking

🌾 YIELD FARMING: EARNING IN DEFI

Yield farming (also called liquidity mining) is the practice of deploying crypto assets across DeFi protocols to seek returns. At its peak in 2020–2021, some strategies generated 100–1,000% APY. Today, yields tend to be more moderate — typically 2–15% for stablecoins.

📊 THE YIELD SPECTRUM (2025 APPROXIMATE)

Lowest Risk:
- Ethereum staking: ~3–4% APY (native ETH staking to secure the network)
- USDC on Aave: ~4–6% APY (lending stablecoins to borrowers)
- Curve stablecoin pools: ~3–8% APY (providing stablecoin liquidity)

Medium Risk:
- ETH/USDC Uniswap pool: ~5–15% APY (volatile pair liquidity)
- Protocol governance tokens + fees: ~8–20% APY

Higher Risk:
- New protocol incentives: 50–500% APY (often unsustainable)
- Leveraged yield: 2–5× amplified returns (and potential losses)

⚙️ HOW STAKING WORKS
Proof-of-Stake blockchains (Ethereum, Solana, Cardano) require validators to "stake" (lock up) their coins to secure the network. In return, stakers earn newly created coins as rewards.
- ETH staking: Direct staking typically requires 32 ETH minimum ($80K+ at $2,500/ETH), or liquid staking options (Lido, Rocket Pool) often allow any amount
- Returns: ~3–4% annually — considered the base yield of the Ethereum network
- Risk: Slashing (penalty) can occur if validator behaves maliciously; smart contract risk exists for liquid staking

⚠️ THE UNSUSTAINABLE YIELD PROBLEM
High yields in DeFi are typically temporary and paid in new token emissions. When token prices fall, the high "APY" becomes worth much less in dollar terms. The 1,000% APY projects of 2021 typically paid yields in tokens that fell 99% — making real returns potentially negative despite enormous APY numbers.

Sustainable DeFi yield often comes from:
1. Real trading fees from real volume (Uniswap, Curve)
2. Real interest from real borrowers (Aave, Compound)
3. Network security rewards (ETH staking)

Tip: One important comparison: visiting Lido.fi or RocketPool.net shows current ETH staking returns. These 3–4% yields are 'real' — they come from Ethereum's consensus mechanism, not token inflation. Comparing that to any protocol offering 100%+ APY helps clarify: where does that yield actually come from? If the answer is new token emissions, that yield is typically not sustainable.

Open this lesson

Educational use only, not financial advice. Examples may become outdated. Verify current rules with primary sources. About our editorial approach.

Take the Decentralized Finance (DeFi) knowledge check →

Part of Wealth Spreads™ — free financial literacy education. Get Ready for the New Economy. Home · Your Money · Digital Assets · Learning Paths · What's Changing · For Organizations · All modules · Calculators · Glossary · Quick reference guides · About us & editorial information

Educational information only, not personalized financial, tax, or legal advice. No sign-up is needed to read lessons; a verified account is optional for saving progress.