The withdrawal function lacks necessary verifications, which can lead to unexpected behavior.
When the withdraw
function is called, some critical verifications are missing before initiating the transfer:
The function does not check if the capitalPoolAddr
is deployed or if it has sufficient funds before executing the transfer. This oversight can result in unexpected behavior and make it challenging to identify the source of the error.
Failure to verify these conditions can lead to unexpected behavior and make debugging difficult.
Manual Review
Add the following verifications to ensure proper checks before proceeding with the withdrawal:
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.