DeFi Basics
What Is Decentralized Finance (DeFi)?
Learn what decentralized finance (DeFi) is, how it works, and why it matters. Understand the core concepts of DeFi including smart contracts, blockchain, and permissionless financial services.
Understand how DeFi lending protocols work, including how interest rates are set, how collateral is managed, and which protocols are most widely used for crypto-backed borrowing.
DeFi lending protocols are smart contract-based platforms that enable cryptocurrency holders to lend their assets to earn interest or borrow assets by providing collateral — all without relying on a bank or any centralized intermediary.
These protocols are among the most important building blocks of decentralized finance. They replicate the core functions of traditional banking — deposit-taking, loan origination, and interest calculation — using transparent, automated code running on a blockchain.
At their most basic, DeFi lending protocols operate through liquidity pools: shared pools of assets contributed by lenders. Borrowers draw from these pools by locking up collateral that exceeds the value of what they borrow. Smart contracts handle every aspect of the process, from accepting deposits to calculating interest to enforcing liquidations.
When you lend (also called "supplying" or "depositing") in a DeFi lending protocol:
When you borrow from a DeFi lending protocol:
One of the most distinctive features of DeFi lending is how interest rates are set. Rather than a committee or a bank setting rates, DeFi protocols use algorithmic rate models based on utilization.
The utilization rate is simply the percentage of deposited assets that are currently being borrowed:
Utilization = Total Borrowed / Total Supplied
When utilization is low (say 20%), it means there is plenty of liquidity available. Rates are low to encourage more borrowing. When utilization is high (say 90%), liquidity is scarce. Rates spike to attract more lenders and discourage excessive borrowing.
Most protocols use a kinked rate model with two distinct slopes:
This mechanism ensures that lending pools remain functional and that there is always incentive for the market to self-correct.
Collateral is the foundation of DeFi lending security. Since there are no credit checks or legal agreements in DeFi, loans are secured entirely by the crypto assets the borrower locks up.
DeFi loans are almost always over-collateralized, meaning you must deposit more value in collateral than you borrow. If a protocol has a maximum LTV of 75% for a given asset, you need at least $133 of collateral for every $100 you borrow. This buffer protects lenders against sudden price drops.
Each asset accepted as collateral has its own risk parameters:
These parameters are set based on an asset's volatility, liquidity, and overall risk profile. Highly liquid assets like ETH and BTC tend to have higher LTV ratios than smaller, more volatile tokens.
To know the current value of collateral, lending protocols rely on oracles — external services like Chainlink that provide reliable, tamper-resistant price data from multiple sources. Accurate price feeds are critical; if an oracle provides a wrong price, it could trigger unjustified liquidations or allow undercollateralized borrowing.
Aave v3 is one of the largest and most established lending protocols in DeFi. Key features include:
Morpho Blue takes a different approach with isolated, permissionless lending markets:
Compound is one of the original DeFi lending protocols and helped establish many of the patterns used across the industry. Its latest version, Compound III (Comet), focuses on a simplified model where each deployment supports borrowing a single asset.
Most DeFi lending protocols use a pool-based model. Lenders deposit into shared liquidity pools, and borrowers draw from those pools. The advantage is that lenders can deposit or withdraw at any time (subject to liquidity), and borrowers can take loans of any size up to the available liquidity. The disadvantage is that lenders earn a blended rate — they share interest from all borrowers proportionally.
Some protocols attempt to match lenders and borrowers directly. Morpho's original protocol layer sat on top of Aave and Compound, matching individual lenders with individual borrowers to give both sides a better rate. While peer-to-peer matching can be more capital efficient, it adds complexity and may not always find a match.
Lending protocols are complex software systems. Bugs in the code could allow attackers to drain funds. Established protocols mitigate this through extensive auditing, bug bounty programs, and battle-tested code, but the risk can never be fully eliminated.
If the market moves sharply against your collateral, you may be liquidated. In extreme market conditions, liquidations can cascade — falling prices trigger liquidations, which create more selling pressure, which trigger more liquidations. Maintaining a conservative LTV ratio is the best defense.
If the price oracle that a lending protocol relies on provides inaccurate data, it can lead to improper liquidations or allow undercollateralized borrowing. Top protocols use decentralized oracle networks with multiple data sources to minimize this risk.
In periods of high demand, lending pools can approach 100% utilization. When this happens, lenders may temporarily be unable to withdraw their funds until utilization decreases. The kinked interest rate model is designed to prevent this, but it can still occur during extreme market events.
With dozens of lending protocols across multiple blockchains, each offering different rates and terms, finding the best deal can be overwhelming. This is where lending aggregators add value.
Borrow by Sats Terminal is an example of a lending aggregator focused on Bitcoin-backed borrowing. It scans protocols like Aave v3 and Morpho Blue in real time, comparing interest rates, LTV ratios, and liquidation parameters so that users can find the optimal terms without manually checking each protocol.
By using an aggregator, borrowers can:
If you want to explore DeFi lending:
DeFi lending is one of the most practical and widely used applications of decentralized finance. By understanding how these protocols work, you can make informed decisions about whether and how to participate.
Common Questions
A DeFi lending protocol is a smart contract-based system that allows users to lend and borrow cryptocurrency without intermediaries. Lenders deposit assets into liquidity pools and earn interest, while borrowers provide collateral and pay interest to access funds. Interest rates are typically set algorithmically based on the supply and demand within each pool.
Related Questions
DeFi Basics
Learn what decentralized finance (DeFi) is, how it works, and why it matters. Understand the core concepts of DeFi including smart contracts, blockchain, and permissionless financial services.
Borrow by Sats Terminal
A detailed overview of every lending protocol available on Borrow by Sats Terminal, including Aave v3, Morpho Blue, and CeFi partners, with comparisons of their features and risk profiles.
Crypto Borrowing
Learn what variable interest rates mean in crypto lending, how they are calculated, what causes them to change, and how to manage borrowing costs with fluctuating rates.
Crypto Borrowing
A practical guide to comparing and choosing the best crypto lending rate — covering variable vs. fixed rates, DeFi vs. CeFi, hidden fees, and how aggregators simplify the process.