DeFi Protocol Guide — Lending & Borrowing

DeFi Lending — How to Earn Interest and Borrow Against Your Crypto

Aave, Compound, and Morpho are on-chain money markets where anyone can supply assets to earn yield or borrow against crypto collateral — no credit check, no bank, no intermediary. This guide explains exactly how the mechanics work, what health factor means, how liquidation is triggered, and what you need to know before putting capital to work in a lending protocol.

What DeFi Lending Protocols Do

DeFi lending protocols are decentralized money markets. Suppliers deposit assets to earn yield paid by borrowers. Borrowers take loans against over-collateralized crypto positions. The protocol's smart contract sets interest rates algorithmically using a utilization rate model: when demand for borrowing rises, rates increase automatically, attracting more supply and reducing borrowing until equilibrium is reached.

This happens without any bank officer, credit check, or human decision-maker. Anyone with a wallet and collateral can borrow. Anyone with assets to supply can earn interest. The protocol is the intermediary — a piece of code that enforces all the rules automatically, on-chain, in real time.

The result is a money market that operates 24 hours a day, 7 days a week, is accessible to any wallet address anywhere in the world, and settles every transaction on a public blockchain where anyone can verify the protocol's state at any moment.

How the Supply Side Works

When you supply USDC to Aave, you receive aUSDC — an interest-bearing token representing your deposit plus accrued interest. The exchange rate between aUSDC and USDC increases continuously as interest accrues. When you redeem your aUSDC, you receive the original USDC plus the accumulated interest. No claiming, no manual compounding — your balance grows in real time.

Supply APR varies by asset and utilization. USDC on Aave typically yields 2–8% depending on market conditions — higher when borrowing demand spikes (during bull markets, when traders want leverage), lower when liquidity exceeds demand. ETH supply rates are typically lower (1–3%) since fewer people borrow ETH directly. Stablecoin supply yields tend to be the most consistent and are the most commonly used by people seeking predictable DeFi income.

Key concept: Supply APR is variable. It changes every block based on utilization. A 6% rate today could be 2% next week if borrowing demand drops. Never assume the rate you see at deposit time will persist.

How the Borrow Side Works

To borrow, you first deposit collateral. Each asset has a Loan-to-Value (LTV) ratio — the maximum you can borrow as a percentage of collateral value. If ETH has an 80% LTV on Aave, you can borrow up to $800 USDC against $1,000 of ETH. The debt accrues interest continuously, so your total debt grows over time even if you never add to the position.

The critical number to watch is your health factor. Here is the formula the protocol uses:

Health Factor Formula
Health Factor = (Collateral Value × Liquidation Threshold) ÷ Total Debt
A health factor above 1.0 means your position is safe. Below 1.0, you are eligible for liquidation. The liquidation threshold is always higher than the LTV — for ETH on Aave v3, LTV is 80% and liquidation threshold is 82.5%.

As long as health factor remains above 1.0, your position is safe. If ETH's price falls and health factor drops below 1.0, a liquidator bot can repay part of your debt and receive a portion of your collateral at a discount — typically a 5–10% bonus. This liquidation bonus compensates external liquidators for keeping the protocol solvent by closing underwater positions quickly.

Managing Liquidation Risk

The key discipline in DeFi lending is maintaining a significant buffer above the liquidation threshold. Borrowing at 95% of your maximum LTV means any small price move puts you at liquidation risk. A conservative approach: borrow no more than 30–50% of your maximum borrowing capacity. This gives you a wide cushion to absorb price swings before the health factor approaches the danger zone.

Practical safeguards to protect your position:

  • Set price alerts for your collateral asset at multiple thresholds — for example at -10%, -20%, and -30% from your deposit price
  • Maintain extra collateral in your wallet ready to deposit immediately if the market moves against you
  • Consider borrowing stablecoins against volatile collateral — your debt stays fixed in dollar value while collateral fluctuates
  • Use Aave's built-in safety module calculator to model multiple price scenarios before establishing a borrow position
  • Monitor your health factor directly in the Aave or Compound dashboard or through portfolio trackers like DeBank or Zapper

The worst outcome is not a partial liquidation — it is a cascade liquidation where price drops quickly, liquidators close most of your position, and you end up with little collateral remaining. Proper buffer management is not optional.

Flash Loans — DeFi's Unique Product

Flash loans are uncollateralized loans that must be borrowed and repaid within a single blockchain transaction. If the full loan plus fee is not repaid before the transaction closes, the entire transaction reverts as if it never happened. This makes flash loans completely risk-free for the protocol — but powerful for sophisticated users who can compose complex multi-step actions within a single atomic transaction.

Flash loans enable arbitrage across DEXs, collateral swaps without liquidation, self-liquidation (repaying a borrow position and reopening it with better terms), and governance attacks on protocols with inadequate safeguards. They are not a beginner tool — building a flash loan strategy requires smart contract development skills. But they illustrate the programmability that makes DeFi structurally different from any traditional lending product. No bank offers a billion-dollar unsecured loan for two seconds.

Why flash loans matter even if you never use them: They enable efficient arbitrage that keeps DeFi prices aligned across markets. They also expose poorly designed protocols. If a protocol can be drained via flash loan manipulation of its price oracle, that is a critical design flaw — not a flash loan problem.

Major DeFi Lending Protocols

The lending protocol landscape has consolidated around a small number of well-audited, battle-tested platforms. Each has a distinct design philosophy:

  • Aave v3: The largest by TVL. Deployed on Ethereum, Base, Arbitrum, Polygon, Optimism, and Avalanche. Features isolation mode for riskier assets, efficiency mode (e-mode) for correlated asset borrowing at higher LTVs, and cross-chain liquidity portals. The most feature-complete lending protocol available.
  • Compound v3: Simplifies the risk model by focusing on single-asset borrow markets — for example, a USDC market where USDC is the only borrowable asset. This eliminates some complexity but limits flexibility. Compound v3 on Base and Ethereum remains a significant protocol by TVL.
  • Morpho: A peer-to-peer matching layer originally built on top of Aave and Compound that routes matched lenders and borrowers directly to each other for better rates. Morpho Blue (the standalone version) is a permissionless lending primitive that allows anyone to create isolated lending markets with custom parameters.
  • Spark Protocol: MakerDAO-affiliated lending market designed for DAI-centric strategies. Allows borrowing DAI at rates set by Maker governance. Integrated deeply with the MakerDAO ecosystem and a primary venue for leveraged ETH strategies using sDAI as collateral.

Always verify current TVL, audit history, and oracle setup before supplying or borrowing. DeFi protocols change — governance decisions can alter risk parameters, new chains get added, and exploit history matters. DefiLlama is the standard reference for TVL data across all chains.

Continue Learning DeFi

Centralized Exchanges vs On-Chain Lending

DeFi lending on Aave or Compound requires a Web3 wallet — not a CEX account. Here's how the three exchanges Brian recommends compare, and why on-chain lending is structurally separate.

Feature BTCC Bitunix MEXC
On-Chain DeFi Lending No No No
On-Exchange Earn / Yield No No Yes — MEXC Earn
Futures / Leverage Trading Yes — 150× Yes — 200× Yes — 200×
Copy Trading Yes Yes Yes
New Token / DeFi Launches No Limited Yes — Kickstarter
US Access US-Friendly ✓ Check availability Check availability
Get Started Open BTCC → Open Bitunix → Open MEXC →

Important: On-chain DeFi lending through Aave, Compound, Morpho, or Spark requires a self-custody Web3 wallet (MetaMask, Rabby, or a hardware wallet) connected directly to the protocol on the relevant blockchain. None of the centralized exchanges above provide access to on-chain lending protocols. MEXC Earn is a custodial, centralized yield product — not the same as supplying assets to Aave.

DeFi Lending — Frequently Asked Questions

The most common questions about how Aave, Compound, and on-chain lending protocols actually work.

How does DeFi lending work?

DeFi lending protocols like Aave and Compound allow users to deposit crypto assets into a pool and earn interest from borrowers who take loans against over-collateralized positions. Smart contracts manage the entire process — setting interest rates algorithmically based on supply and demand, enforcing collateral ratios, and executing liquidations automatically. There is no credit check, no loan officer, and no bank holding your funds. You interact directly with the protocol via your wallet.

What is a health factor in DeFi lending?

Health factor is a numerical score representing the safety of your borrow position. A health factor above 1.0 means your collateral sufficiently covers your debt. As collateral value falls (or borrowed asset value rises), the health factor decreases. When it drops below 1.0, the protocol automatically liquidates a portion of your collateral to bring the position back into compliance. Keeping health factor above 1.5–2.0 at all times is a reasonable conservative approach for most users.

What is over-collateralization in DeFi?

DeFi lending requires over-collateralization — you must deposit more value than you borrow. If you want to borrow $1,000 USDC on Aave with ETH as collateral, you might need to deposit $1,400–2,000 worth of ETH depending on the collateral factor. This excess collateral protects the protocol against price volatility. Unlike a bank loan that might allow 90% LTV on a home, DeFi keeps collateral ratios conservative because there is no recourse if the protocol goes underwater — the smart contract must cover all losses from the collateral pool alone.

What are the risks of DeFi lending?

Key risks include: liquidation (if collateral value falls below threshold), interest rate risk (variable rates can spike during high demand), smart contract risk (protocol bugs that allow exploits), oracle risk (if the price feed used to value collateral is manipulated), and asset depeg risk (if a collateral token loses its peg or crashes suddenly). Always maintain a healthy buffer above the liquidation threshold, use only established protocols with long audit histories, and never supply or borrow more capital than you can afford to lose entirely in a worst-case scenario.

Go Deeper — Join Crypto School

Brian covers DeFi lending strategies, on-chain risk management, trading systems, and technical analysis inside Crypto School. $39/month. All courses included. Cancel any time.

Affiliate Disclosure: CryptoSchool.cc may earn a commission when you open an account or join through links on this page, at no extra cost to you. DeFi lending involves substantial risk of loss including liquidation, smart contract exploits, and oracle manipulation. Funds in DeFi protocols are not insured. Never deploy capital you cannot afford to lose entirely. This is not financial advice.