code-423n4 / 2022-05-cudos-findings

1 stars 0 forks source link

QA Report #124

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

QA (LOW - NON-CRITICAL)

function manageWhitelist(
        address[] memory _users,
        bool _isWhitelisted
        ) public onlyWhitelisted {
         for (uint256 i = 0; i < _users.length; i++) {
            require(
                _users[i] != address(0),
                "User is the zero address"
            );
            whitelisted[_users[i]] = _isWhitelisted;
        }
        emit WhitelistedStatusModified(msg.sender, _users, _isWhitelisted);
    }