ContestManager::fundContest
is not called instantly after ContestManager::createContest
, making the pot unusable till it is funded
createContest
function is used to create a new contest/pot. The main functionality of the pot is that users can collect their rewards. But for this, the pot must have the necessary funds. To give the pot these funds , the owner/creater/manager must call the fundContest
function after which the pot functions normally. The problem being the time after the pot is deployed but not funded . Users see their transactions getting reverted . Also the '90 day deadline' starts when the pot is created , not when it is funded. So there is no point in having 2 specific functions , rather fund the deployed contest in the same function.
Users can't claim their rewards till the pot is funded.
Proof of Concepts Here is a test which shows what happens when a pot is deployed but not funded
Owner creates the pot
Player tries to claim their reward but cannot.
Place this test into TestMyCut.t.sol
Manual review , foundry tests
Fund the pot inside the createContest
function itself and remove the fundContest
completely
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.