[I-3] Unnecesary usage of nonReentrant
modifier at Game::claimThrone
.
The Game::claimThrone
payable function is used to pay the claimFee
in order to become the currentKing
of the actual round.
Likelihood: Low
Reason 1 : Generally there is no need to use the nonReentrant
modifier on a function that only deposits ETH, as long as it does not make any external calls.
Impact: Low
Impact 1: This function does not make any external calls and can be safely called without the nonReentrant
modifier.
The function is written as follow:
Since this function does not make any external call, it will just receive the claimFee
which is the msg.value
in ETH directly to the contract, there is no need for the nonReentrant
modifier in it.
Remove the nonReentrant
modifier from the Game::claimThrone
funtion.
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.