Process to find the duplicate players in function enterRaffle
is not gas efficient, it has O(n^2) time complexity which is quite slow. As more players are added in players
variable, more gas it will take to execute the whole function. At one point, the rewards will not be able to match the gas cost of this function due to which no new player will be interested to participate in PuppyRaffle
. Hence, resulting in Denial of Service.
Players/Users will not be able to participate in PuppyRaffle
due to high gas costs.
Manual Review
Initiate a mapping to record the players which can be checked in O(n) time complexity.
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.