Command Palette

Search for a command to run...

DeFi14 min readJanuary 10, 2025

Beginner's Guide to DeFi Lending

Understand how DeFi lending protocols work, from supplying and borrowing to interest rates, liquidation, and risk management.


DeFi lending protocols allow you to earn interest on your stablecoins or borrow against your crypto holdings, all without a bank or credit check. This guide covers how they work, the key protocols, and the risks involved.

How DeFi Lending Works

DeFi lending uses smart contracts to create permissionless money markets. Anyone can participate without KYC or credit checks.

Suppliers (Lenders)

You deposit stablecoins into a lending pool. In return, you receive interest-bearing tokens (like aUSDC on Aave) that accrue yield over time. You can withdraw at any time, and interest compounds automatically.

Process Flow:

1.

Connect wallet to lending protocol

2.

Select asset to deposit (e.g., USDC)

3.

Approve protocol to use your tokens

4.

Confirm deposit, receive tokens representing your deposit

5.

Interest accrues automatically, no action needed

Borrowers

You deposit collateral (e.g., ETH, WBTC) and borrow stablecoins against it. You pay interest on the borrowed amount and must maintain a minimum collateral ratio to avoid liquidation.

Typical Borrowing Scenarios:

-

Bullish on ETH, don't want to sell, but need liquidity

-

Using leverage to amplify returns

-

Tax optimization (borrowing is not a taxable event)

Interest Rate Models Deep Dive

Most lending protocols use variable interest rates determined by utilization rate — the percentage of deposited funds currently being borrowed.

Utilization and Rate Relationship

-

Low utilization: (e.g., 30%): Few borrowers, ample supply, low rates

-

Medium utilization: (e.g., 70%): Healthy level, moderate rates

-

High utilization: (e.g., 90%+): Tight supply, rates spike sharply

Kink Model

Most protocols set a "kink" at target utilization (typically 80-90%):

-

Below kink: Rates rise gradually

-

Above kink: Rates spike sharply (can reach 50%+ APY)

This design ensures:

-

Borrowing costs are manageable under normal conditions

-

High utilization incentivizes more supply and discourages borrowing

-

Suppliers can always withdraw (though may need to wait)

Understanding Liquidation Mechanics

When a borrower's collateral value drops below the required ratio, their position becomes eligible for liquidation. This is the most important risk in DeFi lending.

Liquidation Example

1.

You deposit $10,000 worth of ETH

2.

Borrow $7,000 USDC (70% LTV, Loan-to-Value ratio)

3.

ETH price drops 20%, collateral now worth $8,000

4.

LTV becomes 87.5% (7,000/8,000)

5.

Exceeds liquidation threshold (say 82.5%)

6.

Liquidators repay part of debt, receive your ETH as reward (typically 5-10% discount)

Liquidation Protection Strategies

Conservative Borrowing

-

Keep actual LTV at 50-60% of max allowed

-

Example: Max allowed 80%, maintain 40-50%

Set Up Monitoring

-

Use DefiSaver, Instadapp for liquidation alerts

-

Get notified automatically when approaching danger zone

Automated Protection

-

DefiSaver's Auto-Repay feature

-

Automatically sells collateral to repay debt when LTV rises

Keep Reserves

-

Keep some funds on the side to add collateral in emergencies

Top Lending Protocols In-Depth

Aave V3

The largest lending protocol by TVL, over $15 billion.

Key Features:

-

Efficiency Mode (eMode): Related assets (like stablecoin pairs) can borrow at higher LTV

-

Isolation Mode: New assets in isolated pools, risk contained

-

Flash Loans: Uncollateralized borrowing, repaid in same transaction

-

Multi-chain Deployment: Ethereum, Arbitrum, Optimism, Base, Polygon, Avalanche

Best For: Most users' first choice, comprehensive features, strong security record

Compound V3 (Comet)

Simplified single-borrowable-asset design focused on security.

Features:

-

Each market only allows borrowing one asset (e.g., USDC market only borrows USDC)

-

Simpler design, smaller attack surface

-

Known for security

-

Available on Ethereum, Arbitrum, Base, Polygon

Best For: Users prioritizing security who only need to borrow stablecoins

Morpho

Innovative optimization layer providing better rates on top of existing protocols.

How It Works:

-

Peer-to-peer matching: Directly matches suppliers and borrowers

-

Both sides get better rates when matched

-

Unmatched portions fall back to underlying pools (Aave/Compound)

Morpho Blue:

-

Permissionless lending primitive

-

Curated vaults provide automated strategies

-

Choice for more advanced users

Spark (MakerDAO/Sky)

Lending protocol in the MakerDAO ecosystem.

Advantages:

-

Borrow DAI/USDS directly, no need to borrow from pools

-

Competitive and stable rates

-

Backed by Maker's deep liquidity

Risks of DeFi Lending

Smart Contract Risk

Bugs or exploits in protocol code can lead to loss of funds.

Mitigation:

-

Only use protocols with multiple audits

-

Review protocol's security track record

-

Check if protocol has insurance fund

Oracle Risk

Lending protocols rely on price oracles (Chainlink, Pyth) to determine collateral values.

Potential Issues:

-

Oracle manipulation

-

Delayed price updates

-

Flash loan attacks exploiting price differences

Liquidity Risk

During extreme market conditions, high utilization can prevent suppliers from withdrawing immediately.

Coping Strategies:

-

Don't deposit all funds in a single pool

-

Monitor utilization metrics

-

Keep some liquidity in wallet

Governance Risk

Protocol parameters are controlled by governance. Malicious or poorly considered proposals can introduce risk.

Watch For:

-

Parameter change announcements

-

Governance proposal voting

-

Timelock protections

Getting Started: Practical Guide

Step 1: Choose Protocol and Network

Recommend starting with Aave V3 on Arbitrum or Base:

-

Low gas fees (cents)

-

Mature and reliable protocol

-

Sufficient liquidity

Step 2: Deposit Stablecoins

1.

Ensure wallet has USDC/USDT and small amount of ETH (gas)

2.

Visit app.aave.com

3.

Connect wallet, select correct network

4.

Click "Supply", select asset and amount

5.

Confirm transaction

Step 3: Monitor Position

-

Check at least weekly

-

Watch for rate changes

-

Use Zapper, DeBank and other tools to track

Step 4: Optimize Yield

After mastering basics, explore:

-

Morpho vaults for higher yields

-

Diversify across protocols

-

Use eMode for capital efficiency

Step 5: Advanced — Borrowing

Only borrow after fully understanding risks:

-

Deposit ETH or other collateral

-

Borrow stablecoins

-

Set conservative LTV

-

Set up monitoring and alerts


TagsDeFilendingAaveCompound

Related Articles