Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low
Valid

whitelistedTokens cannot be modified again

Summary

whitelistedTokens cannot be modified again

Vulnerability Details

whitelistedTokens can only be assigned in the constructor, and cannot be modified, deleted or added

constructor(address[] memory _whitelistedTokens) EIP712("ProxyFactory", "1") Ownable() {
if (_whitelistedTokens.length == 0) revert ProxyFactory__NoEmptyArray();
for (uint256 i; i < _whitelistedTokens.length;) {
if (_whitelistedTokens[i] == address(0)) revert ProxyFactory__NoZeroAddress();
whitelistedTokens[_whitelistedTokens[i]] = true;
unchecked {
i++;
}
}
}

Impact

whitelistedTokens cannot be modified again

Tools Used

vscode

Recommendations

It is recommended to add the corresponding modification function

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.