The gracePeriod
parameter controls how long the current King can hold their throne before another player can claim it. It can be updated by the owner via updateGracePeriod()
and is expected to persist for the duration of the game round.
While updateGracePeriod()
correctly updates the current gracePeriod
, calling resetGame()
resets the gracePeriod
silently back to the original initial value set at contract deployment (initialGracePeriod
). This causes a mismatch between the player's expectations (based on the updated gracePeriod
) and the actual game behavior after reset.
Likelihood:
Occurs whenever the owner updates the grace period during an active round, then ends the round and resets the game.
Impact:
Players relying on the updated grace period might be misled, affecting their strategies.
Gameplay fairness and predictability are compromised.
Could result in users missing winning conditions or unexpected game resets.
After updating the grace period, it works as expected during the round. But when the game is reset, the grace period silently reverts to the original value. This mismatch can confuse users and affect gameplay.
Synchronize updates to initialGracePeriod
inside updateGracePeriod()
so that resetting the game preserves the updated value:
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.