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
amountToWithdraw
Control: Fully controlled by the caller.
Constraints: N/A.
Impact: The amount of rewards the user intends to claim.
swapData0
Control: Fully controlled by the caller.
Constraints: N/A.
Impact: Information of swapping to token0 during the zap-out operation.
swapData1
Control: Fully controlled by the caller.
Constraints: N/A.
Impact: Information of swapping to token1 during the zap-out operation.
unstakeParams
Control: Fully controlled by the caller.
Constraints: N/A.
Impact: Information of unstake during the zap-out operation.
redeemParams
Control: 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
redeemParams
and prepareredeemParams
to callzapOutNative
.