Assessment reports>Stable Predeposit>Threat Model>setDepositCap

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

  • newCap

    • Control: 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 _depositCap with 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.

Zellic © 2025Back to top ↑