The ProxyFactory::constructor
of the contract does not prevent duplicate addresses of ERC20 tokens.
The constructor of the ProxyFactory contract initializes the _whitelistedTokens
array without verifying the presence of duplicate addresses.
This absence of validation in the initialization process may lead to unintended behavior or misuse.
This could result in incorrect functionality or unexpected behavior when Distributor::_distribute
funtion check _isWhiteListed
token of the contract and also the totalAmount
of the erc20 token.
Manual Review
It is recommended to implement checks within the constructor to ensure that only unique addresses are added to relevant data structures. By verifying the uniqueness of addresses during initialization, the contract can operate as intended and reduce the risk of undesirable consequences.
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.