← Glossary

Trading & DeFi

What Is a DeFi Lending Protocol? Borrowing and Lending On Chain

A DeFi lending protocol is a set of smart contracts that lets users deposit crypto to earn interest and borrow other crypto by posting collateral, with rules enforced by code instead of a bank.

Key takeaways

How it works

In a DeFi lending protocol, lenders deposit tokens into a shared pool and earn interest. Borrowers take loans from the pool, paying interest. ethereum.org describes two broad varieties: peer-to-peer arrangements and pool-based systems where lenders supply funds to pools for borrowers. Pool-based designs dominate because the pool is always available and no one has to be matched with a specific counterparty.

Collateral

Because there is no credit check, borrowers must put up collateral. As ethereum.org puts it, the borrower must put up collateral that the lender will automatically receive if the loan is not repaid. Most protocols require borrowers to deposit more value than they borrow, so a fall in the collateral's price does not leave the pool short.

Interest and rates

Interest rates are set by algorithms. When a lot of the pool is borrowed, rates rise to attract more lenders and discourage borrowing, and when little is borrowed they fall. Rates change constantly, so any quoted rate is a snapshot.

Liquidation

If the value of a borrower's collateral falls too close to the value of the loan, the protocol allows others to repay part of the loan and take the collateral at a discount. This keeps the pool solvent but means borrowers can lose collateral quickly in a sharp price drop. The protocol depends on price oracles to decide when this happens.

Risks

Bugs and exploits, bad price data, extreme market moves and the failure of the assets involved are all risks, and ethereum.org notes that Ethereum products can suffer bugs and exploits. If you lend, you depend on the protocol's code. If you borrow, you can be liquidated. Understand the terms and use only amounts you can afford to lose.

Example

You deposit 1,000 dollars of one token as collateral and borrow 500 dollars of a stablecoin. If the collateral's price falls enough that the loan is too large relative to it, liquidators repay part of your loan and take collateral at a discount.

Put it into practice

Read the terms before you lend or borrow

Scrypt Wallet's Earn section lists lending and staking options from several providers. Read each one's terms, rates and risks before you commit.

Create a free wallet Get Scrypt for Android

Sources and verification

Last reviewed 2026-10-02 by the Scrypt Wallet team. The factual claims on this page, and where each comes from:

  1. DeFi lending has peer-to-peer and pool-based varieties, in which lenders supply funds to pools for borrowers. [1]
  2. The borrower must put up collateral that the lender will automatically receive if the loan is not repaid. [1]
  3. Ethereum products, like any software, can suffer from bugs and exploits. [1]
  4. Collateral is an asset a borrower pledges to secure a loan. [2]

Sources

  1. Decentralized finance (DeFi) · ethereum.org · secondary source
  2. Collateral (finance) · Wikipedia · secondary source
  3. Oracles · ethereum.org · secondary source

Primary sources are protocol papers, specifications, source code or a project's own documentation; secondary sources are wikis and explainers. We checked each claim against the source text on the review date. Found an error? Tell us and we will correct it.

Frequently asked questions

Do I need a credit check to borrow?

No. You post collateral instead.

Why must I deposit more than I borrow?

To protect the pool if the collateral's price falls before you repay.

Can I lose my collateral?

Yes, through liquidation if its value drops too far, or through a smart-contract failure.

Related terms

Go deeper

Written by the Scrypt Wallet team · Updated 2026-10-02. General education, not financial, tax or legal advice.