Incorrect logic in comment in deployProxyAndDistributeByOwner
function
Incorrect require statement in the deployProxyAndDistributeByOwner
function.
Instances:
https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/ProxyFactory.sol#L188
// require(saltToCloseTime[salt] == 0, "Contest is not registered");
Here, the saltToCloseTime[salt]
is required to be zero which is incorrect as if it is equal to zero that means the contest is not registered yet.
Incorrect comment leads to confusion.
Manual review
Add the following comment:
// require(saltToCloseTime[salt] != 0, "Contest is not registered");
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.