Skip to main content

What Happened

Compound Proposal 65 documents over-accrued COMP introduced by Proposal 62 and the corrective work following Proposal 64. The repair distinguishes unclaimed excess accrual from rewards already claimed. This page does not equate an exposed balance, an accrual error, and realized loss. Compound Proposal 65.

Attack Mechanism

The upgrade changed reward-index initialization. A supplier with an unset index could encounter a market supply index equal to compInitialIndex (1e36). The affected condition used supplyIndex > compInitialIndex, so equality skipped initialization and left the supplier index at zero.
The later accrual calculation then used an index difference of roughly 1e36, rather than the small difference since the supplier’s real starting point. The correction had to account for both excess accrual still recorded in storage and rewards already claimed. distributeSupplierComp is an internal Solidity function, so EVM call-input tracing cannot discover those invocations. The example below limits net COMP leaving a configured rewards treasury in one transaction. It contains the payout even when the faulty internal function has already over-accrued rewards.

Assertion Example

What This Check Covers

The cap is a policy parameter in COMP base units, not a reconstructed reward schedule. It can reject large legitimate claims and does not fix excess compAccrued. Incoming COMP in the same transaction can offset outgoing COMP, so this net-balance cap is weaker than a gross-transfer or cumulative-window policy. Attach it to the paying treasury and test its actual payout paths.