The Treasury contract directly adds token amounts with different decimals to _totalValue
without normalization:
This causes significant precision issues since tokens have different decimal places:
1 USDC (6 decimals) = 1,000,000
1 WETH (18 decimals) = 1,000,000,000,000,000,000
Making _totalValue
and getTotalValue()
return meaningless aggregates.
Remove _totalValue
tracking if not needed, or normalize values to same decimal places before adding:
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.