πŸŽ‰ 75% of content is free forever β€” Unlock Premium from $10/mo β†’
CW
NEWSLIVESearch All Content
πŸ’Ό Servicesℹ️ Aboutβœ‰οΈ ContactView Pricing Plansfrom $10

Lending Protocols

Blockchain Financial Systems🟒 Free Lesson

Lending Protocols

Decentralized lending protocols enable permissionless borrowing and lending through algorithmic interest rate models and over-collateralization. They form the backbone of DeFi's credit market.

Protocol Comparison

FeatureAave v3Compound v3MakerDAO
Interest ModelVariable + StableJump RateStability Fee
Collateral TypesMulti-assetSingle marketETH, LP tokens
Max LTV80%83%172% (with DSR)
Liquidation Threshold82.5%85%150%
Flash LoansNativeNot nativeNot native
GovernanceAAVE veTokenCOMPMKR

Interest Rate Models

Utilization-Based Rate

Most lending protocols use utilization-based interest rates:

Where:

  • = Utilization rate
  • = Total borrowed amount
  • = Total supplied amount
  • = Protocol reserves

Interest Rate Visualization

Lending Protocol Interest Rate DynamicsOptimal U (80%)Low Utilization = Low RatesEncourages borrowingHigh U = High RatesIncentivizes repaymentUtilization Rate β†’ Interest Rate increases exponentially after optimal point

Aave Interest Rate Model

Aave Interest Rate CurveUtilization Rate (U)Interest Rate (%)Optimal (U_opt)Below U_opt: Slope1R = Base + U Γ— Slope1Above U_opt: Slope2R = R_opt + (U-U_opt) Γ— Slope2

Borrow Rate Formula

Supply Rate

Where is the reserve factor (typically 10-30%).

Interest Rate Parameters

ParameterAave USDCAave ETHCompound USDC
Base Rate0%0%1.44%
Optimal Utilization90%80%80%
Slope13.5%3.3%3.94%
Slope260%80%100%+
Reserve Factor10%15%25%

Supply vs Borrow Rates

Supply vs Borrow Rate SpreadBorrow RateSupply RateReserve Factor (Protocol Revenue)Spread between borrow and supply rates = Protocol revenue

Collateral Factors

Collateral factors determine how much can be borrowed against deposited assets.

Loan-to-Value (LTV)

Liquidation Threshold

The liquidation threshold determines when a position becomes eligible for liquidation:

Where:

  • = Liquidation threshold for collateral asset
  • = Price of asset

Collateral Factor Comparison

AssetAave LTVAave LTCompound CFRisk Rating
USDC85%90%83%Low
ETH80%82.5%82%Medium
WBTC70%75%70%Medium
LINK65%70%65%Medium
UNI55%60%55%High
AAVE60%65%N/AHigh

Liquidation Mechanics

Liquidation Process

When Health Factor drops below 1.0:

  1. Liquidators repay part of the borrow position
  2. Liquidators receive collateral at a discount
  3. The discount is the liquidation bonus

Liquidation Profit Formula

Liquidation Bonus by Asset

AssetAave BonusCompound BonusTypical Gas Cost
USDC4%5%~500K gas
ETH5%5%~300K gas
WBTC5%5%~400K gas
LINK5%5%~350K gas
UNI10%5%~450K gas
Liquidation Threshold DiagramSAFEHF > 1.0RISKY0.5 < HF < 1.0LIQUIDATABLEHF ≀ 1.0ThresholdLiquidation

Flash Loans

Flash loans are uncollateralized loans that must be borrowed and repaid within a single transaction.

Flash Loan Mechanics

Flash Loan Fee

Where is typically 0.05-0.09%.

Flash Loan Use Cases

Use CaseDescriptionProfitability
ArbitragePrice difference exploitationHigh
LiquidationUnder-collateralized position cleanupMedium
Self-LiquidationRepay and re-enter at better ratioMedium
Collateral SwapSwitch collateral type without repaymentLow-Medium
Rate OptimizationMove between lending protocolsLow

Flash Loan Providers

ProviderFeeMax AmountBlockchain
Aave v30.05%Pool dependentMulti-chain
dYdX0%$10M+Ethereum
Balancer0%Pool dependentEthereum
PancakeSwap0.01%Pool dependentBSC

Flash Loan Volume Trends

Flash Loan Volume GrowthYearVolume ($B)2021202220232024Flash loan usage continues to grow as DeFi complexity increases

Credit Delegation

Credit delegation allows users to lend their creditworthiness to others:

Delegation Model

Where:

  • = Delegation factor (typically 0.5-0.9)
  • = Collateral factor of delegator's assets

Trust Model

  1. Delegator: Deposits collateral, sets credit limit
  2. Delegate: Borrows against delegator's collateral
  3. Risk: Delegate defaults β†’ delegator's collateral is liquidated
  4. Mitigation: Delegators can revoke and set expiration

Real-World Example: Multi-Protocol Lending Strategy

An advanced borrowing strategy:

  1. Deposit 10 ETH ($20,000) into Aave as collateral
  2. Borrow 8,000 USDC at 3.5% APY
  3. Deposit 8,000 USDC into Compound earning 4.2% APY
  4. Net result: Earn 0.7% spread on $8,000 while maintaining ETH exposure

Risk Monitoring

javascript
const healthFactor = (collateral * price * liquidationThreshold) / (borrow * price);
if (healthFactor < 1.2) {
  // Warning: approaching liquidation zone
  // Add collateral or repayιƒ¨εˆ† debt
}

Lending Protocol Market Share

DeFi Lending Protocol Market ShareAave 45%Compound 25%Maker 15%Other 10%Venus 5%

Trade-Offs

Lending Protocol Trade-Offs

Trade-OffOption AOption B
Collateral EfficiencyHigher LTV = more capital efficientLower LTV = safer
Interest RateVariable (market-driven)Stable (predictable)
LiquidationFast (protects protocol)Slow (safer for borrowers)
Collateral DiversityMore assets = more flexibilityFewer assets = lower risk
Flash LoansAvailable = more attack surfaceUnavailable = safer

Key Decisions

  • Variable vs Stable Rates: Variable rates track market; stable rates provide predictability
  • Over-collateralization: Higher ratios are safer but less capital efficient
  • Liquidation Speed: Faster liquidations protect lenders but harm borrowers
  • Oracle Dependency: More oracle sources are safer but increase complexity

Lending Protocol Risk Assessment

Lending Protocol Risk FactorsSmart ContractExploit riskMitigation: AuditsOracle RiskPrice manipulationMitigation: TWAPLiquidity RiskInsufficient fundsMitigation: ReservesDiversification across protocols reduces overall risk exposureMonitor utilization rates and health factors regularly

Interview Questions

  1. Explain how Aave's interest rate model works. What happens to interest rates when utilization exceeds the optimal point, and why is this design important?

  2. A user deposits 10 ETH and borrows 5,000 USDC. If ETH drops 30%, what is the new health factor? Should the user add collateral or repay debt?

  3. How do flash loans differ from traditional loans? Explain a use case where flash loans can be used for liquidation arbitrage.

Lending Protocol Due Diligence

When evaluating lending protocols, consider:

  1. Audit Status: Multiple audits from reputable firms
  2. Bug Bounty: Active rewards for vulnerability reports
  3. Time Locks: Delay on admin function changes
  4. Oracle Redundancy: Multiple price feed sources
  5. Insurance Coverage: Protocol or third-party insurance
  6. Governance: Decentralization and community involvement
  7. Track Record: History of security incidents

Lending Protocol Comparison Chart

FeatureAaveCompoundMakerDAOVenus
TVL3B+1B+
Assets30+20+10+15+
Max LTV80%83%172%80%
Flash LoansYesNoNoYes
Multi-chainYesYesNoYes
GovernanceAAVECOMPMKRXVS

Lending Protocol Selection Guide

Use CaseRecommendedReason
Maximum LTVMakerDAOHighest collateral ratio
Flash LoansAave v3Native flash loan support
Multi-chainAave/CompoundCross-chain deployment
Simple InterfaceCompoundUser-friendly design
Stablecoins OnlyMakerDAODAI focus

Lending Protocol Security Checklist

  • Smart contract audits completed
  • Bug bounty program active
  • Time-locked admin functions
  • Multi-signature governance
  • Oracle redundancy implemented
  • Emergency pause functionality
  • Insurance coverage available
  • Regular security monitoring

Interest Rate Model Comparison

ProtocolModelParametersFlexibility
Aave v3Jump RateConfigurableHigh
Compound v3Jump RateFixedLow
MakerDAOStability FeeGovernanceMedium
VenusJump RateConfigurableMedium

Quiz Questions

  1. What is the primary purpose of the liquidation threshold in lending protocols?

    • A) Determine interest rates
    • B) Set maximum borrow limits
    • C) Trigger liquidation when health factor drops below threshold
    • D) Calculate collateral rewards
  2. If a lending protocol has 80% utilization and 10% reserve factor, what percentage of interest goes to suppliers?

    • A) 100%
    • B) 90%
    • C) 72%
    • D) 80%
  3. What risk do credit delegators face when delegating their credit?

    • A) No risk, delegation is always safe
    • B) Their collateral may be liquidated if the delegate defaults
    • C) They lose their deposited assets immediately
    • D) They must pay the delegate's interest
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-09-22

β€”
β˜†β˜†β˜†β˜†β˜†
0 ratings

Rate & Feedback

Need Expert Blockchain Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement