The getTimeRemaining() function returns time left based solely on endTime, ignoring the game’s active state, leading to misleading UI/UX.
Location: EggHuntGame.sol, getTimeRemaining() function
Code Snippet:
Issue:
Missing gameActive Check: The function reports time left until endTime even if the game was manually ended via endGame() (setting gameActive = false).
Misleading Data: Players see a positive "time remaining" even when the game is inactive.
User Confusion: Players may attempt actions (e.g., searchForEgg()) expecting the game to be active.
Manual Code Review
Modify getTimeRemaining() to Include gameActive Check:
Incorrect values reported when a game is ended early
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.