FeeCollector sends all treasury fees via a direct transfer instead of depositing them, making them unaccounted for and unable to be retrieved.
Let's see how _processDistributions sends fees towards the treasury
A direct transfer is incorrect here due to the Treasury.sol having dedicated deposit-withdraw methods which also perform internal accounting of all funds that enter.
Withdrawing the funds sent from FeeCollector towards the Treasury is impossible as they were never accounted for in _balances and _totalValue, leading to underflows when performing subtraction calculations in withdraw.
Permanently stuck funds, loss for the protocol
Use the deposit method instead of direct transfer
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.