Skip to main content
DeFi

Lending Protocols in DeFi

Pomegra Learn

Lending Protocols in DeFi

Lending is the heart of DeFi. While cryptocurrency started as peer-to-peer electronic cash, it evolved into a complete financial ecosystem when users discovered they could lend and borrow assets, earning and paying interest without traditional banks. Lending protocols transformed DeFi from a trading domain into a genuine financial infrastructure. Understanding how they work—and why they sometimes fail—is essential for anyone interacting with DeFi.

How Lending Protocols Work

A decentralized lending protocol is fundamentally simple: savers deposit cryptocurrency, borrowers pledge collateral and withdraw loans, and smart contracts manage interest rates and enforce repayment. The process is automated and transparent.

When you deposit crypto into a protocol like Aave, you don't receive your coins back. Instead, you receive a token representing your deposit and your claim on future interest. This token—often called a "cToken" in Compound or "aToken" in Aave—increases in value as interest accrues. You can trade this token, use it as collateral for further borrowing, or redeem it for your original deposit plus earnings.

Borrowers must provide collateral before receiving a loan. If you want to borrow 1,000 US Dollar Coin (USDC), you might need to deposit 1,500 dollars' worth of Ethereum as collateral. This overcollateralization is the protocol's insurance policy. If the borrower defaults or the collateral's value drops, the protocol has a buffer to absorb losses.

The borrower pays interest on the loan. This interest accrues continuously and is eventually paid to the lenders whose deposits enabled the loan. The protocol charges a fee on this interest—typically 10%—which goes to the protocol's treasury or its governance token holders.

Interest Rates: Supply and Demand

Interest rates in DeFi are not set by a committee. Instead, they're determined algorithmically based on supply and demand. When many borrowers want loans and few lenders have supplied capital, the protocol increases interest rates to incentivize more deposits. When supply exceeds demand, rates fall.

This mechanism is captured in the concept of "utilization rate." If a protocol has 100 units of capital deposited and 80 units are borrowed, the utilization rate is 80%. The interest rate formula typically increases sharply as utilization approaches 100%. Once all available capital is lent out, the protocol cannot accept new deposits without restricting new borrows.

Why is this important? Because utilization rates reveal the ecosystem's health. High utilization means the protocol is capital-constrained and borrowers are paying premium rates. Low utilization means capital is abundant and lenders earn low returns. By monitoring utilization across protocols, experienced users can identify opportunities—high rates indicate undersupplied assets where lending might be lucrative, or that a protocol is under stress.

The mechanisms that determine interest rates vary between protocols. Some use linear formulas; others use exponential or kinked curves. The details matter because they affect yields, borrowing costs, and systemic stability.

Collateral and Liquidation

Overcollateralization is DeFi's substitute for credit checks. Because there's no way to verify a borrower's identity or income, the protocol requires borrowers to lock up more value than they're borrowing. This protects lenders, but it also limits DeFi lending's reach—if you need 5,000 dollars and must pledge 7,500 dollars as collateral, you need to already own that 7,500 dollars, which defeats the purpose of borrowing for many use cases.

Collateral comes with a risk: if the collateral's price falls, the borrower's position becomes undercollateralized. Imagine you borrow 1,000 USDC with 1,500 dollars of Ethereum as collateral, and Ethereum's price drops 40%. Your collateral is now worth 900 dollars—less than your loan. The borrower is in a loss position and has no incentive to repay.

To prevent this, lending protocols use liquidation. When collateral falls below a liquidation threshold, anyone can repay the loan on behalf of the borrower and receive the collateral at a discount (e.g., buying 900 dollars of collateral for 800 dollars by repaying the 1,000-dollar loan). This incentivizes rapid repayment or additional collateral deposit, and it ensures lenders don't lose money.

Liquidation is DeFi's most violent mechanism. During market crashes, liquidations cascade—as prices fall, collateral becomes undercollateralized, liquidators rush to capture discounts, collateral floods markets, prices fall further, and more positions become undercollateralized. Users who borrowed during bull markets sometimes awaken to find their positions liquidated without any action on their part. This is a feature (it protects lenders) and a bug (it can wipe out borrowers).

Types of Lending Protocols

Lending protocols vary in architecture and focus. The two dominant designs are:

Pooled Lending: Deposits from many users are pooled into reserves, from which borrowers can draw. Lenders have no direct counterparty relationships; they're connected to the pool, which is connected to all borrowers. Aave and Compound use this model. It's simple to understand and efficient, but it creates systemic risk—if borrowers default en masse or collateral crashes, the entire pool can be depleted.

Peer-to-Peer Lending: Lenders match with specific borrowers, negotiating terms. This model existed in DeFi's early years but is less popular today because matching is friction-heavy and illiquidity discourages lenders from lending their full position at once.

Some protocols also offer flash loans—loans that must be repaid within the same transaction. Flash loans have zero collateral requirements because they're only possible if you repay instantly. They're used for arbitrage, liquidations, and—controversially—some exploits and attacks on other protocols.

Multi-Collateral and Risk Management

Early lending protocols accepted a single collateral type. Over time, protocols expanded to accept dozens of assets—not just Ethereum and Bitcoin, but alternative tokens with lower liquidity and higher price volatility.

This creates a critical risk management challenge. If a protocol accepts a questionable token as collateral and that token crashes, the protocol can face massive losses. Aave and other advanced protocols manage this through risk frameworks: each collateral type is assigned a loan-to-value (LTV) ratio, liquidation threshold, and reserve factor. An extremely risky token might have a 20% LTV (you can only borrow 20 dollars for every 100 dollars of this token pledged), while Ethereum might have a 70% LTV.

These parameters are set by the protocol's governance—ultimately by vote of the community or a core team. Getting this right is essential but difficult. Too conservative, and the protocol fails to support novel assets and capture growth. Too liberal, and the protocol becomes a vector for loss.

Risks Inherent to Lending

Lending protocols combine several risk types. Smart contract risk: bugs in code can lead to loss of funds, as has happened repeatedly in DeFi history. Oracle risk: lending protocols rely on external price feeds to determine collateral values and trigger liquidations. If the oracle is manipulated or fails, the protocol's decisions become invalid.

Systemic risk: lending protocols are interconnected. Aave's reserves might hold Compound cTokens; Compound's collateral might include Aave aTokens. If one protocol fails, it can trigger cascades through the ecosystem. The 2023 Terra/Luna collapse demonstrated this vividly—Luna's crash liquidated positions across multiple protocols, triggering secondary failures.

Liquidity risk: when many lenders want to withdraw simultaneously and borrowers haven't repaid, lenders can be locked out of their deposits. Protocols mitigate this by maintaining reserves and liquidity mining programs that incentivize borrowing, but under extreme stress, it can become an issue.

Counterparty risk: if the protocol's administrators are corrupt or incompetent, or if governance voting is captured by a small group, funds can be misallocated. Decentralization mitigates this but doesn't eliminate it.

The Flywheel Effect

Successful lending protocols create positive feedback loops. As more users deposit, borrowers have more capital to borrow, which drives more borrowing activity, which generates higher yields for lenders, which attracts more deposits. This flywheel created the explosive growth of Compound and Aave in 2020 and beyond.

But flywheels can reverse. If yields fall due to oversupply, deposits decline, liquidity drops, borrowing costs rise, and the spiral can become negative. Some DeFi protocols that once attracted billions have become ghost towns when the incentive structure changed.

Toward Sustainable Lending

The future of DeFi lending lies in stabilizing these dynamics. Protocols are implementing risk management frameworks that automatically adjust parameters based on protocol health. Governance is becoming more sophisticated, with specialized committees overseeing risk rather than community-wide votes. Cross-protocol insurance is emerging to protect against failures. And as the ecosystem matures, unsustainable yield-farming incentives are being replaced by sustainable yields based on real economic activity.

The lending protocols described in the next sections—Aave and Compound—have led this evolution. Understanding their mechanisms, innovations, and limitations is essential for anyone lending or borrowing in DeFi.


Key Takeaways

  • Lending protocols automate finance through smart contracts: lenders deposit and earn interest, borrowers pledge collateral and borrow.
  • Interest rates are determined algorithmically based on supply and demand, creating market-driven pricing.
  • Overcollateralization and liquidation protect lenders but can wipe out borrowers during market crashes.
  • Lending protocols carry smart contract, oracle, liquidity, and systemic risks that require careful risk management.
  • The ecosystem is evolving from unsustainable yield-farming models toward more stable, economically-grounded protocols.

External References