Trail of Bits' Q1 2026 Compound V3 review surfaced one high-severity rounding issue in the liquidation incentive math and two informational items on collateral asset registration. The rounding bug is negligible per-liquidation but visible to liquidators tracking total accrued incentives.
// findings · 2
- [HIGH]
Liquidation incentive uses floor rounding where ceiling is expected, leading to liquidator under-payment. Effect is negligible per-liquidation but accrues to large-volume liquidators.
Comet.absorb()liquidation mathLiquidation incentive calculation uses incorrect rounding direction, leading to liquidators receiving 1-2 wei less per liquidation.
ref: TOB-001affects:liquidationliquidator - [MEDIUM]
Collateral asset registration does not require an explicit decimals check, allowing future mis-registration of non-18-decimal collateral.
Configurator.addCollateralAssetNo explicit decimals check during collateral registration.
ref: TOB-002