Integer division in _raw_price
truncates fractional values, causing cumulative inaccuracies.
total_assets * 1e18 // total_supply
discards remainders, leading to LP value erosion over time.
Long-term inaccuracies disadvantage LPs during redemptions.
Code analysis of ScrvusdOracleV2.vy
arithmetic operations.
Increase precision to 1e27 before division:
All values will be scaled to a combined of 36 decimals before division (be it price-related values or totalSupply). Considering the 18 decimals of all values, no realistic values were presented in any duplicates to proof a substantial impact on precision loss.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.