Assessment reports>STFX>Threat Models>changeBaseToken

Function: changeBaseToken(address _baseToken, bool _isBaseToken)

Updates the whitelist of eligible base tokens that can be used in a spot. Can only be set by the owner of the Spot contract, which is a multi-sig.

Due diligence must be used to make sure these tokens do not introduce vulnerabilities.

Inputs

  • _baseToken

    • Control: Full.

    • Constraints: Nonzero.

    • Impact: Whitelists or blacklists a given token address for use in spots.

  • _isBaseToken

    • Control: Full.

    • Constraints: Bool.

    • Impact: Decides whitelist status.

Branches and code coverage (including function calls)

Intended branches

  • Whitelist token.

  • Blacklist token.

Negative behavior

  • Zero address.

Zellic © 2024Back to top ↑