Note: The documentation does not clarify whether the game owner is allowed to end the game before the scheduled end time. In the scenario shown below, the game is expected to run for a fixed duration defined at its start.
Currently, there is no safeguard preventing the game owner from ending the game prematurely. Players should have the full, predetermined time to search for hidden eggs, and the owner should not have the ability to cut the game short.
The game can be terminated before the originally defined end time.
Add the following code to the EggHuntGameTest.t.sol file within the EggGameTest contract.
Manual Review
Foundry
To ensure players have the full allotted time to complete the game, a safeguard should be implemented to prevent the game from ending before the predetermined duration has passed. It is recommended to introduce below changes within the EggHuntGame contract.
Owner is trusted and is not expected to interact in ways that would compromise security
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.