The depositEggToVault function in the EggHuntGame contract allows players to deposit eggs into the vault even after the game has ended.
The depositEggToVault function currently lacks a check to verify whether the game has ended before allowing the deposit of an egg. Specifically, the function does not ensure that the game is still active and within the allowed time frame for deposits.
Players can deposit eggs into the vault after the game has ended, which may not be the intended behavior.
Manual review
Modify the depositEggToVault function to include checks that ensure the game is still active and within the allowed time frame before allowing the deposit of an egg.
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.