DeFi Lending

DeFi lending lets people deposit crypto into smart-contract money markets such as Aave to earn interest, while borrowers pledge more crypto than they take out. If the collateral falls too far in value, the protocol lets anyone sell it to repay the loan.

DeFi lending is borrowing and lending run by code instead of a bank. Depositors pool their tokens in a Smart Contract, borrowers lock up Collateral worth more than their loan, and the rates move with demand. There is no loan officer and no phone call before a margin problem: once a position crosses the protocol’s line, it can be liquidated within seconds. This entry explains how money markets such as Aave (AAVE), Compound (COMP) and Morpho (MORPHO) work, how the health factor is calculated, and where the risks sit.

Category
Cryptocurrency and Blockchain
Reading time
6 min
Also called
Crypto lending, Lending protocol, Borrowing crypto
Updated

DeFi lending in plain words

Lenders deposit tokens into a shared pool and earn interest, while borrowers draw from pools that lenders fund.1 Neither side has to identify itself or pass a credit check.1

Instead of a credit score, the protocol relies on collateral. Each collateral asset has a factor that sets what share of its value can be borrowed; at 85%, for example, $100 of a token supports up to $85 of debt.2

If prices move against the borrower and the position becomes unsafe, anyone can repay part of the debt and take collateral at a discount. That is a Liquidation.3

How a DeFi loan works, step by step

  1. Supply collateral

    Deposit a token the market accepts as collateral. In Compound III, collateral raises borrowing power but earns no interest.2

  2. Check the limits

    Each collateral asset has a liquidation threshold set by governance, and a share of its value that can be borrowed.3 See Loan-to-Value Ratio.

  3. Borrow

    Take out the loan asset, often a Stablecoin. The borrow must stay inside the collateral limits.2

  4. Pay a floating rate

    Rates follow utilization: borrows divided by supply. Past a set kink they rise much faster.4

  5. Watch the health factor

    Health factor = collateral value × liquidation threshold ÷ debt. Below 1, the position can be liquidated.3

  6. Repay or top up

    Repaying debt or adding collateral lifts the health factor. Interest keeps accruing every second until you do.4

Worked examples

Example 1 — Opening a loan

Healthy

Hypothetical: you deposit $10,000 of ETH in a market with an 80% liquidation threshold and borrow $6,000 of a stablecoin.

Example 1 — Opening a loan — calculation
Collateral × threshold$10,000 × 0.80 = $8,000
Debt$6,000
Health factor$8,000 ÷ $6,000 = 1.33

A health factor above 1 means the position is safe for now; the gap above 1 is your buffer.3

Example 2 — ETH falls 30%

Liquidatable

Hypothetical: the same ETH collateral drops from $10,000 to $7,000. The debt is unchanged.

Example 2 — ETH falls 30% — calculation
Collateral × threshold$7,000 × 0.80 = $5,600
Debt$6,000
Health factor$5,600 ÷ $6,000 = 0.93

Below 1, anyone can liquidate. In Aave, a health factor of 0.95 or lower allows up to 100% of the debt to be liquidated in one go.3

Example 3 — Finding the liquidation price

Safety margin

Hypothetical: you borrow $40,000 against 1 wrapped BTC priced at $80,000 in a market with an 80% liquidation LTV.

Example 3 — Finding the liquidation price — calculation
Loan-to-value now$40,000 ÷ $80,000 = 50%
Collateral × LLTV1 × 0.80 = 0.80
Liquidation price$40,000 ÷ 0.80 = $50,000

Liquidation price = debt ÷ (collateral amount × LLTV). Accrued interest raises the debt, so this price creeps up even if BTC does not move.5

DeFi loan vs. broker margin loan

AspectDeFi lendingBroker margin
Who lendsA pool funded by depositorsThe broker
Identity checkNoneAccount opening and checks
Risk controlHealth factor and liquidationMaintenance margin and Margin Call
Who sells collateralAny liquidator, often a botThe broker
RateFloats with pool utilizationSet by the broker

Why people use DeFi lending

  • Earn on idle tokens

    Suppliers of the loan asset earn the pool’s supply rate.4

  • Borrow without selling

    Borrowing against ETH avoids selling it, which can be a taxable event.1

  • Leverage

    Borrowed stablecoins can buy more of the collateral asset, which magnifies both gains and losses.

  • Building block

    Other strategies such as Yield Farming and Flash Loan arbitrage rely on lending pools.

Advantages and disadvantages

Advantages

  • Open to anyone with a wallet, with no credit check.1
  • Rules and parameters are public and enforced by code.
  • Deposits earn interest and can be withdrawn at any time while the pool has liquidity.1
  • Rates respond instantly to supply and demand.

Disadvantages

  • Loans must be overcollateralized, so capital efficiency is low.
  • Liquidation is automatic and fast, with a bonus paid out of your collateral.5
  • Smart-contract bugs and exploits can cause losses.1 See Reentrancy and Oracle Manipulation.
  • Prices come from oracles; a bad price feed can trigger wrong liquidations. See Blockchain Oracle.

Going deeper

Read as far as you need. Each level builds on the one before it.

Collateral first, loan second

Beginner

A DeFi loan works like a pawn shop that never closes: you hand over more value than you borrow, and if your pledged item loses too much value, it is sold. The health factor is the number that tells you how close you are.

Utilization and the kink

Intermediate

Utilization is total borrows divided by total supply. Below a governance-set kink the rate rises gently; above it, a steeper slope applies to push utilization back down.4

When a pool is almost fully borrowed, lenders may not be able to withdraw until borrowers repay or new deposits arrive, which is why the steep slope exists.

Liquidation incentives and bad debt

Advanced

In Morpho, the liquidation incentive depends on the market’s LLTV: at an 86% LLTV the liquidator receives about 4.4% more collateral than the debt it repays.5

If collateral falls faster than liquidators can act, a position can end up with more debt than collateral. How that bad debt is shared among lenders depends on the protocol and vault version.5

Aave lets liquidators clear at most half of the debt while the health factor is above 0.95 and the position is not small, and all of it at 0.95 or below.3

Common mistakes

  1. Borrowing up to the limit

    A health factor just above 1 leaves no room for a normal price swing.

  2. Forgetting accrued interest

    Debt grows every second, so the health factor drifts down even if prices are flat.4

  3. Expecting collateral to earn yield

    In Compound III, supplied collateral earns no interest.2

  4. Ignoring protocol risk

    Audits do not guarantee safety; bugs, oracle failures and governance changes all matter.

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1Collateral is worth $5,000, the liquidation threshold is 80% and the debt is $3,200. What is the health factor?
Q2In Aave, when can a position be liquidated?

Key points to remember

  1. DeFi lending pools tokens from depositors and lends them to overcollateralized borrowers.
  2. Health factor = collateral value × liquidation threshold ÷ debt; below 1 means liquidation.
  3. Rates float with utilization and rise sharply above the kink.
  4. Liquidators are paid a bonus from the borrower’s collateral.
  5. Smart-contract, oracle and liquidity risk come on top of price risk.

Frequently asked questions

Why do DeFi loans need more collateral than the loan?

There is no identity or credit check, so the only protection for lenders is collateral that can be sold if the loan becomes unsafe.

Who liquidates a DeFi position?

Anyone. In practice, liquidators run bots that watch positions and compete to repay unsafe debt in exchange for discounted collateral.

Is DeFi lending the same as lending on a crypto exchange?

No. On an exchange, the company holds your coins and sets the terms. In DeFi, a smart contract holds the pool and applies public rules, but there is no company to call if something goes wrong.

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. ethereum.org. Decentralized finance (DeFi) (opens in a new tab) Checked .
  2. Compound Docs. Compound III collateral and borrowing (opens in a new tab) Checked .
  3. Aave. Liquidations (Aave Help Center) (opens in a new tab) Checked .
  4. Compound Docs. Compound III interest rates (opens in a new tab) Checked .
  5. Morpho. Liquidation (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.