Divide-before-multiply pattern
Compound V3 (Comet)'s assessment for RD-F-016 — scored green on the v1.7.0 rubric. The evidence below is the curator's reasoning for this score.
Evidence summary #
No divide-before-multiply finding in OZ or ChainSecurity audits. Compound V3 uses explicit fixed-point scaling with BASE_INDEX_SCALE and CometMath.sol is explicit about operation ordering.
Sources #
- GitHubhttps://github.com/compound-finance/comet/blob/main/contracts/CometMath.solretrieved 2026-04-28
- https://www.openzeppelin.com/news/compound-iii-auditretrieved 2026-04-28
Methodology #
Determine whether Slither's `divide-before-multiply` detector fires on the deployed verified source.
See the full factor methodology and distribution across all protocols →
rubric_version v1.7.0 protocol compound-v3 factor RD-F-016 score green collected_at 2026-04-28 00:20:50