Lending Protocols: Aave and Compound
Overcollateralization, cToken Accounting, and the Math of Liquidations — A TLDR Primer
DeFi lending protocols look simple on the surface — deposit crypto, earn yield, borrow against collateral — until you try to understand *why* the interest rate just jumped, what a health factor actually measures, or how a liquidation bot just took 10% of someone's position in a single block. If you've hit that wall, this guide is for you.
**Lending Protocols: Aave and Compound** is a concise primer that walks you through the real mechanics of the two most important decentralized lending markets. You'll learn how pooled liquidity works without a bank in the middle, how the kinked utilization curve drives supply and borrow rates up and down automatically, and how Compound's cTokens and Aave's aTokens track your deposit's growing value as a receipt token rather than a balance. The guide then covers collateral factors, liquidation thresholds, and the full math of getting liquidated — with a worked numerical example so the numbers make sense before you risk real money.
This book is written for early college students, self-taught developers entering the Web3 space, and anyone who wants a clear decentralized finance protocol study guide without wading through whitepapers or Discord lore. The final two sections compare Aave and Compound on flash loans, stable-rate borrowing, isolation mode, and governance — then survey real exploits and failure modes so you know what to check before you deposit.
Short by design. No filler. Read it in an afternoon and actually understand what's happening on-chain.
- Explain how a decentralized lending pool replaces a traditional bank
- Read and interpret supply APY, borrow APY, and utilization rate
- Understand cTokens and aTokens as interest-bearing receipts
- Calculate collateral factors, health factors, and liquidation thresholds
- Compare Aave and Compound's design choices and risk tradeoffs
- Identify the main risks: smart contract bugs, oracle manipulation, and liquidation cascades
- 1. What a DeFi Lending Protocol Actually IsIntroduces pooled lending, overcollateralization, and why a bank-free credit market needs different rules than a traditional bank.
- 2. Interest Rates, Utilization, and the KinkExplains how supply and borrow rates are determined algorithmically by pool utilization, including the kinked rate curve both protocols use.
- 3. cTokens and aTokens: Receipts That Earn InterestBreaks down how Compound's cTokens and Aave's aTokens track deposits, with worked conversions between underlying and receipt tokens.
- 4. Collateral, Health Factor, and LiquidationsCovers collateral factors, liquidation thresholds, and the math of getting liquidated, with a full numerical example.
- 5. Aave vs. Compound: Design Choices That MatterCompares the two protocols on flash loans, stable rate borrowing, isolation mode, governance, and risk parameters.
- 6. Risks, Failures, and Why It Still WorksSurveys real exploits and market events — oracle attacks, bad debt, and liquidation cascades — and what users should check before depositing.