The code to set the closing time to the current time and immediately end the contest if the organizer wishes has not been implemented in the ProxyFactory.sol
contract.
The code includes a comment suggesting that the organizer has the ability to halt the contest immediately by adjusting the closing time to the present moment. However, the actual implementation of this functionality is absent in the provided code.
https://github.com/Cyfrin/2023-08-sparkn/blob/0f139b2dc53905700dd29a01451b330f829653e9/src/ProxyFactory.sol#L133
Since the logic that would allow organizers to promptly terminate contests and distribute tokens by setting up the close time to the current time has not been put in place, they are currently unable to take immediate action in stopping contests and distributing tokens as per their preferences. This implies that the organizer must wait until the designated closing time to distribute the prize to the winners.
Manual Review
Implement the necessary logic to enable setting the closing time to the current time, thereby allowing organizers to immediately close the contests if they wish to do so.
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.