Mixed-decimals math without explicit scaling
dYdX v4 (dYdX Chain)'s assessment for RD-F-017 — scored gray on the v1.7.0 rubric. The evidence below is the curator's reasoning for this score.
Evidence summary #
Mixed-decimals arithmetic confusion is conceptually possible in Go perpetuals math (x/perpetuals, x/clob use sdk.Dec and sdk.Int types). The Informal Systems audits cover these modules but specific findings on decimal handling are not accessible from public audit blog summaries. No published Go static analysis for this specific pattern. Pipeline unimplemented for Go substrate.
Sources #
- GitHub
Methodology #
Determine whether shared numerator/denominator arithmetic operates over tokens with different decimals without WAD/RAY normalization or explicit decimal-adjustment.
See the full factor methodology and distribution across all protocols →