Pol::closePot repeatedly calls a storage array's length, costing extra gas.
In src/Pol.sol:
Likelihood:
This will happen every time Pot::closePot is called.
Impact:
The impact is that this for loop will cost extra gas.
We recommend that claimants.length is saved as a local variable within the function Pot::closePot:
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.