Mixed-decimals math without explicit scaling
Stargate Finance's assessment for RD-F-017 — scored green on the v1.7.0 rubric. The evidence below is the curator's reasoning for this score.
Evidence summary #
StargatePool.sol uses a `sharedDecimals` mechanism with explicit `_ld2sd()` (local decimals to shared decimals) and `_sd2ld()` (shared to local) conversion functions. This explicitly normalizes decimal differences between chains. The constructor takes both `_tokenDecimals` and `_sharedDecimals` parameters.
Sources #
- Curator noteExtracted from 01-code-security.md — RD-F-017 finding; no URL cited in originalretrieved 2026-04-28
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 →
rubric_version v1.7.0 protocol stargate factor RD-F-017 score green collected_at 2026-04-28 01:38:41