Skip to content

Research notes

Compound III Utilization Kinks and Interest Rates

Calculate two independent Comet rate curves from hypothetical parameters, then check integer rounding, annualization and compounding assumptions.

Two ivory ceramic ramps with lime inlays at their bends on a black studio floor.
Illustration for research notes; examples in this article are educational.

Compound III calculates supply and borrow interest from separate kinked curves using the base asset’s utilization. Each curve has its own base rate, slopes and kink, so the same utilization can put suppliers above their kink while borrowers remain below theirs. Comet returns scaled per-second rates; converting them to APR or APY requires explicit units and compounding assumptions.

The calculation below follows Compound III’s CometWithExtendedAssetList implementation at revision f766f51, inspected on 28 October 2026. The parameters are invented for this example. Applying the method to a deployed market requires that market’s implementation and configuration.

Identify the asset behind utilization

A Comet market has one base asset. Positive base balances earn its supply interest, while negative base balances pay its borrow interest. Other supplied assets serve as collateral and do not earn Comet lending interest. The official interest-rate documentation source makes these roles explicit.

The rate model’s utilization therefore compares base borrowing with base supply. Adding the dollar value of collateral to the denominator changes the question. Our base asset versus collateral walkthrough follows those separate balances.

For an illustrative snapshot with 1,000,000 base tokens supplied and 750,000 borrowed, utilization is 0.75, or 75%. These must be the matching base amounts for one Comet market. Balances on another chain or in another market do not belong in the ratio.

Checkpoint timing matters when reproducing the contract. In this revision, getUtilization() converts aggregate principal using the stored supply and borrow indices. It does not accrue interest first. By contrast, totalSupply() and totalBorrow() project their indices to the read’s timestamp. Dividing those two projected getter results can therefore differ from getUtilization(), even at one block. The implementation’s utilization and total-balance functions show the distinction.

Keep two kinks and three scales separate

The kink is the utilization point where a curve changes slope. A steeper slope means a further increase in utilization adds interest faster. It does not mean the entire rate suddenly jumps at the kink.

Comet’s configuration interface supplies independent base, low-slope, high-slope and kink parameters for supply and borrowing. The supply curve need not share the borrow curve’s kink. Calculate each side with its own parameters.

The core constants distinguish the relevant units:

QuantityScale or time basis
Utilization, kink and rate factors10^18
Base supply and borrow indices10^15
Annual-to-second conversion31,536,000 seconds
Base-token amountsThat token’s decimals

A six-decimal base token still uses 10^18-scaled rate factors. Dividing a raw rate by 10^6 would mix token units with interest units.

Let F equal 10^18. Write U for raw scaled utilization, K for one curve’s raw kink, and B, L and H for its raw per-second base, low-slope and high-slope coefficients. Here, floor means discard any fractional remainder.

At or below the kink, R = B + floor(L × U ÷ F).

Above the kink, R = B + floor(L × K ÷ F) + floor(H × (U − K) ÷ F).

R is the raw per-second rate. Apply this rule once for supply and once for borrowing. The pinned rate functions and factor multiplication floor each multiplication separately. Combining the products and rounding once can disagree by a raw rate unit.

The high slope applies only to utilization beyond K. There is no division by the length of the remaining utilization range. A slope parameter is a coefficient per full 1.00 of utilization, rather than the rate reached at 100% utilization.

Build a hypothetical parameter set

Use this invented configuration throughout the example:

Configuration inputSupply curveBorrow curve
Kink70% utilization80% utilization
Base coefficient0%2%
Low-slope coefficient2%6%
High-slope coefficient20%100%

The base and slope rows use annual percentage coefficients. Borrowing does not cost 100% APR merely because its high-slope coefficient is 100%.

Before evaluating either curve, convert the annual coefficients to the implementation’s per-second integers. The constructor divides each scaled annual coefficient by 31,536,000 and discards the remainder. For example, the supply low slope starts as 20,000,000,000,000,000, representing 0.02 at the factor scale. Its per-second integer becomes 634,195,839.

The resulting coefficient triples, ordered base, low slope, high slope, are:

  • Supply: 0; 634,195,839; 6,341,958,396.
  • Borrow: 634,195,839; 1,902,587,519; 31,709,791,983.

These are raw factors per second, not percentages per second. Retain them as integers while checking the rate. Annualizing the rounded final output will be fractionally below some of the neat percentages suggested by the original configuration.

Evaluate 75% utilization on both curves

At U equal to 0.75 × 10^18, supply is above its 70% kink. Its low-slope term stops at 70%, while the high-slope term covers the remaining five percentage points.

Using annual decimals first makes the shape easy to see: supply APR is approximately 0 + 0.02 × 0.70 + 0.20 × 0.05 = 0.024, or 2.4%.

The exact integer calculation produces a low-slope term of 443,937,087 and a high-slope term of 317,097,919. Their sum is a raw supply rate of 761,035,006.

Borrowing remains below its own 80% kink. Its approximate annual rate is 0.02 + 0.06 × 0.75 = 0.065, or 6.5%. Integer evaluation gives a base term of 634,195,839 plus a low-slope term of 1,426,940,639, producing 2,061,136,478.

The same utilization selected different branches. One generic “above kink” flag for the whole market would lose that information.

To convert either raw output to annual percentage rate, divide R by 10^18, multiply by 31,536,000, then multiply by 100. This uses the contract’s 365-day year. The supply result is 2.3999999949216% APR; borrowing is 6.4999999970208% APR. They round to 2.40% and 6.50% for display.

The full worksheet below uses the same integer calculations and rounds only the displayed APRs:

Base utilizationSupply APRBorrow APR
60%1.20%5.60%
70%1.40%6.20%
75%2.40%6.50%
80%3.40%6.80%
90%5.40%16.80%
100%7.40%26.80%

At exactly 70%, supply uses its low branch; at exactly 80%, borrowing uses its low branch. The two formulas meet at each kink before rounding. Testing one raw utilization unit below, at and above either kink also produces the same integer rate in this fixture. The visible bend is a change in sensitivity, rather than a large discontinuity.

At 90%, the borrow calculation is approximately 2% + 6% × 0.80 + 100% × 0.10 = 16.8%. Its last term contributes ten percentage points of APR because utilization exceeds the borrow kink by ten percentage points.

Applying supply’s high slope to all 75% utilization would instead produce 16.4% supply APR. That error charges the steeper coefficient for utilization already covered by the low segment.

Also avoid reconstructing supply from borrow APR using an assumed reserve factor. At 75%, multiplying 6.5% by 0.75 and by a hypothetical 90% payout fraction gives 4.3875%. Comet’s configured supply curve gives approximately 2.4%. The two independently specified curves are the evidence needed here.

Separate APR from holding-period interest and APY

APR annualizes the quoted per-second rate without assuming a capitalization frequency. It does not predict the rate that will apply throughout the next year.

For a separate illustrative holding-period calculation, start two accounts at the 75% snapshot. One supplies 10,000 base tokens; the other owes 10,000. Assume six token decimals, unchanged account principal, opening indices of 10^15 and one accrual interval lasting 2,592,000 seconds, exactly 30 days. The starting utilization determines that interval’s rates under the pinned accrual rule.

Applying each exact per-second rate for that interval gives 19.726027 base tokens of supply interest and 53.424657 of added debt after the specified index and token-unit flooring. The balances become 10,019.726027 supplied and 10,053.424657 owed. These are different accounts, and the example excludes rewards, fees and token-price changes.

Annual percentage yield (APY) assumes a capitalization schedule. If the supply rate stayed constant and interest capitalized every second, its annual yield would be approximately 2.429032%, calculated as (1 + R ÷ F)^31,536,000 − 1. With daily capitalization of that same rate, the result would be approximately 2.428951%.

Those are conditional comparisons. Comet advances indices using the elapsed time between accrual checkpoints; its accrual routine adds a linear interval increment to each opening index. Repeated checkpoints can capitalize prior interest, and changing aggregate balances can alter utilization and the subsequent rates. “Per second” describes the rate’s time unit; it does not establish an actual one-second capitalization schedule.

Our Aave liquidity-index and borrow-index comparison explains why balances require their matching multipliers and a time history. Comet’s own implementation determines how its multipliers advance.

Validate a quote before using it

Keep enough evidence to distinguish a rate calculation error from a changed market:

RecordValidation
Chain and Comet proxyIdentify the particular base market
Block and implementationBind state and arithmetic to one revision
Both kinks and coefficient setsCheck each branch independently
Raw utilization and rate outputsCompare integers before formatting
Accrual timestamp and indicesIdentify stored versus projected quantities
Annualization and compoundingState seconds per year and assumed schedule

At the selected block, read U from getUtilization(), then call getSupplyRate(U) and getBorrowRate(U). Compare those raw returns with the reconstructed curves and the active per-second parameter getters exposed in the Comet interface. Passing an invented U to a rate function instead returns a hypothetical curve point.

For this reference implementation, reproduce getUtilization() from the stored-index totals when checking its returned quote. A zero supply total returns zero utilization, after which each curve’s configured base rate applies. Treat that as a defined edge case rather than a division failure.

A successful rate calculation also leaves transaction constraints to check separately. Our Comet supply-cap and borrowing-headroom guide covers those different limits. The Aave withdrawal-liquidity walkthrough illustrates the broader accounting distinction between a supplied claim and an executable withdrawal; Comet requires its own execution checks.

For the hypothetical 75% observation, retain supply rate 761,035,006 and borrow rate 2,061,136,478 with their 10^18 scale. Add the two kinks, the observation block and the annualization convention. Those fields let another reader reproduce both quoted APRs without guessing which curve or unit was used.

Keep the context with the example.

Each worked example is illustrative, with its sources and assumptions in the article. Read our editorial standards for authorship, verification and corrections.