Assessment reports>StaFi>Threat Models>approveForStakeManager

Function: approveForStakeManager(address _erc20TokenAddress, uint256 amount)

Increase allowance of the specified token for the stake manager.

Inputs

  • _erc20TokenAddress

    • Control: Fully controlled by the stake manager.

    • Constraints: None.

    • Impact: The token to increase allowance for.

  • amount

    • Control: Fully controlled by the stake manager.

    • Constraints: None,

    • Impact: The amount to increase allowance by.

Branches and code coverage (including function calls)

Intended branches

  • Increase allowance of the specified token for the stake manager.

Negative behavior

  • Should not allow anyone other than the stake manager to call it. Ensured through onlyStakeManager.

Zellic © 2024Back to top ↑