Assessment reports>Staking>Threat Model>setDepositToken

Function: setDepositToken(address _depositToken, bool _isDepositToken)

Adds/removes a token from the deposit token whitelist.

Inputs

  • _depositToken

    • Control: Fully controlled by the owner.

    • Constraints: None.

    • Impact: Whitelists/unwhitelists the specified token for staking.

  • _isDepositToken

    • Control: Fully controlled by the owner.

    • Constraints: None.

    • Impact: Sets the isDepositToken flag to the specified value for the specified token.

Branches and code coverage (including function calls)

Intended branches

  • Sets the isDepositToken flag to the specified value for the specified token.

Negative behavior

  • Assumes there are no disruptive side effects. Currently, if isDepositToken is set to false for a token that has already been staked, the staked amount will be lost. However, the users can still claim their rewards.

  • Should not be callable by anyone other than the owner.

Zellic © 2024Back to top ↑