LOW-5: The refund function takes "uint256 playerIndex" as a parameter. The index can however be larger than the current length of the players array.
Accessing an index out of the range of the array length may result in the failure of the transaction.
User experience
Static analysis, local testing
Add a "require" statement checking that the playerIndex value is smaller than the length of the array.
"require(playerIndex < players.length, "PuppyRaffle: The index is out of scope of the array");"
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.