There is no need to send an amount=0 token to an address. Check if the percentage[i] is 0 first, and if it is, skip sending tokens and it can save some gas.
https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/Distributor.sol#L146
Waste gas
Manual review
Check if the percentage[i] is 0 first, and if it is, skip sending tokens and it can save some gas.
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.