Quick answer

DeFi lending lets people supply crypto to a smart contract pool to earn interest, while others borrow from that pool by locking up collateral worth more than the loan. There is no bank, loan officer or credit check. The rules for interest, collateral and liquidation are written in code and apply equally to every user.

Suppliers earn a variable supply APY paid by borrowers. Borrowers get access to liquidity without selling their assets, but they must keep their collateral above a required level. If the collateral value drops too far, part of it is sold through liquidation to repay the debt. Understanding that mechanism is the most important part of using any lending protocol.

How a DeFi lending protocol works

Most lending protocols use a pool model rather than matching individual lenders with individual borrowers. If you are new to decentralized finance, what DeFi is covers the basics.

  1. Suppliers deposit assets such as stablecoins or ETH into a pool for that asset. In return they receive a receipt token or an internal balance that grows as interest accrues.

  2. Borrowers deposit collateral into the protocol. The collateral can also earn supply interest while it sits there.

  3. Borrowers take a loan from any supported pool, up to a limit based on the value of their collateral.

  4. Interest accrues continuously, moving from borrowers to suppliers, with a portion often kept by the protocol as a reserve.

  5. Borrowers repay the loan plus interest to unlock their collateral, or the position is liquidated if it becomes unsafe.

Prices for collateral and debt come from oracles, services that feed market data to the smart contracts. The whole system depends on those prices being accurate and timely.

Why loans are overcollateralized

A DeFi protocol cannot verify who a borrower is or take legal action if a loan is not repaid. The only protection for suppliers is collateral. That is why crypto lending in DeFi is almost always based on overcollateralized loans: the borrower locks up more value than they borrow.

Two parameters define the limits for each collateral asset:

  • Loan-to-value (LTV): the maximum share of collateral value you can borrow when opening a loan. With an LTV of 75%, 1,000 dollars of collateral allows up to 750 dollars of debt.

  • Liquidation threshold: the point at which the position becomes eligible for liquidation, typically set somewhat above the LTV to give a buffer.

Many protocols summarize this in a single number, often called a health factor. Above 1, the position is safe; at or below 1, it can be liquidated. Volatile collateral usually gets lower LTVs than more stable assets.

If this structure sounds restrictive, it is. People borrow crypto in DeFi mainly to access liquidity without selling, to obtain stablecoins against long-term holdings, to take leveraged positions or to use a specific asset in another protocol, not for the same reasons people take bank loans.

How interest rates and supply APY are set

Rates in DeFi lending are not negotiated. They are calculated by an interest rate model built around utilization, the share of a pool's deposits that is currently borrowed.

  • Low utilization: plenty of idle liquidity, so borrow rates are low and supply APY is low too.

  • Rising utilization: borrow rates rise gradually, and suppliers earn more.

  • Above a target level: many models include a kink, after which rates climb steeply. This encourages repayments and new deposits so suppliers can still withdraw.

Supply APY is always lower than the borrow rate, because interest from borrowers is spread across all deposits, including the unborrowed part, and a reserve share may be taken. Some protocols add token incentives on top, which can change or end at any time. A high advertised APY is a reason to look closer, not a guarantee.

Five-step flow from an ETH coin locked as collateral to a borrowed stablecoin, a health meter and a bomb marking liquidation risk in a lending protocol

Liquidation: a worked example

Liquidation is the mechanism that keeps a lending protocol solvent. When a position crosses the liquidation threshold, external participants called liquidators can repay part of the debt and receive the same value of collateral plus a bonus. The bonus is the borrower's cost.

Hypothetical example: a user deposits ETH worth 10,000 dollars as collateral. The LTV is 75% and the liquidation threshold is 80%. The user borrows 5,000 dollars in stablecoins, a 50% loan-to-value, leaving a comfortable margin.

If ETH falls 25%, the collateral is worth 7,500 dollars and the debt is still 5,000 dollars, about 67% of collateral. The position is still safe. If ETH falls 40%, the collateral is worth 6,000 dollars and the debt ratio reaches about 83%, above the 80% threshold. A liquidator can now repay part of the stablecoin debt and take ETH at a discount. The user keeps the borrowed stablecoins but loses more collateral than the debt that was repaid.

The lesson: borrowing well below the maximum gives room for price swings. Crypto prices can move sharply, and positions can be liquidated within minutes during fast markets.

Risks of crypto lending in DeFi

  • Liquidation risk for borrowers, as shown above.

  • Smart contract risk: bugs or exploits can lead to lost funds, even in audited code.

  • Oracle risk: a wrong or manipulated price can trigger unfair liquidations or allow bad loans.

  • Liquidity risk for suppliers: at very high utilization, deposits may be temporarily impossible to withdraw until borrowers repay.

  • Collateral and stablecoin risk: if a supplied stablecoin loses its peg, both suppliers and borrowers can be affected. See why stablecoins can depeg.

  • Approval risk: interacting with fake front ends can grant malicious contracts access to your tokens. Read about token approvals before connecting a wallet.

Checklist before you supply or borrow

  1. Use the protocol's official address and check its audit history and track record.

  2. Review the LTV, liquidation threshold and liquidation bonus for your collateral asset.

  3. Borrow far enough below the limit that a sharp price drop would not liquidate you.

  4. Decide in advance how you will add collateral or repay if prices move against you.

  5. Check current utilization, which affects both your rate and your ability to withdraw.

  6. Keep enough of the network's native coin for gas to manage the position in a hurry.

For a practical walkthrough of one well-known protocol, see this Aave depositing and lending guide. If you need a specific asset on the right network before supplying it, you can exchange coins on SimpleSwap. As always, crypto is volatile; do your own research and only risk what you can afford to lose.

FAQ

Can I borrow crypto without collateral in DeFi?

Standard DeFi loans require collateral. Flash loans are an exception, but they must be borrowed and repaid within a single transaction, so they serve developers and arbitrage rather than everyday borrowing.

Is DeFi lending safe?

It carries real risks, including smart contract bugs, oracle failures and liquidations. Established protocols with long track records reduce some risks but cannot remove them.

Why does supply APY change all the time?

Rates follow pool utilization. As people borrow or repay, utilization shifts and the interest rate model recalculates both borrow rates and supply APY.

What happens if my loan is liquidated?

Part of your collateral is sold to a liquidator to repay part of your debt, and you lose an extra amount equal to the liquidation bonus. You keep whatever you borrowed.

Do I need to repay a DeFi loan by a deadline?

Most variable-rate DeFi loans have no fixed term. You can repay at any time, but interest keeps accruing and the position must stay above the liquidation threshold.