These functions ContestManager::fundContest
,Pot::closePot
,Pot::_transferReward
fail to verify the result of the transferFrom
and transfer
calls. If the transfer fails due to insufficient balance or any other reason, the function will continue to execute without handling the error. This can result in silent transfer failures and potential loss of funds, as the system may proceed as if the transfers were successful.
The lack of proper error handling could lead to a situation where rewards or contest funds are not transferred correctly, without triggering a failure, the protocol and its users are exposed to potential fund loss.
Manual analysis
Always check the result of transferFrom and transfer.An example fix:
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.