Crypto · 2026-08-23 · 8 min read · By StockPilot
DeFi Lending and Borrowing Protocols: How Collateral, Rates, and Liquidation Work
How DeFi lending protocols set interest rates, require collateral, and trigger liquidations, and how to manage the risks before you deposit.
DeFi lending protocols let you deposit crypto to earn interest, or post crypto as collateral to borrow another asset, all through smart contracts without a bank or credit check in the middle, matching lenders and borrowers directly through code that runs the same way for every participant regardless of size or history.
Platforms built this way manage billions of dollars in deposits, but the mechanics differ sharply from traditional lending, and the risks are different too. Understanding how rates, collateral, and liquidation work is essential before depositing real capital into a system with no customer service line to call if something goes wrong.
How Interest Rates Are Set
Most DeFi lending markets use an algorithmic interest rate model driven by utilization, the share of deposited assets currently borrowed out. As utilization rises, both the borrow rate and the supply rate paid to lenders increase, adjusting automatically without any committee meeting or manual rate-setting decision involved.
This creates a self-correcting mechanism: high utilization pushes borrow rates up, which discourages new borrowing and encourages repayment, pulling utilization back toward a target level the protocol is designed around, all happening continuously as market conditions shift throughout each trading day and even overnight.
Unlike a fixed savings account rate, DeFi lending rates can swing significantly within days as market conditions and borrowing demand shift, so the yield you see advertised today is not guaranteed tomorrow, and chasing the highest posted rate without checking its recent stability is a common mistake new depositors make.
The takeaway: check a rate's recent history, not just its current value, since a rate that looks attractive today can shift sharply once utilization or market demand changes.
Collateralization and Loan-to-Value Ratios
Nearly all DeFi loans are overcollateralized, meaning you must post more value in collateral than you borrow. A loan-to-value ratio of seventy percent means you can borrow up to seventy dollars of value for every hundred dollars of collateral posted, leaving a cushion the protocol relies on to stay solvent if prices move against you.
Different assets carry different maximum loan-to-value ratios based on their volatility. Stablecoins typically allow higher borrowing power than volatile tokens, since their price is far less likely to move sharply against the position, while a highly volatile token might only support a conservative fraction of its market value.
The gap between your loan-to-value ratio and the protocol's liquidation threshold is your safety margin. A narrow gap means a small price move against your collateral can trigger forced liquidation, so understanding exactly where that threshold sits before borrowing matters far more than focusing only on the interest rate you will pay.
The takeaway: your safety margin, not the headline interest rate, is the number that actually determines how much risk a DeFi loan is exposing you to at any given moment.
How Liquidation Actually Works
When collateral value falls, or borrowed asset value rises, enough that the position crosses the liquidation threshold, the protocol allows anyone to repay part of the debt in exchange for a discounted chunk of the collateral, transferring the risk from the protocol onto whichever liquidator acts first to claim that discount.
This liquidation discount, often five to fifteen percent, is the incentive that keeps a network of bots and liquidators watching positions and executing liquidations within seconds of a threshold breach, which is why manually reacting to a margin call in DeFi is rarely fast enough once the threshold has actually been crossed.
The takeaway: liquidation in DeFi happens through code and incentives, not human discretion, so the only real defense is staying well clear of the threshold in advance.
Key liquidation mechanics worth understanding before you ever borrow against collateral:
- Liquidation threshold sits above your maximum loan-to-value ratio, giving a buffer.
- Partial liquidations repay only enough debt to restore a safe ratio.
- Liquidation penalties are paid from your collateral, reducing what you keep back.
- Gas costs and network congestion can delay your own repayment attempts.
Smart Contract and Protocol Risk
Every DeFi lending protocol runs on smart contract code that can contain bugs. Even well-audited protocols have suffered exploits that drained deposited funds, so audits reduce risk without eliminating it entirely, and no amount of due diligence can fully rule out a vulnerability that simply has not been discovered yet.
Oracle risk is a related concern: protocols rely on price feeds to determine when a position should be liquidated, and a manipulated or delayed oracle price can trigger incorrect liquidations or let undercollateralized positions persist longer than they should, exposing both borrowers and the protocol itself to unnecessary loss.
Governance risk matters too. Many protocols let token holders vote to change collateral parameters, interest rate models, or supported assets, and a poorly considered governance change can shift the risk profile of a position you already hold without you taking any new action yourself, simply because the underlying rules changed.
Cross-protocol contagion is a newer risk worth watching. As lending markets increasingly accept other protocols' tokens as collateral, an exploit or de-pegging event in one protocol can ripple into positions on an entirely separate platform, which means your risk is not always fully contained within the single protocol you deposited into.
The takeaway: audits and track record reduce smart contract and oracle risk, but no protocol removes it entirely, so position sizing should reflect that irreducible risk.
Depositing to Earn Yield: The Lender's Side
Lenders earn the supply-side interest rate plus, on many platforms, additional token incentives paid to attract deposits, which can temporarily push advertised yields well above the underlying borrow-driven rate, especially during a new protocol's early months when incentive budgets are largest relative to total deposits.
Depositors should separate the base interest rate from incentive rewards when evaluating a yield, since incentive programs are typically time-limited and the token rewards themselves carry their own price risk, meaning a headline yield can look far less attractive once the reward token's price has fallen over the following months.
Stablecoin lending markets are generally lower risk than volatile asset markets for lenders, since the deposited asset itself is not exposed to the price swings that drive liquidation cascades, though stablecoin lending still carries smart contract and de-pegging risk that should not be dismissed just because the price looks stable.
The takeaway: separate the yield you are actually earning from the incentive rewards stacked on top of it, since only the base rate is likely to persist once incentives end.
Comparing DeFi Lending to Traditional Credit
Traditional bank lending relies on credit history and legal recourse; DeFi lending relies entirely on collateral and code, which means there is no credit check but also no flexibility if your collateral value drops faster than you can react, since the smart contract enforces its rules exactly as written with no case-by-case exceptions.
This trade-off means DeFi lending suits investors who already hold crypto and want to borrow against it without selling, more than it suits someone looking for unsecured personal credit, since every DeFi loan requires collateral worth more than the amount actually being borrowed against it.
The transparency cuts both ways: every position, every interest rate change, and every liquidation is visible on-chain, which is harder to game than opaque traditional credit terms but also means your borrowing activity is fully public to anyone willing to look up the wallet address associated with your position.
Recovery options differ sharply as well. A traditional lender can restructure a struggling loan through negotiation, while a DeFi position simply gets liquidated mechanically once it crosses its threshold, with no case worker available to grant an extension or work out a modified repayment plan on your behalf.
The takeaway: DeFi lending trades the flexibility of a human lender for speed, transparency, and access without a credit check, and that trade only suits certain uses.
Managing Risk Before You Borrow
Keep your loan-to-value ratio well below the maximum the protocol allows, treating the maximum as a ceiling for emergencies rather than a target to operate near day to day, since operating close to the ceiling leaves almost no room for a normal, ordinary price swing before liquidation risk becomes real.
Monitor your position regularly, especially during periods of high volatility, and consider setting alerts so a sudden price move does not turn into a liquidation you could have prevented by adding collateral or repaying debt well before the threshold was ever actually reached.
The takeaway across all of this: DeFi lending offers real yield and real borrowing power, but the overcollateralized, code-driven model shifts risk management entirely onto the user, with no human on the other side to negotiate with once liquidation starts, which is exactly why discipline matters more here than in traditional credit.
Choosing a DeFi Lending Protocol
Total value locked is a starting filter, not a guarantee of safety. A protocol with large deposits has generally survived longer and attracted more scrutiny from auditors and researchers, but size alone does not rule out an undiscovered vulnerability, so it should be treated as one signal among several rather than a verdict.
Check how long the protocol has operated without a major exploit, how many independent audits it has undergone, and whether it maintains a bug bounty program that rewards researchers for responsibly disclosing vulnerabilities before they can be exploited against real user funds sitting in the protocol.
The takeaway: due diligence on the protocol itself matters as much as due diligence on your own position, since a well-managed loan is still exposed to the code underneath it.
A short checklist before depositing into any lending protocol:
- Track record: years live, prior exploits, and how any past incident was handled.
- Audit history: number and recency of independent smart contract audits.
- Collateral assets: whether supported assets are liquid and reliably priced.
- Oracle design: which price feeds the protocol relies on for liquidations.
- Crypto
- DeFi
- Risk Management