Skip to content

Research notes

Compound III Borrow vs Liquidation Factors

A two-collateral Comet account loses borrowing headroom before liquidation eligibility. Rebuild both factor-weighted sums and match the debt checkpoint.

A lime cube rests between two nested ivory ceramic walls on a dark surface.
Illustration for research notes; examples in this article are educational.

In Compound III, the borrow collateral factor weights collateral for the borrowing check, while the liquidation collateral factor weights it for liquidation eligibility. Their gap lets an account lose borrowing headroom before becoming liquidatable. The separate liquidation factor affects the value credited during absorption; it does not set the eligibility threshold.

A “borrow limit reached” message therefore needs a specific interpretation. It can mean the account cannot increase debt even though its existing debt has not crossed the liquidation boundary. Reusing one percentage for both tests hides that intermediate state.

This explanation follows Compound III's Comet model, with implementation details checked against CometWithExtendedAssetList at revision f766f51 on 28 October 2026. The figures below are invented teaching inputs. They are neither current market settings nor evidence that a particular deployment runs this revision.

Three similar names have different jobs

Compound III has one borrowable base asset per Comet market. Other supported assets can contribute collateral. The base account uses signed principal: a negative position represents borrowing. The official borrowing documentation explains this structure and the use of the withdraw operation to borrow base tokens.

Keep the full configuration names in a worksheet:

FieldJobWhere it belongs
borrowCollateralFactorWeights collateral for the borrowing constraintPermission to create or increase a borrow
liquidateCollateralFactorWeights collateral for liquidation eligibilityTest of existing debt
liquidationFactorDetermines collateral value credited during absorptionSettlement after eligibility

The official asset-info reference exposes all three separately. Its factors use a scale of 10^18. For example, 650000000000000000 represents 65%; it is not an amount of collateral or base tokens.

The liquidation collateral factor is higher than the borrow collateral factor. In the pinned asset-list implementation, the ordering is checked before and after factor packing. Use the effective values returned by the market's asset-info getter when reproducing its calculation.

A liquidation factor of 93%, if assumed for an illustration, would concern value credited when collateral is absorbed. It would not make the account eligible when debt reaches 93% of collateral value. The distinction between eligibility and the subsequent transfer is developed in Compound III absorption versus collateral purchases.

Build both sums from the same account

For each collateral, multiply the held quantity by its protocol oracle price. Multiply that value by the appropriate collateral factor, then add the contributions.

Borrowing support is the sum using borrow collateral factors.

Liquidation support is the sum using liquidation collateral factors.

Debt value is the magnitude of present base debt multiplied by the base asset's oracle price. A base token called a stablecoin still has a price input; setting it permanently to one dollar is an assumption.

Subtract debt value from each support sum. The pinned eligibility checks accept nonnegative borrowing liquidity in isBorrowCollateralized and return true from isLiquidatable only when liquidation liquidity is negative. Equality passes the first test and does not satisfy the second. Read both booleans directly; Aave's health-factor field belongs to a different account model.

For a borrower, a simplified valuation-only estimate of additional base units is:

max(0, borrowing support − debt value) ÷ base price.

This is conditional headroom. It does not verify available base tokens, the minimum borrow size, permissions, pauses or successful token transfers.

The Aave withdrawal-headroom comparison makes the broader distinction between account support and available liquidity. Its Aave-specific withdrawal rules should stay attached to that implementation.

Follow one hypothetical account through three prices

Assume one Comet market whose base asset is fictional U. The account owes 4,000 U, oracle-valued at $1 each. Its listed collateral consists of 8 A and 2,000 B.

All tokens, prices and factors are illustrative. Hold balances and factors fixed across the price snapshots. Assume interest was just checkpointed, sufficient base liquidity exists, the borrow minimum is satisfied and relevant operations are unpaused. The selected numbers make the fixed-point calculations exact at the displayed inputs.

CollateralQuantityOpening priceBorrow factorLiquidation collateral factor
A8$50065%78%
B2,000$180%90%

At the opening price, A contributes $4,000 of market value. Its borrowing contribution is $2,600 and its liquidation contribution is $3,120. B contributes $1,600 and $1,800, respectively.

Borrowing support is therefore $2,600 + $1,600 = $4,200.

Liquidation support is $3,120 + $1,800 = $4,920.

Against $4,000 debt, those sums leave $200 of borrowing liquidity and $920 of liquidation liquidity. At U's assumed price, the conditional additional-borrow estimate is 200 U.

Now let only A's price fall. Each column is an account snapshot before any absorption or corrective transaction:

Account measureA at $500A at $400A at $350
Total collateral value$6,000$5,200$4,800
Borrowing support$4,200$3,680$3,420
Debt value$4,000$4,000$4,000
Borrowing liquidity$200−$320−$580
Additional U headroom200 U0 U0 U
Liquidation support$4,920$4,296$3,984
Liquidation liquidity$920$296−$16
Borrow checkPassFailFail
Liquidation eligibleNoNoYes

The $400 column is the central distinction. Borrowing support has fallen below debt by $320, but liquidation support still exceeds debt by $296. The negative borrowing figure is a shortfall against that constraint. It is not an additional negative loan or proof that liquidation has happened.

At $350, A contributes 8 × $350 × 78% = $2,184 to liquidation support. Adding B's $1,800 gives $3,984, which is $16 below debt. The modeled eligibility test now returns true. It does not establish when someone submits an absorption or what a later collateral buyer receives.

Recalculate the boundary when inputs change

With B fixed at $1 and debt fixed at $4,000, borrowing equality requires A to contribute $2,400 through its 65% factor. The corresponding A price is approximately $461.5385.

Liquidation equality requires A to contribute $2,200 through its 78% factor. That price is approximately $352.5641.

Between those two prices, the account fails the borrowing constraint but remains outside the strict negative-liquidity liquidation condition. At exact liquidation equality, it is not eligible under this test. Rounded screen prices cannot resolve raw-integer equality.

These boundaries hold only for the stated balance, B price, U price and parameters. If U's oracle price becomes $1.02 while debt remains 4,000 U, debt value rises to $4,080. The conditional liquidation-equality price of A rises to approximately $365.3846.

Interest can change the base quantity too. Compound III charges borrowers through the base borrowing model; collateral balances do not earn offsetting protocol interest merely because they support the loan. See the official interest-rate documentation.

The Comet principal-versus-present-balance explanation follows that debt conversion. A saved day-zero principal must be converted with the relevant borrow index before it can serve as a debt amount.

A borrow-factor change can remove headroom alone

Return to the opening $500-A snapshot. Suppose an activated configuration changes only A's borrow collateral factor from 65% to 55%. Keep its liquidation collateral factor at 78% and every other input unchanged.

Borrowing support becomes $4,000 × 55% + $2,000 × 80% = $3,800. Borrowing liquidity becomes negative $200, so additional borrowing is blocked by the account constraint.

Liquidation support remains $4,920. The existing $4,000 debt therefore remains outside liquidation eligibility in this constructed case.

Compound's official liquidation documentation describes this purpose of separate factors: governance can reduce borrowing factors without that change itself triggering liquidation of existing positions. A change to liquidation factors or another account input requires its own calculation. A published proposal also does not prove a new configuration is active.

Match the debt checkpoint to the check

The debt read matters near the boundary.

In this pinned reference, both collateral-check getters use the stored borrow index through presentValue. The separate borrowBalanceOf getter projects interest through the read's timestamp. Meanwhile, borrowing base tokens and absorbing an account accrue interest before their checks; the collateral-withdrawal path explicitly does not accrue first. These call paths are visible in the pinned Comet implementation.

A projected debt calculation can therefore differ from a direct check even at the same block. Label whether a result reproduces stored-state eligibility or models the state after accrual. Simulate the intended operation when its outcome is the question.

Collateral withdrawal checks borrow collateralization after removing collateral. Positive liquidation liquidity alone does not authorize that withdrawal. Calculate the proposed remaining collateral before assessing that operation.

The Aave index comparison shows why stored and projected values need separate labels. Comet uses its own signed-principal arithmetic and index scale, defined in CometCore; an Aave index must not enter this calculation.

Retain a snapshot that explains both answers

A useful validation record makes the account boundary and observation explicit:

RecordWhat to retain
Market identityChain, Comet proxy, base token and actual implementation
ObservationBlock number, hash and timestamp
CollateralEvery held listed asset, raw balance, scale and price feed
FactorsEffective borrow and liquidation collateral factors per asset
DebtSigned principal, stored index, projected debt and base price
ReconciliationBoth weighted sums, both liquidity differences and returned booleans
Proposed actionExact caller, asset, amount, simulation and confirmed result

Perform integer price conversion and factor multiplication in the implementation's order before formatting values. Read the base price alongside collateral prices. If a reconstruction disagrees, investigate mixed blocks, different checkpoints, token decimals, factor fields and deployment versions.

For the $400-A example, the reproducible statement is: borrowing liquidity is negative $320, liquidation liquidity is positive $296, and no additional U fits the borrowing constraint. Retaining those two amounts and their inputs makes the account's intermediate state visible.

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.