Function: claimRewardsInToken(uint256 amountToWithdraw, address outputToken, IZapper.SingleTokenSwap swap0, IZapper.SingleTokenSwap swap1, IZapper.KodiakVaultUnstakingParams unstakeParams, IZapper.VaultRedeemParams redeemParams)
This function allows a user to claim their rewards in outputToken by performing a zap-out operation.
Inputs
amountToWithdrawControl: Fully controlled by the caller.
Constraints: N/A.
Impact: The amount of rewards the user intends to claim.
outputTokenControl: Fully controlled by the caller.
Constraints: N/A.
Impact: Token to be received after claiming.
swap0Control: Fully controlled by the caller.
Constraints: N/A.
Impact: Information swapping token0 to outputToken.
swap1Control: Fully controlled by the caller.
Constraints: N/A.
Impact: Information swapping token1 to outputToken.
unstakeParamsControl: Fully controlled by the caller.
Constraints: N/A.
Impact: Information of unstake during the zap-out operation.
redeemParamsControl: Fully controlled by the caller.
Constraints: N/A.
Impact: Information of redeem during the zap-out operation.
Branches and code coverage
Intended branches
Verify amount and
redeemParamsand prepareredeemParamsto callzapOut.