Funds cannot be recovered when sent directly to the treasury
The emergencyWithdraw allows Emergency admin to send funds to the treasury
An issue with this implementation is that, it directly sent tokens to the treasury
, this is problematic as there'll be no way to withdraw these funds. Reason is to withdraw funds on treasury _balances[token]
mapping and _totalValue
should be increased with deposit function , otherwise calling withdraw
function is reverted due to underflow of those variables.
The same happened in the _processDistributions.
Funds will be stuck in the treasury forever.
Manual review
Transfer tokens via deposit function.
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.