In Compound III, a market's base asset is the token that can be borrowed or supplied for protocol interest. Other supported assets serve as collateral and do not earn Comet interest. A base-asset supply first repays any base debt; only the remaining positive balance earns the configured supply rate. The same token can have a different role in another Comet market.
This guide uses the Ethereum USDC Comet market identified in the official deployment record, with proxy 0xc3d688B66703497DAA19211EEdff47f25384cdc3. The accounting follows the reference contracts at revision f766f51, inspected on 28 October 2026. This pins the explanation; it does not certify the proxy's current implementation or provide live market parameters.
Identify the asset's role in this market
The USDC market configuration names USDC as the base token and lists WETH among its collateral assets. That distinction determines what supplying each token does.
| Position in the USDC Comet | What the account holds | Protocol interest treatment |
|---|---|---|
| Positive USDC base balance | A supplied USDC claim | Uses the base supply rate |
| Negative USDC base balance | A USDC borrowing liability | Uses the base borrow rate |
| Supplied WETH collateral | WETH recorded against the account | No Comet supply interest |
The official interest documentation separates the supply and borrow models and states that collateral assets do not accrue either kind of interest. A positive base balance is eligible for the configured rate; the word “supplied” alone does not establish that rate is positive.
Roles belong to a particular contract. The separate Ethereum WETH market configuration names WETH as its base asset. Supplying WETH there has a different accounting role from supplying WETH as collateral in the USDC market. A ticker and chain name are therefore insufficient identifiers: save the Comet address too.
An account can hold WETH collateral while also having a positive USDC balance. It can later become a USDC borrower while retaining that collateral. The changing USDC position and the WETH holding belong in separate columns.
One base balance changes sign
The Comet storage definition gives each account one signed base principal and separate balances for collateral assets. Positive principal represents base supply; negative principal represents base debt. It is an accounting quantity used with an interest index, rather than a lifetime sum of deposits.
Consequently, one account in one Comet does not retain an independent USDC lending balance alongside an independent USDC borrowing balance. Withdrawing USDC consumes its positive base balance before creating debt. Supplying USDC to a negative balance reduces debt before creating positive supply. These transitions are described in the official collateral and borrowing documentation.
This differs from applying old Compound V2 cToken exchange-rate calculations to every supplied asset. Although this market's configured symbol is cUSDCv3, the accounting here uses Comet's signed principal and base indices. Do not interpret WETH collateral as a separate V2-style interest-bearing cWETH position.
Our Aave liquidity-index and borrow-index walkthrough also keeps supply and debt multipliers separate. Its aToken and debt-token model does not establish Comet's account structure. The Compound III principal and present-balance guide develops the index conversion; the ledger below focuses on which role exists after each operation.
Follow a hypothetical USDC account
Assume an account already holds 2 WETH as collateral and a positive 2,000 USDC base balance. Assume WETH's oracle value is $2,000, USDC's is $1, and the borrowing collateral factor is 82.5%. That factor appears in the pinned repository configuration, but its use here is an illustrative input, not a current onchain quotation. That snapshot also sets WETH's supply cap to zero, so the example starts with an existing collateral balance and makes no new WETH deposit.
The collateral supports 2 × $2,000 × 82.5% = $3,300 of borrowing value, equivalent to 3,300 USDC at the assumed price. Assume the market has sufficient available USDC liquidity, the caller has permission, and the minimum-borrow requirement is satisfied. Pauses, liquidation, fees and intervening account transfers are excluded.
Use synthetic checkpoint indices to make the calculation reproducible. Both base indices equal 1 at the opening checkpoint, t0. At t1, stipulate a supply index of 1.005 and a borrow index of 1.01. At t2, stipulate a supply index of 1.010025. These values are teaching fixtures, not rates derived from the market's configuration or a forecast for a stated period.
| State or action | Signed USDC balance | WETH collateral | Base interest role |
|---|---|---|---|
| Opening t0 position | +2,000.000000 | 2 | Supply |
| Withdraw 5,000 USDC at t0 | −3,000.000000 | 2 | Borrow |
| t1 before repayment | −3,030.000000 | 2 | Borrow |
| Supply 1,010 USDC at t1 | −2,020.000000 | 2 | Borrow |
| Supply another 3,025 USDC at the same t1 | +1,005.000000 | 2 | Supply |
| t2 with the stipulated supply index | +1,010.025000 | 2 | Supply |
The withdrawal includes returned supply
The first 2,000 USDC of the 5,000 USDC withdrawal returns the opening supplied balance. The remaining 3,000 USDC becomes borrowing. Recording “2,000 supplied and 5,000 borrowed” after this transaction would misstate both the liability and the interest-earning amount.
The base withdrawal implementation subtracts the withdrawal from the accrued signed balance and checks a resulting negative balance against borrowing requirements. Under our assumptions, 3,000 USDC fits the 3,300 USDC collateral limit.
By t1, the unchanged negative principal is multiplied by the stipulated borrow index: the debt reaches 3,030 USDC. WETH remains 2. The 30 USDC increase is a borrowing cost; the WETH collateral did not earn a Comet payment to offset it. At the assumed prices and factor, borrowing headroom has fallen to 270 USDC.
Repayment comes before new interest-earning supply
Supplying 1,010 USDC reduces 3,030 USDC debt to 2,020 USDC. The account still has no positive base supply balance. Its transaction can be called a supply operation while functioning entirely as repayment. The repository's supply tests explicitly exercise supplies against accrued debt.
Now supply 3,025 USDC at the same checkpoint. The first 2,020 USDC clears the remaining liability. Only the surplus 1,005 USDC becomes positive base supply. From that point, subsequent base interest uses the supply side.
At t2, the supply-index ratio is 1.010025 ÷ 1.005 = 1.005. The claim becomes 1,005 × 1.005 = 1,010.025 USDC, adding 5.025 USDC. Applying that supply growth to either repayment's full transfer amount would overstate earnings.
These amounts were checked in raw integers using six USDC decimals and the reference CometCore conversion rules. The chosen inputs divide exactly. As a second check, start with 2,000, subtract the 5,000 withdrawal, add the 1,010 and 3,025 transfers, subtract 30 of borrow interest and add 5.025 of supply interest. The result is the same 1,010.025 USDC.
Separate token interest, price changes and rewards
The WETH column stays at 2 throughout the fixture because no WETH operation occurs. Its value in dollars can still change. A falling oracle price reduces its borrowing support without requiring its token quantity to decline. An unchanged collateral balance therefore says little about the account's remaining borrowing room.
Likewise, a change in a collateral token's external market value is not Comet interest. For a yield-bearing collateral token, investigate its own underlying mechanism separately before attributing any economic growth to this lending market.
Reward tokens require another record. CometRewards has separate per-market reward configuration and claimed-reward tracking. A rewards amount shown beside a position should retain its token, accrual conditions and claim status. It should not be added to USDC principal or described as WETH collateral interest.
The Compound III utilization and kink-rate guide explains the separate rate curves. Choosing the right curve matters only after identifying the account's base-balance sign.
Verify a real position in the right units
Use a fixed block for a reconciliation and retain enough information to reproduce the classification:
| Read or record | What it establishes |
|---|---|
| Chain, Comet proxy and implementation | The particular market and rules being examined |
baseToken() and token decimals | Which token is base and how to format raw amounts |
balanceOf(account) | Positive accrued base supply, or zero |
borrowBalanceOf(account) | Accrued base debt magnitude, or zero |
collateralBalanceOf(account, asset) | The separate collateral token quantity |
| Asset information and oracle inputs | Borrowing factors, supported assets and valuation |
| Confirmed flows between observations | Why quantities changed |
The collateral getter returns the stored collateral quantity. Format it using that asset's decimals. In this example, 2 WETH is 2000000000000000000 raw units; 2,000 USDC is 2000000000. Neither raw number is an oracle valuation.
Respect each method's accrual semantics. In this reference implementation, base balance getters project interest to the observation time, while totalsBasic() returns stored indices. A standalone borrowing-collateralization check uses stored base indices; a base withdrawal accrues before checking. Mirror the proposed operation when simulating it instead of mixing those values into one supposedly current snapshot.
Finally, identifying a supplied claim does not prove immediate withdrawal availability. Our Aave withdrawal-liquidity and headroom example illustrates why cash and account constraints need separate evidence, though Comet requires its own checks. For a Comet action, simulate the exact market, caller, asset and amount, then verify the confirmed balances.
For the fixture's final record, the useful statement is precise: 1,010.025 USDC of positive base supply, zero USDC debt, and 2 WETH recorded separately as collateral. Each quantity has a defined role and a matching source of evidence.
