Assessment reports>Stable Predeposit>Threat Model>setTreasuryAddress

Function: setTreasuryAddress(address newTreasury)

This function updates the destination address for treasury operations — only callable by ADMIN_ROLE holders.

Inputs

  • newTreasury

    • Control: N/A.

    • Constraints: Must be nonzero.

    • Impact: Updates the _treasuryAddress state variable.

Branches and code coverage

Intended branches

  • Update the _treasuryAddress with the new treasury address.

Negative behavior

  • Non-admin callers revert.

Function call analysis

  • None.

Zellic © 2025Back to top ↑