The _distribute() function contains redundant verification, which is not necessary.
Upon invocation of the _distribute() function, the initial iteration checks if token == address(0)
. If this condition is met, the function reverts. Subsequently, the !_isWhiteListed(token)
function is called to verify if the token is whitelisted. Concurrently, within the ProxyFactory constructor, the condition _whitelistedTokens[i] == address(0)
.
It's rendundant.
Manual code review
Remove the verification process, and note that the condition 'token == address(0)' is not permissible.
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.