Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Interest Rate Model

An Interest Rate Model is a smart contract algorithm that dynamically adjusts borrowing and lending rates based on the utilization rate of a money market.
Chainscore © 2026
definition
DEFINITION

What is an Interest Rate Model?

A mathematical function that algorithmically determines the cost of borrowing and the reward for supplying assets in a decentralized finance (DeFi) lending protocol.

An interest rate model is a core smart contract component that dynamically calculates borrow rates and supply rates based on real-time market conditions, primarily the utilization rate of the lending pool. This model replaces the centralized rate-setting of traditional finance with a transparent, on-chain algorithm. Its primary functions are to manage liquidity risk by incentivizing behavior—increasing borrow rates when capital is scarce to attract more suppliers, and decreasing them when capital is abundant to encourage borrowing.

Most models, like the common kinked rate model or linear model, define a piecewise function with distinct slopes. Typically, they feature a low, stable rate up to an optimal utilization rate (e.g., 80-90%), after which the borrow rate increases sharply. This "kink" acts as a safety mechanism, aggressively discouraging further borrowing when the pool is nearly depleted to protect lenders from illiquidity. The supply rate is then derived from the borrow rate, accounting for a reserve factor withheld by the protocol.

The parameters of these models—such as the base rate, slope parameters, and optimal utilization—are usually set by protocol governance. For example, Compound's and Aave's models adjust rates to balance supply and demand algorithmically. This design ensures interest rate parity, where rates across different protocols for the same asset tend to converge through arbitrage, creating a more efficient and stable DeFi money market.

how-it-works
MECHANISM

How an Interest Rate Model Works

An interest rate model is a deterministic algorithm that programmatically sets borrowing and lending rates in a decentralized finance (DeFi) protocol based on the utilization of its liquidity pool.

At its core, an interest rate model is a smart contract function that takes the utilization rate—the ratio of borrowed funds to total supplied funds—as its primary input. This rate dynamically adjusts to balance the supply and demand for capital within the protocol. When utilization is low, indicating excess liquidity, rates are kept low to incentivize borrowing. As utilization increases and approaches a target optimal point, the model algorithmically increases borrowing rates to attract more lenders and cool excessive borrowing demand, maintaining the pool's solvency.

Most models, like the common kinked model or linear model, implement a piecewise function with distinct slopes. For example, a model may have a gentle slope up to an 80% optimal utilization rate to encourage efficient capital use, followed by a much steeper, punitive slope beyond that threshold. This "kink" acts as a safety mechanism, sharply increasing borrowing costs to protect the protocol from a liquidity crunch where not enough funds are available for withdrawals. The specific parameters—base rate, slope parameters, and kink point—are governance-set constants that define the model's behavior.

The model's output directly determines two key rates: the borrow rate paid by users taking loans and the supply rate (or deposit rate) earned by liquidity providers. The supply rate is derived from the borrow rate, factoring in a reserve factor—a percentage of interest set aside for the protocol's treasury or as a safety reserve. This creates a direct economic link: higher borrowing demand increases yields for lenders, attracting more capital to the pool, which in turn helps stabilize rates through the model's feedback loop.

These algorithmic models enable permissionless and transparent rate setting, a fundamental departure from traditional finance. Unlike a central bank or institution, the code defines the policy. Prominent examples include the Compound v2 interest rate model and Aave's stable and variable rate models. Their parameters are often adjustable via decentralized governance, allowing the community to recalibrate the economic incentives in response to market conditions or to adopt new model designs for improved efficiency and risk management.

key-features
MECHANICAL COMPONENTS

Key Features of Interest Rate Models

Interest rate models are algorithmic functions that dynamically adjust borrowing and lending rates based on real-time market conditions, primarily the utilization rate of a liquidity pool.

01

Utilization Rate

The utilization rate is the core input for most models, calculated as Total Borrows / Total Liquidity. It represents the percentage of supplied funds that are currently being borrowed. As utilization increases, the model typically increases borrowing rates to incentivize repayment and attract more lenders, creating a self-regulating market.

02

Kink & Multi-Slope Design

Many models, like Compound's Jump Rate model, feature a kink—a specific utilization point where the interest rate curve changes slope. Below the kink, rates increase gradually. Above it, rates rise sharply (the 'jump') to strongly disincentivize further borrowing and protect the protocol's solvency by rapidly attracting new liquidity.

03

Reserve Factor

The reserve factor is a percentage of the interest paid by borrowers that is diverted to a protocol's reserve or treasury instead of being distributed to lenders. This acts as a protocol fee and a risk management buffer, providing capital that can be used to cover shortfalls from bad debt or fund development.

04

Dynamic Rate Ceilings

To prevent rates from becoming prohibitively high or spiraling out of control, models often implement rate ceilings. These are maximum bounds on the borrow or supply APY. For example, Aave V3 uses a variable borrow cap per asset and a supply cap to manage risk exposure and ensure rate stability under extreme market stress.

05

Oracle-Integrated Models

Advanced models incorporate external price data from oracles to adjust rates based on collateral value. If the value of borrowed assets approaches the value of a user's collateral (high Loan-to-Value ratio), the model can automatically increase that user's borrow rate, creating a stronger incentive to repay or add collateral and reducing liquidation risk for the protocol.

06

Stable vs. Variable Rates

Protocols often offer two rate structures:

  • Variable Rate: Fluctuates dynamically with the pool's utilization.
  • Stable Rate: Offers short-term predictability, often pegged to external benchmarks like the Secured Overnight Financing Rate (SOFR). These are typically achieved through rate swap mechanisms within the protocol and may revert to variable rates under certain conditions.
visual-explainer
INTEREST RATE MODEL

Visualizing the Model

An exploration of how interest rate models are graphically represented to illustrate the dynamic relationship between a protocol's utilization rate and its borrowing and lending rates.

An interest rate model is visualized as a graph plotting the utilization rate (U) of a liquidity pool against the resultant borrowing interest rate and supply interest rate. The utilization rate, calculated as total borrows divided by total liquidity, is the primary independent variable on the x-axis. The y-axis represents the annual percentage yield (APY) for both borrowers and lenders. This visualization makes the model's core logic—how rates adjust to supply and demand—immediately intuitive, showing a clear, often kinked or curved line that dictates protocol economics.

The most common visual pattern is a two-slope model or kinked curve. Below an optimal target utilization (e.g., 80%), the borrowing rate increases gradually with utilization. Once this threshold is crossed, the slope steepens dramatically, creating a "kink" in the graph. This design incentivizes borrowers to stay below the target and lenders to supply more capital when utilization is high, as the sharply rising borrow rate translates to a higher supply rate for lenders. Visualizing this kink is crucial for understanding a protocol's built-in stability mechanisms and emergency rate adjustments.

Beyond simple kinked curves, visualizations can represent more complex models like jump-rate models or those with dynamic rate caps. Advanced charts may include separate lines for variable and stable borrowing rates, or overlay historical rate data against the theoretical model curve. For developers, these visualizations are essential for parameter tuning—adjusting the slope coefficients, kink point, and base rate to optimize for capital efficiency and protocol safety. Analysts use these charts to compare models across protocols like Aave, Compound, and Euler at a glance.

Effective visualization also incorporates the direct mathematical relationship between the borrow rate and the supply rate. The supply rate curve is derived from the borrow rate curve, scaled by the utilization rate: supply_rate = borrow_rate * utilization_rate * (1 - reserve_factor). A well-designed chart shows both curves, demonstrating that lender yield is a function of both borrower demand (utilization) and protocol fees (the reserve factor). This highlights the economic alignment and the inherent risk for liquidity providers when utilization is volatile.

In practice, these models are not static. Dynamic interest rate models, which adjust parameters based on market conditions, require multi-dimensional or animated visualizations to show how the curve shifts over time. Understanding these visualizations allows CTOs and treasury managers to forecast borrowing costs under different market scenarios and strategize capital deployment. Ultimately, a clear graphical representation demystifies the smart contract code, turning abstract algorithmic functions into a tangible tool for financial analysis and decision-making.

common-model-types
MECHANISM OVERVIEW

Common Types of Interest Rate Models

Interest rate models are algorithmic formulas that determine borrowing costs and deposit yields in DeFi lending protocols. They dynamically adjust rates based on real-time supply and demand for an asset.

01

Linear / Jump Rate Model

A piecewise function where the interest rate increases linearly with utilization until a kink point, after which it rises more steeply. This model, pioneered by Compound Finance, is designed to strongly incentivize liquidity replenishment when an asset is heavily borrowed.

  • Key Parameter: kink - The utilization rate threshold where the slope changes.
  • Example: A model with a kink at 80% utilization might have a 5% base rate, jumping to a 50%+ rate at 100% utilization to prevent liquidity crises.
02

Curved / Smooth Model (e.g., Aave V2)

Uses a continuous, curved function (often derived from an exponential or rational formula) to calculate rates, avoiding sharp "kinks." This creates a smoother experience for users as utilization changes.

  • Key Feature: No discrete kink point, leading to more predictable rate transitions.
  • Optimization: Parameters can be tuned to prioritize borrower stability or liquidity provider incentives.
  • Real Usage: Aave V2's stablecoin and volatile asset models use distinct curved functions optimized for each asset's risk profile.
03

Dynamic Rate Model (e.g., Euler, Aave V3)

An advanced model where key parameters (like slopes or optimal utilization) are not fixed but can be updated via governance or automatically based on market conditions. This allows the protocol to adapt to long-term shifts in market volatility and demand.

  • Core Concept: Parameter adjustability post-deployment.
  • Use Case: A governance vote could increase the slope of the rate curve for an asset if it is deemed to be experiencing chronic low liquidity.
04

Isolated Pool Model

Used by protocols like Radiant Capital and Compound V3, this model isolates the interest rate dynamics to a single asset pool or a specific set of collateral. Rates are determined solely by the supply and demand within that isolated market, preventing contagion risk from other assets.

  • Key Benefit: Risk containment; a depeg or exploit in one asset pool does not directly affect rates in others.
  • Trade-off: May reduce capital efficiency compared to shared liquidity pools.
05

Oracle-Based Model

An interest rate that is not purely algorithmic but is instead set or heavily influenced by an external price oracle or benchmark rate. This is common for real-world asset (RWA) lending and stablecoin markets seeking to mirror TradFi rates.

  • Mechanism: The protocol's smart contract reads a rate (e.g., the Secured Overnight Financing Rate - SOFR) from a trusted oracle.
  • Example: A lending market for tokenized U.S. Treasury bills might set its borrow rate to SOFR + a fixed protocol spread.
06

Utilization Rate

The core input variable for most models, calculated as Total Borrows / Total Supply. It represents the proportion of deposited assets that are currently loaned out.

  • Direct Impact: As utilization increases, borrowing typically becomes more expensive to encourage repayment and more deposits.
  • Critical Threshold: Models are designed to avoid 100% utilization, which would cause liquidation failures and broken withdrawals.
examples
IMPLEMENTATIONS

Protocol Examples

Interest rate models are core to DeFi lending protocols. These examples illustrate how different platforms implement dynamic rate calculations to manage liquidity and risk.

04

Euler's Reactive Interest Model

Euler's model reacts to changes in both utilization and asset volatility. It uses an exponential function where the interest rate curve steepens as utilization approaches 100%. A key innovation is the incorporation of TWAP (Time-Weighted Average Price) oracle data to adjust rates for volatile assets, aiming to more accurately price lending risk. The model is designed to be highly reactive to prevent liquidity crises.

  • TWAP Integration: Helps smooth price spikes and provides a more stable basis for risk assessment.
  • Isolated Markets: Allows for unique, asset-specific parameterization.
05

Notional Finance's Fixed Rates

Notional provides fixed-rate, fixed-term borrowing and lending via its fCash system. Rates are determined by a automated market maker (AMM) curve within each maturity market, balancing supply and demand for future cash flows. This allows users to lock in a rate for a specific period (e.g., 3 months, 1 year), a fundamentally different approach from variable rate models.

  • Pricing Mechanism: The AMM's bonding curve sets the exchange rate between cash and fCash tokens.
  • Hedging: Lenders can hedge interest rate risk by locking in a known yield.
06

Morpho's P2P Layer Optimization

Morpho operates as a layer on top of pools like Compound and Aave. Its Peer-to-Peer (P2P) matching engine seeks to match lenders and borrowers directly within the underlying pool's liquidity. When a match is found, users get a P2P rate that is typically better than the pool's average rate—higher for lenders, lower for borrowers. The model uses the underlying protocol's interest rate model as a fallback when matches aren't available.

  • Rate Improvement: The P2P rate is a weighted average of the pool's supply and borrow rates.
  • Efficiency: Aims to redistribute the spread (the protocol's reserve factor) to matched users.
key-parameters
INTEREST RATE MODEL

Key Model Parameters

Interest rate models are algorithmic functions that programmatically set borrowing and lending rates based on real-time supply and demand for an asset. These parameters define the model's behavior and risk profile.

01

Utilization Rate

The Utilization Rate (U) is the core input for most models, calculated as Total Borrows / Total Supply. It measures the proportion of supplied assets that are currently being borrowed. As utilization increases, borrowing demand rises, prompting the model to increase rates to attract more suppliers and discourage additional borrowing.

02

Base Rate & Slope Parameters

These constants define the model's curve.

  • Base Rate (R0): The minimum interest rate when utilization is zero.
  • Slope1 (kink rate): The slope of the interest rate curve before the kink (optimal utilization point).
  • Slope2: The steeper slope after the kink, designed to sharply increase rates as the pool approaches 100% utilization to manage liquidity risk.
03

Optimal Utilization Rate (Kink)

The Optimal Utilization Rate (U_optimal) or kink is a predefined utilization threshold (e.g., 80-90%) where the interest rate curve changes slope. Below the kink, rates increase gradually. Above it, rates increase sharply to incentivize repayments and additional supply, acting as a circuit breaker against liquidity crunches.

04

Reserve Factor

The Reserve Factor is a percentage of the interest paid by borrowers that is diverted to a protocol's reserve fund, rather than being distributed to lenders. This parameter controls the protocol's revenue capture and is used to build a treasury for covering bad debt or funding development. A higher reserve factor slightly reduces the supply APY for users.

05

Example: Aave's Stablecoin Model

Aave's model for stablecoins like DAI uses specific, audited parameters:

  • Optimal Utilization: 90%
  • Base Rate (R0): 0%
  • Slope1: 4% (rate at optimal utilization)
  • Slope2: 60% (rate at 100% utilization) This creates a curve where rates remain low under normal conditions but spike dramatically if the pool is nearly exhausted.
06

Variable vs. Stable Rates

Protocols often offer two rate structures derived from the same underlying model:

  • Variable Rate: Fluctuates in real-time based on the utilization rate.
  • Stable Rate: Offers short-term predictability, typically pegged to market averages. It is often more expensive and can be rebalanced back to the variable rate by the protocol if it deviates too far, preventing arbitrage.
security-considerations
INTEREST RATE MODEL

Security & Risk Considerations

Interest rate models are algorithmic mechanisms that determine borrowing costs and deposit yields in DeFi lending protocols. Their design directly impacts protocol solvency, user profitability, and systemic risk.

01

Liquidation Risk & Utilization

A model's utilization rate (borrowed funds / total deposits) is a primary risk indicator. High utilization increases borrowing costs but also raises the risk of liquidity crunches, where insufficient funds are available for withdrawals. If utilization hits 100%, the protocol becomes illiquid, potentially triggering mass liquidations as borrowers cannot access funds to repay positions. Models must be calibrated to incentivize healthy liquidity reserves.

02

Parameter Governance & Centralization

Model parameters (e.g., base rate, kink point, multipliers) are often set by protocol governance. This creates governance risk: malicious or poorly informed votes can destabilize the system. For example, setting rates too low can lead to under-collateralized borrowing and bad debt, while rates too high can kill demand and reduce protocol revenue. The security of the governance framework is therefore critical to the model's integrity.

03

Oracle Dependency & Manipulation

Interest accrual and loan-to-value (LTV) calculations depend on price oracles. If an oracle provides stale or manipulated prices, it can create false security:

  • Underestimating collateral value: Can trigger unnecessary liquidations.
  • Overestimating collateral value: Allows over-borrowing, leading to under-collateralized positions and bad debt when corrected. Secure, decentralized oracle networks are essential for accurate rate calculations and liquidation triggers.
04

Smart Contract & Economic Exploits

The model's logic is encoded in smart contracts, which are vulnerable to bugs. Exploits can include:

  • Interest calculation errors: Leading to incorrect accrual or distribution.
  • Flash loan manipulation: Artificially spiking utilization to manipulate rates for arbitrage or to trigger liquidations.
  • Reentrancy attacks: On funds during interest distribution. Rigorous audits and formal verification are required to mitigate these code-level risks.
05

Market Volatility & Rate Shock

Models must withstand extreme market volatility. A sudden price crash can cause simultaneous, cascading liquidations, overwhelming the liquidation engine and creating bad debt. If the model's rates do not adjust quickly enough to reflect new risk, the protocol may be left with under-priced risk exposure. Stress testing against historical volatility scenarios is a key security practice.

MECHANISM COMPARISON

Interest Rate Model vs. Traditional Finance

A structural comparison of how interest rates are determined and applied in decentralized finance protocols versus traditional financial systems.

FeatureDeFi Interest Rate ModelTraditional Finance (e.g., Bank)

Primary Determinant

Algorithmic supply/demand

Central bank policy & bank discretion

Rate Transparency

Public, on-chain, verifiable

Opaque, proprietary models

Update Frequency

Continuous, automated

Periodic, manual (e.g., quarterly)

Collateralization

Over-collateralization required

Under-collateralization common

Settlement Finality

Near-instant, on-chain

Days (e.g., T+2)

Operational Hours

24/7/365

Business hours & time zones

Counterparty Risk

Smart contract (code risk)

Institutional (credit risk)

Global Access

Permissionless

Geographically restricted

INTEREST RATE MODELS

Frequently Asked Questions (FAQ)

Interest rate models are the algorithmic engines that determine borrowing and lending costs in DeFi protocols. This FAQ addresses the core mechanics, types, and practical implications of these models for users and developers.

An interest rate model is a smart contract algorithm that dynamically calculates the interest rates for borrowing and lending assets within a decentralized finance (DeFi) protocol. It works by adjusting rates based on the real-time utilization rate of a liquidity pool—the ratio of borrowed funds to total supplied funds. As demand for borrowing increases (high utilization), the model algorithmically raises the borrow rate to incentivize more lenders to supply capital and discourage excessive borrowing. Conversely, when utilization is low, rates decrease. This automated mechanism is fundamental to protocols like Aave and Compound, ensuring capital efficiency and protocol solvency without a central authority setting prices.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team