The startGame
function in EggHuntGame.sol
allows the owner to set the game's duration. While it checks for a minimum duration (MIN_GAME_DURATION
), it does not enforce any maximum duration limit.
The owner can set an extremely long game duration, potentially locking the contract state indefinitely and preventing future games from being started or the current one from concluding in a reasonable timeframe.
Implement an upper bound check for the game duration parameter in the startGame
function.
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.