Potential Out-of-Gas Error Due to Unbounded Loop in Token Whitelist Update
The updateTokenWhiteListed
function processes an array of token addresses without any upper bound check on the array length. This could potentially lead to out-of-gas errors if a very large array is passed, as the gas cost of the transaction would increase linearly with the number of tokens.
Steps to Reproduce:
Call updateTokenWhiteListed
with an extremely large array of token addresses.
Observe that the transaction may fail due to exceeding the block gas limit.
Potential denial of service due to transaction failures for large token lists.
Manual review
Implement a maximum length check for the input 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.