Glossary

Lending Pool

A lending pool is a smart contract where users deposit assets to earn interest while borrowers draw from the same pool against collateral.

Key Takeaways

  • A lending pool is a smart contract that aggregates deposits from multiple lenders into a single pool, allowing borrowers to draw funds against overcollateralized positions without needing a direct counterparty match.
  • Interest rates are set algorithmically by a utilization rate curve: when more of the pool is borrowed, rates rise to incentivize repayments and attract new deposits.
  • Lending pools are the backbone of DeFi lending, with protocols like Aave and Compound collectively holding billions in total value locked, but they carry risks including bad debt, oracle manipulation, and smart contract vulnerabilities.

What Is a Lending Pool?

A lending pool is a smart contract that acts as a shared reservoir of capital. Depositors supply assets to the pool and earn interest over time, while borrowers lock collateral and withdraw assets up to a maximum loan-to-value (LTV) ratio. The pool replaces the traditional bank: instead of a financial institution matching lenders with borrowers, the smart contract handles deposits, withdrawals, interest accrual, and liquidations programmatically.

The concept was pioneered by Compound in 2018 and refined by Aave, which introduced features like flash loans and variable-rate switching. Today, lending pools form the largest category of DeFi protocols by TVL and serve as a foundational building block for yield strategies, leverage trading, and composable financial products.

Unlike traditional lending, lending pools require no credit checks, identity verification, or loan approval processes. The only risk control is overcollateralization: borrowers must always post more value in collateral than they withdraw in debt. This makes lending pools permissionless and globally accessible, but it also means they cannot support undercollateralized consumer lending without additional trust layers.

How It Works

A lending pool operates through a cycle of deposits, borrows, interest accrual, and liquidations. Each step is enforced by smart contract logic rather than human intermediaries.

Supplying Assets

When a user deposits assets into a lending pool, the smart contract mints receipt tokens in return. These tokens (called aTokens in Aave or cTokens in Compound) represent the depositor's share of the pool plus accrued interest. The exchange rate between receipt tokens and the underlying asset increases over time as borrowers pay interest.

// Simplified deposit flow
function deposit(uint256 amount) external {
    // Transfer underlying asset from user to pool
    underlying.transferFrom(msg.sender, address(this), amount);

    // Mint receipt tokens at current exchange rate
    uint256 shares = amount * totalShares / totalUnderlying;
    receiptToken.mint(msg.sender, shares);

    totalUnderlying += amount;
}

Receipt tokens are transferable and composable. Depositors can use them in other DeFi protocols as collateral, trade them, or simply hold them to accumulate interest passively.

Borrowing Assets

To borrow, a user first deposits collateral into the pool. The protocol then calculates the maximum amount the user can borrow based on the collateral factor (also called maximum LTV) of each deposited asset. For example, if ETH has a collateral factor of 80%, depositing $10,000 worth of ETH allows borrowing up to $8,000 in another asset such as a stablecoin.

The protocol values collateral using price feeds from an oracle network. The borrower's position remains open as long as their health factor stays above 1.0, meaning the collateral value sufficiently exceeds the outstanding debt.

The Utilization Rate Curve

Interest rates in a lending pool are not fixed by governance votes or manual adjustment. Instead, they follow an algorithmic curve based on the pool's utilization rate: the fraction of supplied assets currently borrowed. When utilization is low, rates are low to encourage borrowing. When utilization is high, rates spike to incentivize repayments and attract new deposits.

Most protocols use a two-slope (kinked) model. Below an optimal utilization point (commonly around 80%), the rate increases gently along a first slope. Above that point, the rate rises steeply along a second slope, penalizing heavy utilization and ensuring depositors can always withdraw:

// Two-slope interest rate model (simplified)
function getBorrowRate(uint256 utilization) view returns (uint256) {
    uint256 optimalUtilization = 80e16; // 80%
    uint256 baseRate    = 2e16;  // 2%
    uint256 slope1      = 4e16;  // 4% at optimal
    uint256 slope2      = 75e16; // 75% max above optimal

    if (utilization <= optimalUtilization) {
        return baseRate + (utilization * slope1 / optimalUtilization);
    } else {
        uint256 excessUtil = utilization - optimalUtilization;
        uint256 maxExcess  = 1e18 - optimalUtilization;
        return baseRate + slope1
            + (excessUtil * slope2 / maxExcess);
    }
}

The supply rate that depositors earn is derived from the borrow rate, scaled by utilization and reduced by the reserve factor:

supplyRate = borrowRate × utilization × (1 - reserveFactor)

The reserve factor (typically 10% to 20%) is the share of interest income the protocol retains for its treasury or insurance fund.

Key Parameters

Each asset in a lending pool has its own risk parameters, set through governance and adjusted based on market conditions:

ParameterDescriptionTypical Range
Collateral factor (max LTV)Maximum borrow power at position opening50% to 85%
Liquidation thresholdLTV at which a position becomes liquidatable60% to 90%
Liquidation bonusDiscount given to liquidators as incentive5% to 15%
Reserve factorShare of interest retained by the protocol10% to 20%
Borrow capMaximum amount of an asset that can be borrowedVaries per asset

The gap between the collateral factor and the liquidation threshold acts as a safety buffer. If a user borrows at the maximum LTV, their position can absorb a small price drop before becoming eligible for liquidation.

Liquidation Mechanics

When a borrower's health factor drops below 1.0, their position is undercollateralized and open to liquidation. Third-party liquidation bots monitor the pool and repay a portion of the borrower's debt in exchange for their collateral at a discount (the liquidation bonus). This mechanism keeps the pool solvent by ensuring bad debt does not accumulate.

Use Cases

Yield on Idle Assets

The simplest use case: depositors earn passive yield on assets they would otherwise hold idle. Stablecoin deposits often attract the most borrowing demand, since traders borrow stablecoins to buy volatile assets. This makes stablecoin yield in lending pools one of the most accessible forms of DeFi income.

Leveraged Exposure

Traders deposit a volatile asset like ETH, borrow stablecoins against it, and use those stablecoins to buy more ETH. This creates leveraged long exposure without using a centralized exchange. The same pattern works in reverse for short positions. Repeated cycles of this strategy are known as recursive lending (or looping), which amplifies both gains and liquidation risk.

Capital-Efficient Collateral

Because receipt tokens are composable, they can serve as collateral in other protocols. A user can deposit USDC into Aave, receive aUSDC, and use that aUSDC as collateral elsewhere, earning interest while simultaneously putting the capital to work. This capital efficiency is a key advantage of pool-based DeFi lending.

Stablecoin Lending Markets

Lending pools are a critical piece of the stablecoin infrastructure. Protocols like Aave support deposits and borrowing across multiple stablecoins, enabling arbitrage between peg prices and providing deep liquidity for stablecoin swaps. For a deeper look at how stablecoins interact with lending protocols, see the research on stablecoin-backed lending platforms.

Pool-Based vs. Peer-to-Peer Lending

Traditional lending pools aggregate all depositors and borrowers into a shared pool, which means rates reflect average supply and demand across all participants. This model provides instant liquidity but can produce a spread: depositors often earn less than what borrowers pay, because utilization rarely reaches 100% and the reserve factor takes a cut.

Peer-to-peer lending protocols like Morpho attempt to improve efficiency by matching individual lenders directly with borrowers. When a match exists, both sides get a better rate than the pool average. When no match is available, funds fall back to a pool-based model. The tradeoff is added complexity and potentially slower matching for less liquid assets.

AspectPool-Based (Aave, Compound)Peer-to-Peer (Morpho)
Rate efficiencySpread between supply and borrow ratesTighter rates when matched
LiquidityInstant withdrawal (if utilization allows)Depends on matching availability
ComposabilityHigh: receipt tokens widely integratedGrowing, but less established
ComplexitySimpler architectureMatching engine adds overhead

Why It Matters

Lending pools are one of the foundational primitives of decentralized finance. They demonstrate that credit markets can operate without banks, credit officers, or manual underwriting: the smart contract replaces all three. The DeFi lending market has grown to tens of billions in TVL across multiple chains, and lending pools on Ethereum alone have processed trillions of dollars in cumulative borrow volume.

For the broader payments ecosystem, lending pools matter because they create on-chain yield opportunities for stablecoins, which in turn drives demand for stablecoins as the primary borrow-side asset. This dynamic connects lending pools to stablecoin issuance, treasury management, and cross-border settlement flows. As Bitcoin Layer 2 protocols like Spark expand the range of programmable assets, lending pool designs may also evolve to support Bitcoin-native and stablecoin-native collateral on new rails.

Risks and Considerations

Bad Debt and Insufficient Liquidation

If collateral prices crash faster than liquidation bots can act, the protocol accumulates bad debt: positions where debt exceeds collateral value. The Mango Markets exploit in 2022 resulted in roughly $116 million in bad debt caused by an attacker manipulating a low-liquidity token used as collateral. Protocols mitigate this risk with conservative collateral factors, borrow caps, and isolated pools for riskier assets.

Oracle Manipulation

Lending pools rely on oracles to price collateral. If an attacker manipulates the oracle feed, they can inflate the apparent value of collateral, borrow against the inflated price, and leave the pool with bad debt once the price corrects. The Solend exploit in 2022 exploited a price oracle that depended on a single low-liquidity pool, causing $1.26 million in losses. Robust oracle design, including time-weighted average prices and multiple independent sources, reduces but does not eliminate this risk. For more on oracle risks, see the oracle manipulation glossary entry.

Smart Contract Vulnerabilities

As with any smart contract system, bugs in the lending pool code can lead to loss of funds. Reentrancy attacks, logic errors in interest calculation, and flawed upgrade mechanisms have all caused significant losses in DeFi history. Protocol-level mitigations include formal verification, multiple independent audits, and bug bounty programs, but no approach eliminates risk entirely.

Liquidity Risk

If utilization approaches 100%, depositors cannot withdraw because all supplied assets are currently lent out. The steep second slope of the interest rate curve is designed to prevent this, but extreme market conditions (such as a liquidation cascade) can temporarily push utilization to levels where withdrawals are delayed.

Governance Risk

Risk parameters such as collateral factors, liquidation thresholds, and oracle configurations are controlled by governance token holders. Poor governance decisions, like listing a low-liquidity token as collateral with aggressive parameters, have directly caused protocol losses. Some protocols address this by introducing risk committees or delegating parameter management to specialized risk teams.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.