Game::claimThrone
Ended but still can use Game::claimThrone
, make the protocol unreliableIn readme.md said Cannot claim if the game has ended.
But if the period of game already ended, it should be finish and no one should be able to claimThrone
anymore. This make the protocol limit the time of the game so the game can be finished.
As shown on the code below, there is no checking the time bound to this period of game
Likelihood:
This will occur very likely , because anyone can do it.
Impact:
This can make the protocol break
The period of game has already finished
There's player who want to jjoin the game and use th Game::claimThrone()
The period of game is changing and the game started again
Please place this code on the Game.t.sol.
Please add the require
statement to check if the period of the game has been expired or not.
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.