The function ContestManager::fundContest()
does not check whether the Pot
has been closed or has enough assets.
When the Owner calls ContestManager::fundContest()
on a Pot
that has been closed, then the Owner
may lose assets because if the Owner tries to retrieve the assets from the Pot
, the manager's cut is only 10% and the rest is distributed to the claimants.
The function ContestManager::fundContest()
also does not check whether the Pot already has enough assets. It is not possible to retrieve a full amount of the assets.
The owner loses assets.
Manual review.
Consider adding checks on the Pot
status to prevent the aforementioned problems.
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.