Function: batchSetKycStatus(address[] users, bool status)
This function marks up to 100 users as KYC-approved (or revokes approval) in a single transaction, adjusting pool accounting as each user flips status. It is only callable by ADMIN_ROLE holders in the KYC phase.
Inputs
usersControl: N/A.
Constraints: Array must be nonempty, length <=
MAX_KYC_BATCH_SIZE, and should contain no zero addresses.Impact: Each user’s shares move between the non-KYC and KYC accounting pools via
_setKycStatusWithAccounting.
statusControl: N/A.
Constraints: N/A.
Impact: Determines the new status of the batch of users.
Branches and code coverage
Intended branches
Update the
_kycStatuswith the new status.Reverts on empty batches or if the size exceeds
MAX_KYC_BATCH_SIZE.Zero addresses inside the batch revert with
ZeroAddress.
Negative behavior
Non-admin callers revert.
Function call analysis
None.