Introduction to DeFi
DeFi recreates financial services with smart contracts instead of intermediaries. You'll learn the main categories, metrics, and risks to start safely.
Who Is This For?
- •Beginners entering DeFi for the first time
- •Crypto users curious about lending, trading, and yield without banks
Learning Objectives
- 01Define DeFi and list core protocol categories
- 02Interpret basic DeFi metrics like TVL and APY
- 03Identify key risks including smart contract and liquidation risk
What DeFi Covers
DeFi — Decentralized Finance — replaces banks, brokers, and exchanges with open-source smart contracts. Anyone with a wallet can access it.
Traditional Finance
- •Banks hold your money
- •KYC / ID required
- •Business hours, days to settle
- •Opaque fees and reserves
- •Geographically restricted
DeFi
- •Smart contracts hold funds
- •Just a wallet needed
- •24/7, seconds to settle
- •Transparent on-chain data
- •Global, permissionless access
🏗️ Explore Protocol Categories
Lending & Borrowing
Earn interest or borrow against collateral
Supply crypto to a pool and earn interest from borrowers. Or deposit collateral to borrow other assets without selling your holdings.
Lenders deposit tokens into a smart contract pool. Borrowers post collateral (often 150%+ of loan value) and borrow from that pool. Interest rates adjust algorithmically based on supply and demand.
How DeFi Works
Three pillars make DeFi different from traditional finance: smart contracts, composability, and transparency.
Smart Contracts
Code replaces intermediaries. Custody, interest rates, and trade execution are all automated.
Composability
Protocols can plug into each other like Lego blocks. LP tokens become collateral, borrowed assets become liquidity.
Transparency
All reserves, rates, and transactions are visible on-chain. Anyone can audit a protocol's real-time state.
🧱 Composability in Action (“DeFi Legos”)
See how protocols stack to create complex strategies:
Step 1: Deposit into a Lending Protocol
You deposit 10 ETH into Aave as collateral.
Your aETH is a token that represents your deposit. It earns interest and can be used elsewhere.
Metrics & Getting Started
Understanding key metrics helps you evaluate protocols and estimate real returns.
TVL
Total Value Locked
The total $ value of assets deposited in a protocol. Higher TVL generally signals more adoption and trust.
APY
Annual Percentage Yield
Your projected yearly return with compounding. APR is without compounding. APY is always higher than APR.
Volume
Trading / Protocol Volume
How much value flows through the protocol daily. Higher volume means more fees for LPs.
💰 Real Yield Calculator
See what you'd actually earn after gas costs:
🚨 You're losing money! Gas costs exceed your yield. Consider a larger deposit, an L2 with cheaper gas, or fewer transactions.
🚀 Getting Started Safely
DeFi Risk Map
Every DeFi opportunity comes with risk. Understanding them is essential before depositing anything.
Smart Contract Risk
highBugs in protocol code can be exploited to drain funds. Even audited contracts have been hacked.
Liquidation Risk
highWhen borrowing, if your collateral value drops below the required ratio, it gets automatically sold (liquidated).
Oracle Risk
mediumDeFi relies on price oracles (like Chainlink) for accurate data. If an oracle reports a wrong price, liquidations or exploits can occur.
Impermanent Loss
mediumWhen providing liquidity to a DEX pool, you can lose value if token prices diverge significantly from when you deposited.
Rug Pull / Exit Scam
criticalDevelopers of a protocol drain liquidity or mint tokens to steal user funds, then disappear.
Common Mistakes & Gotchas
💡 Golden Rule: If you can't explain how a protocol generates its yield, you probably are the yield. Sustainable returns come from real economic activity (trading fees, loan interest), not token emissions alone.
Knowledge Check
What does TVL measure?
Name two core DeFi categories:
Why is composability powerful?
What is a key risk when borrowing in DeFi?
Why should you check gas costs before depositing into DeFi?