Assessment reports>STFX>Threat Models>addPlugin

Function: addPlugin(address _plugin, bool _isPlugin)

Whitelists or blacklists a given address as a plugin, granting it access to open and close spots, plus transfer tokens to itself. Only callable by the contract owner.

Inputs

  • _plugin

    • Control: Full.

    • Constraints: Nonzero address.

    • Impact: Address of the plugin to whitelist or blacklist.

  • _isPlugin

    • Control: Full.

    • Constraints: Bool.

    • Impact: The whitelist status to set.

Branches and code coverage (including function calls)

Intended branches

  • Whitelist address.

  • Blacklist address.

Negative behavior

  • Zero address.

Zellic © 2024Back to top ↑