Assessment reports>Rainmaker>Threat Models>withdrawAll

Function: withdrawAll(uint8 _index)

Allows to withdraw all staked tokens.

Inputs

  • _index

    • Control: Full.

    • Constraints: Needs to be inside the bounds of underlyingTokenAddresses.

    • Impact: The underlying token.

Branches and code coverage (including function calls)

Intended branches

  • Successfully withdraws all staked tokens.

Negative behavior

  • Reverts when _index is out of bounds.

  • Reverts when strategyStakers[msg.sender].amount is equal to 0.

Zellic © 2024Back to top ↑