The balanceDeployed()
function incorrectly includes underlying WETH tokens at face value and fails to account for exchanged balances, causing issues for off-chain calculations
In balanceDeployed()
:
two issues:
WETH is counted at face value when it trades at a premium to alETH
Exchanged balance (claimable WETH) is not included in calculation
The function should include:
Unexchanged alETH balance
Current alETH balance
Exchanged balance (claimable)
Low - This vulnerability affects core accounting:
Since this function is not called any where and used in off-chain logic only
Manual code review
Cross-reference with Alchemix protocol documentation
Include exchanged balance in calculation:
Remove direct WETH accounting
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.