Assessment reports>Stable Predeposit>Threat Model>setBridgeContract

Function: setBridgeContract(address newBridgeContract)

This function registers or updates the bridge contract permitted to initiate withdrawals and redemptions on behalf of users — only callable by ADMIN_ROLE holders.

Inputs

  • newBridgeContract

    • Control: N/A.

    • Constraints: Must be nonzero.

    • Impact: Updates the _bridgeContract state variable.

Branches and code coverage

Intended branches

  • Update the _bridgeContract with the new bridge contract address.

Negative behavior

  • Non-admin callers or calls outside Withdraw mode revert.

  • Revert if the new bridge contract address is the zero address.

Function call analysis

  • None.

Zellic © 2025Back to top ↑