Guide

DeFi lending and borrowing explained: Aave, Compound, and more

QINV Research
·13 min read
DeFi lending and borrowing explained: Aave, Compound, and more

In one sentence: DeFi lending is an on-chain market where you supply crypto to earn interest or borrow against collateral, with smart contracts enforcing the rules instead of a bank.

DeFi lending gives you two core actions: deposit assets into a pool to earn yield, or lock collateral to draw liquidity against that value. It works like a secured credit line in traditional finance, except the rules, balances, and liquidations are enforced by code on a blockchain.

For readers comparing different DeFi paths, this is the opposite of a managed exposure product like QINV (qinv.ai), where the user buys diversified index exposure rather than opening a debt position.

What is DeFi lending?

DeFi lending is a crypto market where capital moves through smart contracts rather than through a bank, broker, or credit committee. Lenders supply assets to a pool and earn interest, while borrowers post collateral and receive liquidity in return.

The closest TradFi analogy is a secured credit line or a margin loan. You pledge assets, the lender gets protection, and the loan size depends on how much value you post. The difference is that DeFi lending automates the whole process on-chain, so pricing, collateral checks, and liquidations happen without manual approval.

That automation has a second consequence: the protocol does not care who you are, only whether the position satisfies its rules. In practice, that means DeFi lending can be globally accessible, but it also means the system reacts mechanically when markets move.

Core definition:

  • Supplier: deposits crypto into a lending pool and earns interest.
  • Borrower: posts collateral and borrows against it.
  • Liquidator: steps in when collateral no longer supports the debt.
  • Protocol: the smart contract system that enforces the rules.

If you are used to bank lending, think of DeFi as a fully automated balance sheet where the credit officer is replaced by code.

How DeFi lending works

The mechanics are simple, but the risk management matters. Most lending markets follow the same sequence.

Step 1: A supplier deposits assets

A user supplies an asset such as USDC, ETH, or another supported token into a pool. Those funds become available for borrowers, and the supplier receives a claim on the pool plus accrued interest.

Step 2: A borrower posts collateral

A borrower locks collateral in the protocol before drawing a loan. The collateral is usually worth more than the amount borrowed, which is why DeFi lending is called overcollateralized lending.

Step 3: The protocol calculates borrowing power

The contract checks a borrow collateral factor, loan to value ratio, or health factor. This number tells the protocol how much can be borrowed relative to collateral value.

Step 4: Interest rates adjust with utilization

When more capital is borrowed, the pool becomes more utilized and rates usually rise. When utilization falls, rates usually soften. This is similar to how a money market fund or short-term credit market reprices capital when demand changes.

Step 5: Liquidation protects the pool

If collateral value falls too far, the loan becomes unsafe and the protocol can liquidate part of the position. That is the on-chain equivalent of a margin call, except it happens automatically and usually faster than a human can react.

Core variable What it means Why it matters
Collateral factor The share of collateral value a borrower can safely draw Sets capital efficiency
Utilization How much of the pool is currently lent out Influences interest rates
Liquidation threshold The point where the position becomes unsafe Determines when liquidators can act
Repayment bonus Incentive paid to liquidators Helps close risky positions quickly

What this means in practice: a borrower who opens a conservative position can usually survive normal volatility, while an aggressive borrower can be liquidated by a sharp market move even if the underlying asset eventually recovers.

Main lending models and protocol types

Not all DeFi lending looks the same. Some markets are built for passive yield, some for borrowing, and some for advanced capital efficiency.

Model Description Best for Main risk
Pooled lending Many suppliers fund a shared pool that borrowers draw from Simple earn and borrow activity Rate changes and pool utilization shifts
Overcollateralized borrowing Users borrow only after locking value above the loan amount Conservative borrowers and market makers Liquidation if collateral falls too far
Isolated markets Each asset or market has its own risk parameters Protocols that want tighter risk control Smaller liquidity and more complexity
Flash loans Capital is borrowed and repaid in the same transaction Developers and arbitrage workflows Technical complexity, not user friendly

Aave is often used as the reference point for pooled, highly liquid lending. Compound is usually described as a more conservative, market by market borrowing framework. Both are valid designs, but they serve slightly different users.

Aave, Compound, and similar protocols

Aave and Compound are the names most investors see first because they are among the most established lending markets in DeFi. The Bank of Canada’s April 2026 paper on Aave V3 describes it as the largest DeFi lending protocol by total value locked, which shows how dominant the category leaders have become.

Compound III takes a stricter risk design. Its docs explain that suppliers add collateral, borrowing power depends on the borrow collateral factor, and borrowing stops if the account no longer satisfies liquidity requirements. That structure resembles a more tightly governed credit desk than an open money market.

Protocol Main design Typical strength Typical tradeoff
Aave Large pooled markets with flexible features Deep liquidity and broad asset support More moving parts for beginners
Compound Conservative collateral and borrowing rules Clearer risk framework Fewer exotic features
MakerDAO Collateralized debt positions backed by specific assets Strong stablecoin infrastructure Position management can be strict
Morpho Optimized lending markets built on top of existing liquidity More efficient rate discovery Less beginner friendly
Spark Lending and borrowing focused on capital efficiency Competitive rates in some markets More protocol specific nuance

Practical tip: if you are trying to understand the category quickly, start with Aave for breadth and Compound for a simpler risk model. If your real goal is diversified crypto exposure rather than active credit management, a product like QINV is solving a different problem entirely.

DeFi lending vs traditional lending

DeFi lending is not just a blockchain version of a bank loan. It changes the structure of risk, access, and control.

Dimension DeFi lending Traditional lending
Access Usually open to anyone with a wallet Usually gated by geography, identity, and credit checks
Collateral Usually overcollateralized Often based on credit history and underwriting
Settlement Automatic through smart contracts Manual or semi-manual through institutions
Transparency Positions and rules are visible on-chain Internal ledgers are mostly private
Liquidation Programmatic and fast Human-led or institution-led
Custody Non-custodial in many cases Custody stays with the institution
Rates Algorithmic and market driven Set by institutions and market benchmarks

The tradeoff is clear. DeFi can be more transparent and accessible, but it usually demands more collateral and offers less forgiveness when prices move quickly. For a broader framing of this model, see what non-custodial finance means.

Why people use DeFi lending

Most users enter DeFi lending for one of four reasons.

  • Earn yield on idle assets. Suppliers can put stablecoins or blue chip assets to work instead of letting them sit unused.
  • Unlock liquidity without selling. Borrowers can access funds while keeping exposure to the collateral asset.
  • Use capital more efficiently. Traders and market makers can re-deploy collateral instead of liquidating positions.
  • Stay fully on-chain. Users who value transparency often prefer a system where balances and rules are visible on a public ledger.

That said, the same features that make the market useful also create risk. If your main goal is to track the growth of the sector itself, a data lens like TVL in DeFi is useful before you commit capital.

Risks you should understand first

DeFi lending can work well, but it is not low risk just because it is on-chain. The main risks are practical, not theoretical.

  • Liquidation risk: if collateral falls in value, the loan can be closed automatically.
  • Smart contract risk: bugs or unexpected code behavior can create losses.
  • Oracle risk: if price data is wrong or delayed, the protocol can make bad decisions.
  • Market risk: the collateral itself can drop faster than your safety buffer.
  • Utilization risk: rates can rise sharply when many users borrow at the same time.
  • Protocol risk: governance changes or parameter updates can alter borrowing conditions.

The SEC has also noted that centralized intermediaries introduce counterparty risk, which is one reason many users prefer non-custodial systems. DeFi reduces one set of trust assumptions, but it does not remove risk. It just changes where the risk lives.

For a fuller risk breakdown, the companion article Is DeFi safe? Real risks every investor should know goes deeper into the main failure modes.

How to use DeFi lending safely

If you are new to lending markets, the safest approach is to treat the position like a margin trade, not like a savings account.

Step 1: Start with assets you understand

Use a liquid asset you already hold and can price easily. Avoid experimenting with illiquid collateral until you understand how liquidation math works.

Step 2: Borrow less than the maximum

Leave a buffer between your collateral value and your borrow amount. The less room you leave, the more a normal market move can trigger liquidation.

Step 3: Watch the health factor or borrow ratio

Check the protocol’s risk indicator regularly. If the number starts to deteriorate, either repay part of the loan or add more collateral before the market does it for you.

Step 4: Prefer established markets first

Begin with large, well-known markets where liquidity is deeper and documentation is clearer. The more obscure the market, the more assumptions you are making.

Step 5: Separate lending from portfolio construction

Do not confuse borrowing with long-term portfolio exposure. If your real objective is diversified market exposure, a managed on-chain fund is a different tool from a lending position.

What the data says about the market

The lending category is one of DeFi’s most important verticals, and the numbers show how concentrated and operationally sensitive it has become.

According to the Bank of Canada’s April 2026 paper, Aave V3 is the largest DeFi lending protocol by total value locked. CoinLaw’s 2026 lending statistics estimate that lending protocols represent about 21.3% of total DeFi TVL, and that Aave, MakerDAO, and Compound together controlled more than 72% of DeFi lending TVL in 2026.

Aave’s own documentation says flash loan fees are initialized at 0.05%, which shows how even advanced capital tools are still governed by explicit protocol parameters. Compound III’s docs also note that an example WBTC borrow collateral factor can be 85%, which is a useful reminder that each market sets its own credit rules.

Data point Source Why it matters
Aave V3 is the largest DeFi lending protocol by TVL Bank of Canada, April 2026 paper Confirms category leadership
Lending protocols represent about 21.3% of total DeFi TVL CoinLaw 2026 statistics Shows lending is a major DeFi segment
Aave, MakerDAO, and Compound controlled over 72% of DeFi lending TVL CoinLaw 2026 statistics Shows the market is concentrated
Flash loan fee initialized at 0.05% Aave docs Shows how protocol parameters affect cost
Example WBTC borrow collateral factor at 85% Compound III docs Shows how borrowing power is constrained

If you want to monitor this category over time, what TVL means in DeFi is the right companion article because TVL is the shorthand most analysts use to compare lending protocols.

Where DeFi lending fits in a wider portfolio

DeFi lending is useful when you want on-chain capital efficiency, but it is not the same as building a diversified portfolio. Lending is a credit tool. Index funds are allocation tools.

That distinction matters because the same investor can use both. A user might borrow against stable collateral for short-term liquidity and still hold a diversified on-chain index for long-term exposure. The first is active balance sheet management. The second is passive market exposure.

That is also why managed index products sit in a separate category. Managed index products are not lending protocols. They are designed for users who want diversified crypto exposure without manually selecting each asset, while lending users are usually managing collateral, debt, and liquidation thresholds.

Frequently asked questions

What is DeFi lending in simple terms?

DeFi lending is borrowing and lending on a blockchain through smart contracts. You can either supply crypto to earn interest or lock collateral to borrow against it. The protocol handles the rules automatically, without a bank employee approving the trade.

Is DeFi lending the same as staking?

No. Staking helps secure a blockchain or support protocol operations, while DeFi lending is a credit market. In lending, one user supplies capital and another user borrows it, usually against collateral.

Can you lose money in DeFi lending?

Yes. The most common loss comes from liquidation if your collateral falls too far in value. You can also face smart contract risk, oracle risk, or market volatility in the borrowed or supplied asset.

Why do protocols require overcollateralization?

Overcollateralization protects the lender and the protocol from sudden price moves. Because crypto assets can move quickly, the system usually requires more collateral than the amount borrowed so it can absorb volatility.

Which DeFi lending protocol is best for beginners?

There is no single best answer, but Aave is often the first stop because it is large and widely used. Compound can feel simpler for users who want a more conservative borrowing framework. The right choice depends on whether you value liquidity, simplicity, or a narrower risk model.

How is DeFi lending different from buying an index fund?

DeFi lending is about lending capital or borrowing against collateral. An index fund is about gaining diversified exposure to a market. If your goal is passive exposure rather than credit management, a managed index product is closer to an index fund than to a lending market.

This article is for educational purposes only and does not constitute financial or investment advice.

DeFilendingborrowingAaveCompound

Start building your crypto portfolio

Invest in diversified crypto index funds from just $1. On-chain, transparent, and redeemable at NAV.

Start investing