The Treasury's _totalValue aggregates balances of different tokens with different decimals without normalization, leading to meaningless total value reporting.
The Treasury contract adds different token amounts directly to _totalValue without accounting for different token decimals or values:
The same issue exists in the withdraw function where amounts are subtracted directly.
getTotalValue() returns meaningless aggregate of different token amounts
No impact on protocol security as:
Each token balance is tracked separately in _balances
No protocol functionality depends on _totalValue
Manual Review
Either:
Remove _totalValue tracking since it provides no meaningful information, or
Normalize values to a common unit before aggregation.
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.