Function: claimRewardsInNative(uint256 amountToWithdraw, IZapper.SingleTokenSwap swapData0, IZapper.SingleTokenSwap swapData1, IZapper.KodiakVaultUnstakingParams unstakeParams, IZapper.VaultRedeemParams redeemParams)
This function allows a user to claim their rewards in native Ethereum 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.
swapData0Control: Fully controlled by the caller.
Constraints: N/A.
Impact: Information of swapping to token0 during the zap-out operation.
swapData1Control: Fully controlled by the caller.
Constraints: N/A.
Impact: Information of swapping to token1 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 callzapOutNative.