FeeCollector::emergencyWithdraw allows draining of collected-but-undistributed fees, violating protocol fee distribution rules. When emergencyWithdrraw is called all raac tokens are transferred, including those that are collected but not yet distributed. If this happens before distribution, the collected fees would be sent to the treasury, and all fees including the veRAAC holders fees will be lost.
during emergencies, there is No separation between collected fees and other balances. In case the fees hasnt been distributed to that period, veRAAC holder wont be able to claim fees. emergencyWithdraw sends entire RAAC balance without accounting for distribute
Affected Code:
Protocol can lose all collected but undistributed fee.
veRAAC holders lose entitled rewards for that period
foundry, manual review
Track all funds sent to treasuary seperatly
call the distrubte function during emergencies
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.