In decentralized finance, an interest rate model is a core smart contract function that algorithmically sets the borrowing rate (the cost to take a loan) and the supply rate (the yield earned by depositors). Unlike traditional finance where rates are set by central banks or institutions, these models use on-chain data—primarily a pool's utilization rate (the ratio of borrowed funds to total supplied funds)—to calculate rates in real time. This creates a self-regulating market where high demand for borrowing automatically increases rates to incentivize more supply, and vice-versa.
Interest Rate Model
What is an Interest Rate Model?
An interest rate model is a mathematical algorithm that dynamically determines the borrowing and lending rates for assets in a decentralized finance (DeFi) protocol, based on real-time supply and demand.
The most common framework is the jump rate model, popularized by protocols like Compound and Aave. This model defines rates using piecewise functions with distinct kink points. When utilization is below the kink, rates increase gradually. Once utilization surpasses this threshold, rates "jump" to a much steeper slope, creating a strong economic incentive for suppliers to deposit more assets or for borrowers to repay loans, thereby protecting the protocol's liquidity. Parameters like the base rate, multiplier, and jump multiplier are set by governance to calibrate the model's sensitivity.
These models are critical for protocol safety and efficiency. A well-designed model ensures liquidity is always available by making it expensive to borrow when funds are scarce. It also manages interest rate risk for users by providing predictable, formula-based rate changes. Furthermore, the model dictates the protocol's revenue, as the difference between the borrowing rate and the supply rate (the spread) often accrues to a treasury or to token stakers as a form of protocol-owned liquidity.
Different assets require tailored models based on their volatility and market depth. A stablecoin like USDC might use a model with a high kink (e.g., 90% utilization) to maintain cheap borrowing under normal conditions. A more volatile collateral asset might use a more conservative model with a lower kink to ensure greater liquidity buffers. Advanced models may also incorporate oracle prices or time-based factors to adjust rates for specific risk scenarios.
When interacting with lending protocols, understanding the interest rate model is essential. Users should analyze the utilization rate of a pool and the model's parameters to forecast potential yield changes or borrowing cost spikes. This algorithmic transparency is a foundational innovation of DeFi, replacing opaque intermediation with open, code-governed financial mechanics.
How an Interest Rate Model Works
An interest rate model is a mathematical function that algorithmically determines borrowing and lending rates in a decentralized finance (DeFi) protocol based on the utilization of available capital.
At its core, an interest rate model is a smart contract that dynamically adjusts rates to balance the supply of and demand for an asset within a liquidity pool. The primary variable is the utilization rate, calculated as Total Borrows / (Total Supply + Total Borrows). When utilization is low, supply rates are low to attract depositors, and borrowing rates are low to incentivize loans. As utilization increases, borrowing rates rise sharply to discourage further borrowing and encourage repayment, while supply rates increase to reward lenders for the heightened risk and reduced liquidity.
Most models, like the common kinked model or linear model, implement a multi-slope function. For example, a model may have a low, stable slope up to an optimal utilization kink (e.g., 80%). Beyond this kink, the slope becomes much steeper, causing borrowing rates to spike exponentially. This design creates economic incentives for market participants to self-regulate the pool's health, preventing it from becoming over-leveraged and illiquid. The specific parameters—base rate, slope parameters, and kink point—are governance decisions that define a protocol's risk appetite.
The model's output directly impacts user experience and protocol stability. A well-calibrated model ensures lenders earn competitive, risk-adjusted yields while maintaining sufficient liquidity for borrowers. It also protects the system; excessively low rates during high demand could lead to a liquidity crunch, where all assets are borrowed and no withdrawals are possible. Real-world implementations include Compound's Jump Rate model and Aave's stable and variable rate models, each with unique curves tailored for different asset volatilities and market behaviors.
Key Features of Interest Rate Models
Interest rate models are algorithmic functions that dynamically adjust borrowing and lending rates based on real-time supply and demand for capital within a protocol. Their core features define protocol stability, capital efficiency, and risk management.
Utilization Rate
The utilization rate is the primary input for most models, calculated as Total Borrows / Total Supply. It measures the proportion of deposited assets that are currently loaned out. Models increase the borrow rate as utilization rises to incentivize repayments and additional supply, creating a self-correcting mechanism for liquidity.
Kink & Multi-Slope Design
Many models, like the Compound v2 model, feature a kink—a specific utilization point where the rate curve's slope changes. Below the kink, rates increase gradually to encourage borrowing. Above it, rates rise sharply (a "high utilization penalty") to strongly incentivize repayments and prevent a liquidity crunch.
Base Rate & Spread
The model defines a base rate (or minimum rate) when utilization is zero. The borrow rate is typically Base Rate + (Utilization * Multiplier). The supply rate is derived from the borrow rate, minus a reserve factor (a protocol fee). This spread ensures lenders earn yield while the protocol captures revenue.
Dynamic Parameter Adjustment
Key parameters (like the kink location, slope multipliers, and base rate) are often upgradeable via governance. This allows protocols to adjust the model's aggressiveness in response to market conditions, new competitor models, or observed user behavior, making the system adaptable over time.
Stability & Oracle Integration
A core purpose is to maintain protocol solvency. High borrow rates during high utilization disincentivize new loans and encourage repayments, protecting liquidity. Some advanced models integrate price oracle data to adjust rates based on the collateral's volatility or overall market stress.
Model Examples & Evolution
- Linear/Jump Rate (Compound, Aave v2): Simple kinked model.
- Adaptive (Aave v3): Parameters adjust based on market conditions.
- Dynamic Rate (Euler, Notional v2): Uses internal oracles and volatility measures.
- Fixed Term (Yield Protocol): Creates a forward rate curve for specific maturities.
Visualizing the Interest Rate Curve
A graphical representation of how a DeFi lending protocol's borrowing and deposit rates change in response to capital utilization.
The interest rate curve is a mathematical function, typically plotted on a graph with utilization rate on the x-axis and interest rate on the y-axis, that defines the relationship between a lending pool's capital efficiency and its cost of borrowing. This curve is the core algorithm of a protocol's interest rate model, dynamically adjusting rates to balance the supply of assets (deposits) with the demand for loans. Its primary purpose is to manage liquidity risk by incentivizing behavior—higher rates attract more depositors when capital is scarce and discourage excessive borrowing when the pool is near full utilization.
Common curve types include the linear model, where rates increase steadily with utilization, and the kinked model (or jump-rate model), which features a sharp, non-linear increase in rates after a predefined optimal utilization threshold is crossed, such as 80% or 90%. More advanced models may implement piecewise functions or sigmoid curves for smoother transitions. The specific parameters—like the base rate, multiplier, and kink point—are governance-set constants that calibrate the protocol's monetary policy, determining how aggressively it reacts to changing market conditions.
Visual analysis of the curve allows users and analysts to predict protocol behavior. A steep curve after the kink indicates a protocol designed for strong liquidity protection, rapidly making loans expensive to prevent a liquidity crunch. A flatter curve suggests a more borrower-friendly environment with less volatile rates. By examining the curve, one can identify the utilization rate at which deposit yields become attractive or where borrowing may become prohibitively expensive, enabling better strategic decisions for liquidity providers and borrowers alike within protocols like Aave, Compound, and Euler Finance.
Common Types of Interest Rate Models
Interest rate models are algorithmic functions that determine borrowing and lending rates in DeFi protocols. The primary types are linear, kinked, and dynamic models, each with distinct mechanisms for managing utilization and risk.
Linear Model
A linear interest rate model applies a simple, straight-line formula where the interest rate increases directly in proportion to the utilization rate of the lending pool. It's defined by a base rate and a slope multiplier. While simple and predictable, it can lead to rapid rate spikes under high demand and may not adequately incentivize liquidity replenishment.
- Example: Rate = Base Rate + (Utilization Rate Ă— Slope)
- Key Feature: Predictable, mathematically straightforward.
- Limitation: Can be inefficient at managing extreme market volatility.
Kinked Model (Jump Rate)
A kinked interest rate model, or jump rate model, introduces a kink point (a specific utilization threshold, e.g., 80-90%). Below this point, rates increase gradually. Once utilization surpasses the kink, the slope of the rate curve increases sharply. This design strongly incentivizes liquidity providers to deposit funds and borrowers to repay loans when the pool is nearing full utilization.
- Purpose: Explicitly designed to protect protocol solvency.
- Incentive: Creates a powerful economic signal to rebalance the pool.
- Common Use: Found in early versions of major protocols like Compound.
Dynamic Model (Adaptive)
A dynamic interest rate model uses on-chain data and market signals to adjust its parameters in real-time or per block. Unlike static models, it can adapt the base rate, slope, or kink point based on factors like recent volatility, oracle prices, or time-weighted average rates. This aims to create a more responsive and efficient market.
- Adaptation: Parameters are not fixed and can be updated by governance or algorithms.
- Goal: Optimize for capital efficiency and stability automatically.
- Complexity: Requires sophisticated design and robust oracle inputs.
Utilization Rate
The utilization rate is the core input variable for most interest rate models. It's calculated as Total Borrows / Total Supply. This metric represents the proportion of deposited assets that are currently lent out. Models adjust rates primarily to influence this ratio:
- High Utilization: Increases borrowing rates to discourage new loans and encourage repayments.
- Low Utilization: Decreases borrowing rates to stimulate borrowing demand.
- Critical Role: Directly links pool liquidity risk to asset pricing.
Implementation Examples
Real-world protocols implement variations of these core models:
- Compound v2: Uses a kinked model with a governance-set kink and multiplier.
- Aave v2/v3: Employs an optimized rate model that can be seen as a dynamic model with configurable parameters for different assets.
- Yield Protocol: Uses a time-based variable rate derived from a yield space AMM, representing a fundamentally different, bond-centric approach.
These implementations show the evolution from simple, static functions to more complex, asset-specific calibrations.
Model Parameters & Calibration
Each model is defined by specific parameters that must be carefully calibrated:
- Base Rate: The minimum interest rate when utilization is zero.
- Slope 1: The rate of increase before the kink (for kinked models).
- Slope 2: The steeper rate of increase after the kink.
- Optimal Utilization: The target or kink point utilization.
Calibration involves balancing incentives for lenders (yield) and borrowers (cost) while ensuring protocol solvency under stress. Poor calibration can lead to liquidity crises or inefficient capital allocation.
Protocol Examples
Interest rate models are a core component of lending protocols, algorithmically adjusting borrowing costs based on pool utilization. Here are key implementations from major DeFi platforms.
Key Model Parameters
An interest rate model is a smart contract algorithm that programmatically determines borrowing and lending rates based on real-time supply and demand for an asset within a lending protocol.
Utilization Rate
The Utilization Rate (U) is the core input for most models, calculated as U = Total Borrows / Total Supply. It represents the proportion of deposited assets that are currently loaned out. As utilization increases, borrowing demand rises, prompting the model to increase rates to attract more lenders and cool borrowing.
Base Rate & Multiplier (Linear Model)
A simple model where the borrow rate increases linearly with utilization. The formula is typically: Borrow Rate = Base Rate + (Utilization Rate * Multiplier). The Base Rate is the minimum rate when utilization is zero. The Multiplier (or slope) determines how sharply rates rise as the pool is used.
Kink & Optimal Utilization
In a kinked model (e.g., Compound, Aave), the interest rate curve has a bend or 'kink' at a predefined Optimal Utilization Rate (e.g., 80-90%). Below the kink, rates rise slowly to encourage borrowing. Above it, rates rise sharply (with a much higher multiplier) to urgently incentivize repayments and additional supply, protecting protocol liquidity.
Reserve Factor
The Reserve Factor is a percentage of the interest paid by borrowers that is diverted to a protocol's treasury or reserve pool, rather than being distributed to lenders. It acts as a protocol fee and a risk buffer. A higher reserve factor reduces the Supply APY for lenders but provides the protocol with more capital for security and development.
Dynamic Rate Adjustment
Some advanced models incorporate time-based or volatility-sensitive parameters. For example, a model might include a speed parameter that controls how quickly rates adjust to a new target based on utilization. Others may adjust the kink or slopes based on market volatility or oracle price stability to manage risk dynamically.
Security & Risk Considerations
Interest rate models are algorithmic mechanisms that determine borrowing and lending costs in DeFi protocols. Their design directly impacts protocol solvency, user incentives, and systemic risk.
Liquidation Risk & Parameterization
The utilization rate and kink points in a model dictate when borrowing becomes prohibitively expensive. If rates rise too slowly, undercollateralized positions may persist, increasing bad debt risk. Conversely, overly aggressive rates can trigger mass liquidations during volatility, causing cascading market stress. Proper calibration of reserve factors and collateral factors is critical to manage this balance.
Oracle Dependency & Manipulation
Interest accrual and health factor calculations depend on price oracles for underlying assets. Manipulation of these oracles (e.g., via flash loan attacks) can create false utilization signals or incorrectly mark positions as undercollateralized. This can lead to unjust liquidations or allow the protocol to accumulate unsustainable debt. Robust, time-weighted average price (TWAP) oracles are a common mitigation.
Governance & Upgrade Risks
Many models have adjustable parameters controlled by protocol governance. A malicious or compromised governance vote could alter rates to destabilize the system (e.g., setting borrow rates to 0% or 10,000%). The security of the timelock mechanism and the decentralization of governance tokens are therefore integral to the model's long-term safety.
Model Insolvency (Negative Rates)
In extreme scenarios where supply vastly exceeds demand, some models can theoretically suggest negative interest rates to incentivize borrowing. If not properly bounded or handled in smart contract logic, this can lead to arithmetic underflows or unexpected protocol behavior, potentially allowing users to drain reserves.
Concentration & Whale Behavior
A large depositor (whale) can suddenly withdraw a significant portion of liquidity, causing the utilization rate to spike and borrow rates to jump. This can trap remaining borrowers with high costs and increase liquidation pressure. Models should be stress-tested for such liquidity withdrawal scenarios.
Cross-Protocol Contagion
An interest rate model failure in one major protocol (e.g., due to an exploit or misconfiguration) can trigger a liquidity crisis. Users may rapidly withdraw funds from similar protocols, causing system-wide utilization spikes and volatile rate changes. This interlinked risk highlights the importance of diverse, battle-tested model designs across the ecosystem.
Frequently Asked Questions (FAQ)
Interest rate models are algorithmic frameworks that determine borrowing and lending costs in decentralized finance (DeFi). These models are fundamental to the operation of lending protocols, automatically adjusting rates based on supply, demand, and utilization of capital.
An interest rate model is a smart contract algorithm that programmatically sets the interest rates for borrowing and supplying assets in a decentralized lending protocol. It works by calculating rates based on the real-time utilization rate of a liquidity pool, which is the ratio of borrowed assets to supplied assets. As demand for borrowing increases (higher utilization), the model increases borrowing rates to incentivize more suppliers to deposit assets and to discourage excessive borrowing, maintaining protocol solvency. Common models include linear, kinked, and jump rate models, each with different formulas for rate adjustment.
Get In Touch
today.
Our experts will offer a free quote and a 30min call to discuss your project.