The claimThrone()
function should only allow a new player to claim the throne after the grace period has not passed since the last claim. This gives the current king a fair chance to remain king if no one challenges them during the Graceperiod.
Problem: The function does not check whether the grace period has expired. As a result, a new player can claim throne even after the graceperiod ends after the lastclaimTime
.
Likelihood:
This will occur every time someone calls claimThrone()
immediately after another claim, without waiting for the grace period to expire.
Impact:
Undermines the core mechanic of the game by removing the “GracePeriod
" time check.
Players have option to claim throne whenever they want.
The follwoing POc demonstarte that due to the absence of the timecheck the player2 had the ability to call the claimThrone() even after the GracePeriod ends.
By adding the check on time , the msiuse of the claimThron() can be mitigated.
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.