Function: redeem(address strategy, uint256 amount, bytes redeemInfo)
This function allows the strategy operator to redeem a specified amount from a strategy back to the vault.
Inputs
strategy
Control: Controlled by the caller with
STRATEGY_OPERATOR_ROLE
.Constraints: None.
Impact: The strategy from which to redeem funds.
amount
Control: Controlled by the caller with
STRATEGY_OPERATOR_ROLE
.Constraints: None.
Impact: The amount to redeem from the strategy.
redeemInfo
Control: Controlled by the caller with
STRATEGY_OPERATOR_ROLE
.Constraints: None.
Impact: Additional data passed to the strategy when redeeming tokens.
Branches and code coverage
Intended branches
Redeems underlying tokens from the given vault.
Negative behavior
Reverts if the caller does not have
STRATEGY_OPERATOR_ROLE
.Reverts if strategy is not in the strategy whitelist.