Function: claimRewardsInToken1(uint256 amountToWithdraw, IZapper.SingleTokenSwap swapData, IZapper.KodiakVaultUnstakingParams unstakeParams, IZapper.VaultRedeemParams redeemParams)
This function allows a user to claim their rewards in token1 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.
swapDataControl: Fully controlled by the caller.
Constraints: N/A.
Impact: Information of swap data during the zap-out operation.
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 callzapOutToToken1.