Function: setDepositCap(uint256 newCap)
This function updates the maximum total principal the vault will accept during the Deposit phase — only callable by ADMIN_ROLE holders.
Inputs
newCapControl: N/A.
Constraints: Must be nonzero and at least
totalSupply().Impact: Defines how much additional liquidity (if any) can be accepted before the cap is hit.
Branches and code coverage
Intended branches
Update the
_depositCapwith the new cap.
Negative behavior
Non-admin callers or calls outside Deposit mode revert.
Revert if the new cap is zero or less than the current supply.
Function call analysis
None.