Assessment reports>Omron>Threat Model>addWhitelistedToken

Function: addWhitelistedToken(address _tokenAddress)

This function is used to add a new deposit token to the contract.

Inputs

  • _tokenAddress

    • Control: Arbitrary.

    • Constraints: Not zero address.

    • Impact: Address of the token to be added.

Branches and code coverage

Intended branches

  • Updates the whitelistedTokens mapping.

Negative behavior

  • Reverts if the token address is zero.

  • Reverts if the caller is not the owner.

Zellic © 2025Back to top ↑