Function: compound(uint256 start, uint256 end)
This is a utility function for compounding a range of users. Replicates the range logic from allUsers(start, end). This is an admin-only function.
Inputs
startControl: Fully controllable by the admin.
Constraints: Should be less than
endand strictly less than the length of theusersset.Impact: The index of the first address to include in the compound.
endControl: Fully controllable by the admin.
Constraints: Should be larger than
startand up to the length of theusersset.Impact: The index to stop at (and not include) when compounding.
Branches and code coverage
Intended branches
Called by admin for a single user.
Called by admin with >1 users.
Negative behavior
Called by non-admin.
Called with invalid indexes or
start>end.