Function: withdrawAll(uint8 _index)
Allows to withdraw all staked tokens.
Inputs
_indexControl: 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
_indexis out of bounds.Reverts when
strategyStakers[msg.sender].amountis equal to0.