Assessment reports>Sturdy>Threat Model>setWhitelistedGateway

Function: setWhitelistedGateway(address _gateway, bool _enabled)

This sets the whitelisted gateway.

Inputs

  • _gateway

    • Control: Full.

    • Constraints: Needs to be a valid address.

    • Impact: The Silo Gateway address.

  • _enabled

    • Control: Full.

    • Constraints: N/A.

    • Impact: True if whitelisted gateway --- else false.

Branches and code coverage (including function calls)

Intended branches

  • Admin successfully sets a whitelisted gateway to True.

  • Admin successfully sets a whitelisted gateway to False.

Negative behavior

  • Function reverts if invoked by nonowner.

Zellic © 2025Back to top ↑