In the constructor of the ProxyFactory contract, if _whitelistedTokens is extensive, the loop processing it could consume excessive gas, potentially exceeding the block's gas limit.
If the gas limit is surpassed, the constructor will fail to execute, impeding the deployment of the contract.
Deploy the ProxyFactory contract.
Use an extremely large _whitelistedTokens array as input to the constructor.
Attempt to deploy the contract, and the deployment fail due to surpassing the gas limit.
For scenarios where _whitelistedTokens could be large, consider breaking down the array processing into smaller chunks or optimize the code to mitigate gas consumption and prevent exceeding the gas limit.
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.