DeFi Lending Explained: How Crypto Loans Work Without a Bank

A DeFi loan is a loan with no bank, no credit check, and no person deciding whether you qualify.

On this page
  1. The short answer
  2. Why a loan needs no bank: the one problem collateral solves
  3. The four steps: supply, borrow, accrue, repay
  4. LTV, liquidation threshold, and the health factor
  5. What liquidation actually looks like
  6. Where the interest rate comes from
  7. Flash loans: borrowing without collateral, for one transaction
  8. The risks, in order of how often they actually bite
  9. Before you touch a lending protocol: a checklist
  10. Sources and update time

The short answer

A DeFi loan is a loan with no bank, no credit check, and no person deciding whether you qualify. Instead, a smart contract holds your collateral, a price oracle tells it what that collateral is worth, and a formula decides how much you can borrow and when your position gets sold. Because the protocol cannot check who you are and cannot take you to court, every loan must be backed by collateral worth more than the loan — these are overcollateralised loans. You deposit, say, ether worth $20,000, and the protocol lets you borrow up to roughly 80% of that value in a different asset, usually a stablecoin. If the collateral’s value falls too far, anyone can liquidate your position: repay part of your debt and take your collateral at a discount. The interest rate is not set by a loan officer; it rises and falls with how much of the pool is lent out. The whole system is public code, it runs 24 hours a day, and it has no customer service desk. That is both the appeal and the risk, and this guide works through both.

Why a loan needs no bank: the one problem collateral solves

A bank lends against things it can verify: your income, your credit history, and its ability to sue you if you do not pay. A lending protocol on a blockchain knows nothing about its borrowers — they are anonymous addresses — and it cannot sue anybody. It lends anyway, to anyone, by holding collateral worth more than the loan and selling it automatically when its value falls too far.

That single design choice explains the shape of everything that follows. The protocol does not need to know whether you are trustworthy, because it never relies on your promise. It holds your assets in its own contract from the start. If you repay, you get them back. If you do not, and the value falls below a threshold, the contract lets a third party repay your debt and take the collateral. The lender’s protection is arithmetic, not law.

It also explains the obvious question: why borrow at all, if you must deposit more than you receive? Because the collateral and the loan are different tokens. You can deposit ether you believe will rise in price, borrow stablecoins against it, and spend the stablecoins without selling the ether — and without triggering a taxable sale in jurisdictions where selling counts as a disposal. Or you can borrow an asset you expect to fall in price, sell it, and buy it back cheaper later — a short position. Or you can borrow to add leverage to a position you already hold. None of these is a recommendation; they are the reasons people use the tool, and each of them carries the liquidation risk explained below.

The four steps: supply, borrow, accrue, repay

Every DeFi loan follows the same four steps, whether the protocol is Aave or Compound.

1. Suppliers deposit into a pool. A supplier deposits a token — say a stablecoin such as USDC — into that token’s pool and earns interest. In return they receive a receipt token: an aToken on Aave, a cToken on Compound. The receipt is itself an ERC-20 token representing the supplier’s share of the pool plus all interest accrued since deposit. On Aave the aToken balance grows over time; on Compound the cToken’s exchange rate against the underlying grows. Either way, the supplier can redeem the receipt for the underlying asset plus interest at any time, as long as the pool has unlent funds available.

2. A borrower deposits collateral. The borrower locks a different asset — say ether — into the protocol as collateral. The collateral earns nothing on some protocols (Compound V3’s supplied collateral earns no interest) and is simply held.

3. The borrower takes a loan. The borrower takes tokens out of the pool, up to a set share of the collateral’s value. That share is the maximum loan-to-value ratio (LTV). Interest starts accruing immediately, block by block, and there is no term and no repayment schedule. The borrower can repay at any time and take the collateral back.

4. Interest accrues and the debt grows. The protocol does not update every borrower’s balance one by one — the gas cost would grow with the number of users. Instead it keeps one shared number per asset, a borrow index that grows with the interest rate, and each position stores its debt together with the index value at its last update. Current debt is the stored debt multiplied by the growth of the index since then. The effect is the same as compounding interest, computed cheaply.

Aave V3 is the version most people use today. It was first deployed in March 2022 across six networks including Polygon, Avalanche, Arbitrum, and Optimism, and deployed on Ethereum mainnet on 27 January 2023 after a unanimous governance vote. Aave V4, a redesign built around liquidity hubs and spokes, went live on Ethereum mainnet on 30 March 2026. Compound V2, the other canonical design, dates to 2019 and remains the most-forked lending protocol ever shipped. The numbers in this guide come from Aave V3’s Ethereum market unless stated otherwise; Compound’s figures are given where the two designs differ.

LTV, liquidation threshold, and the health factor

Three numbers govern every loan, and confusing them is the most common beginner mistake. They are set per asset by the protocol’s governance, and they change over time — always check the live parameters before using a protocol.

Loan-to-value (LTV) is the maximum you can borrow when you open the position. On Aave V3’s Ethereum market, WETH has an LTV of about 81%: deposit $20,000 of WETH and you can borrow up to about $16,200. Other assets have lower LTVs; riskier tokens get lower limits, and some assets have an LTV of zero, meaning they can be supplied but not borrowed against.

The liquidation threshold is the point at which the position stops being safe. It is set above the LTV, so a position does not become liquidatable the moment it is opened. For WETH on Aave V3 Ethereum the threshold is about 84%. The gap between 81% and 84% is your buffer — the collateral can fall a little before anything happens.

The health factor combines everything into one number. Aave defines it as total collateral value multiplied by the weighted liquidation threshold, divided by total borrow value. Above 1 the position is safe; below 1 anyone can liquidate it. With several collateral assets, the threshold is their value-weighted average.

Here is the arithmetic with round, labelled example numbers (not live market quotes). A borrower deposits 10 ETH when ether is $2,000, so the collateral is worth $20,000, and borrows $10,000 of USDC. The loan-to-value ratio is 50%. With an 80% liquidation threshold:

health factor = 20,000 × 0.80 ÷ 10,000 = 1.60

The position is liquidated when the health factor hits 1.0, which happens when the collateral value falls to $12,500 — that is, when ether falls to $1,250, a drop of 37.5% from $2,000. A useful shortcut: the fall that liquidates a loan is 1 − (LTV ÷ threshold). Here that is 1 − (0.50 ÷ 0.80) = 0.375. Borrow less and the liquidation price moves further away; borrow near the maximum and a small dip liquidates you. That is the whole risk decision in one formula, and it is worth doing on paper before opening any position.

What liquidation actually looks like

When a health factor drops below 1, the protocol does not sell the collateral itself. Instead, anyone — usually a bot — can repay part of the debt and claim the collateral at a discount. That discount is the liquidation bonus: for WETH on Aave V3 Ethereum it is 5%. In Compound V2 the documented example uses a liquidation incentive of 1.08, meaning the liquidator receives collateral worth 108% of the debt repaid, with 2.8% of that going to protocol reserves and the rest to the liquidator.

Aave also limits how much can be liquidated at once. In the versions studied in the academic literature, a liquidator could repay at most 50% of the debt in one transaction — the close factor — and later versions allow larger liquidations when a position is far below a health factor of 1. The point of the bonus is speed: the protocol pays liquidators to act quickly, before a falling market leaves the collateral worth less than the debt.

When liquidation works, the borrower loses the bonus plus the collateral sold, and the protocol stays solvent. When it fails — because the collateral is illiquid, the price feed is wrong, or the market moves faster than liquidators can act — the protocol is left with bad debt: debt that will never be repaid. That is not a theoretical risk. In November 2022, a trader borrowed about 92 million CRV tokens (worth roughly $38–60 million) on Aave using USDC as collateral, in an attempt to short CRV. After wild price swings, the position was liquidated on 22 November, but the CRV market was too illiquid to close the position cleanly — it took 385 individual mini-liquidations over about 50 minutes — and Aave was left with roughly $1.6–1.8 million of bad debt. Aave froze lending markets for 17 low-liquidity tokens a week later and later cleared the bad debt. The lesson is not that Aave failed — the protocol kept working and the loss was small relative to its size — but that liquidation is a market mechanism, not a guarantee. It depends on someone being willing and able to buy the collateral at the moment it matters most.

Where the interest rate comes from

The interest rate on a DeFi loan is set by a formula, not by a person. It rises with the pool’s utilisation — the share of deposits currently lent out. The logic is simple: when most of a pool is lent out, suppliers should be paid more (to attract deposits) and borrowers should pay more (to discourage borrowing), so that some liquidity remains for suppliers who want to withdraw. The curve is steeper above an optimal utilisation point, so rates climb sharply when a pool is nearly empty. Aave’s documentation puts it plainly: the higher the utilisation of a reserve, the higher the yield for suppliers.

This creates a constraint beginners often miss. A supplier can redeem their receipt tokens at any time — but only if the pool has unlent funds. If borrowers have taken out 95% of a pool’s assets, a supplier who wants to withdraw 10% of the pool cannot, until some borrowers repay or new supply arrives. That is not a bug; it is the central piece of the interest rate model, and it is why rates spike in a crisis: the protocol is trying to pull liquidity back.

Two more features matter. First, Aave V3’s borrow rate is variable; the old stable-rate option was removed in Aave V3.2 on 8 October 2024, so your rate moves with the market, and it can move fast. Second, Compound’s model is similar in shape — a piecewise linear rate against utilisation — but the two protocols set parameters differently, so the same asset can carry different rates on each. Neither rate is a promise; both are outputs of a formula that changes every block.

Aave V3 adds three risk features worth knowing by name. Isolation Mode lets the protocol list a riskier asset as collateral while capping how much can be borrowed against it, so a failure stays contained. Supply and borrow caps limit how much of any asset can enter a market. E-Mode (High Efficiency Mode) allows higher LTVs — up to about 97% — when collateral and loan are closely correlated, such as two stablecoins. Powerful and dangerous in equal measure: the higher the LTV, the smaller the move that liquidates you.

Flash loans: borrowing without collateral, for one transaction

There is one exception to the collateral rule, and it is the strangest idea in DeFi. A flash loan lets you borrow an asset with no collateral at all, as long as the borrowed amount plus a fee is returned before the end of the same transaction. Aave V3 charges a 0.05% fee on flash loans at deployment, adjustable by governance.

It works because a blockchain transaction is atomic: it either completes in full or fails completely, with nothing in between. Aave’s contract hands your contract the funds, lets your code run, and then checks whether it got the money back plus the fee. If the check fails, the transaction reverts and every step inside it is undone — as if the loan never happened. The protocol does not need collateral because repayment is not a promise you keep later; it is a condition enforced by code before the transaction can finalise.

Flash loans are a developer tool, not something you tap through an app. Legitimate uses include arbitrage between exchanges, liquidating a position without holding the debt first, and swapping collateral on the fly. They also have a darker reputation: borrowed capital has been used to manipulate price feeds and governance votes in attacks on other protocols. The first famous case was bZx in February 2020, when a $55,000 flash loan was used in an attack on the protocol; Euler Finance lost about $196 million in 2023 in an attack that used the same playbook. The flash loan itself is neutral — it is a tool for moving capital inside one transaction. What matters is what the borrower does with it, and whether the protocol on the other end trusts a price that can be moved inside a single block.

The risks, in order of how often they actually bite

1. Liquidation. The most common loss. Borrowers borrow near the maximum LTV, the market dips, and the position is liquidated with a penalty on top of the loss. The defence is boring and effective: borrow far below the maximum, watch the health factor, and add collateral or repay debt before the price reaches your liquidation level.

2. Oracle failure. The protocol has to know what the collateral is worth, and a blockchain cannot look up a price by itself. Lending protocols use price oracles, usually Chainlink feeds. If an oracle reports a stale or manipulated price, liquidations trigger wrongly — or fail to trigger at all. Thinly traded collateral is the danger here: its price is easier to move, which is why Aave froze 17 low-liquidity markets after the CRV incident.

3. Smart contract bugs. The protocol is code, and code has bugs. Aave V3’s code was audited by firms including OpenZeppelin and PeckShield, and Compound’s by its own auditors, but an audit is a review, not a guarantee — our guide to reading audit reports explains what one does and does not prove. Governance can also change parameters: LTVs, thresholds, and fees are set by token holders, and a governance vote can alter the terms of your loan.

4. Liquidity freezes. In a crisis, suppliers may be unable to withdraw because the pool is fully lent out, and borrowers may be unable to repay in the asset they need because it is not available. Rates spike, and the exit narrows exactly when everyone wants it.

5. Bad debt and governance backstops. When liquidations fail, the shortfall sits with the protocol. Aave’s Safety Module — staked AAVE that can cover shortfalls — exists for this reason, and governance can vote to use treasury funds to make a market whole, as it did after the CRV incident. These backstops are real but discretionary: they depend on a vote, not on a contractual promise to you.

6. Scams around the edges. Fake front-ends, phishing sites that mimic Aave or Compound, and tokens that impersonate aTokens are the most common way beginners lose money in lending — not the protocols themselves. Our crypto scams guide covers the warning signs, and the rule is the same as everywhere in crypto: only use links from the project’s official documentation, and never sign a transaction you do not understand.

Before you touch a lending protocol: a checklist

This is general educational information, not financial advice, and it is not a recommendation to lend or borrow. If you decide to learn by doing, work through this list first.

  1. Do the liquidation maths on paper. Write down your collateral, your LTV, your threshold, and your liquidation price. If you cannot state the price at which you get liquidated, do not open the position.
  2. Borrow well below the maximum. A health factor of 1.6 survives a 37.5% fall in the example above; a health factor of 1.05 does not survive a bad afternoon.
  3. Check the live parameters. LTV, liquidation threshold, bonus, and caps are set by governance and change. Read them on the protocol’s own app or documentation, not from a blog post — including this one.
  4. Use liquid collateral. The more thinly traded the collateral, the more likely liquidation fails when you need it most.
  5. Understand what your receipt token is. Your aTokens or cTokens are the claim on your deposit, held in your wallet. If you send them somewhere, you have sent the deposit.
  6. Keep an exit in mind. Know how you would repay or add collateral if the price falls 30% overnight, and whether you could do it at 3 a.m. on a weekend. The protocol never sleeps, and neither does liquidation.

DeFi lending is a genuine innovation: it is the first lending system that works without knowing who the borrower is, and it has run continuously since 2018 with only small losses relative to its size. It is also a system where the safety net is a formula, and formulas do not make exceptions. Understand the formula before you trust it with your money.

Sources and verification

Sources and update time

Sources checked 2026-11-24. This guide is general educational information, not investment advice.

Last updated: 2026-11-24. LTVs, liquidation thresholds, interest rates, and token prices change constantly and are set by governance — re-check the protocol’s own app or documentation before relying on any figure quoted here. The worked examples use labelled example numbers, not live market quotes.

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *