Assessment reports>Yeet>Threat Model>claimRewardsInToken1

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

  • amountToWithdraw

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

    • Impact: The amount of rewards the user intends to claim.

  • swapData

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

    • Impact: Information of swap data 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 prepare redeemParams to call zapOutToToken1.

Zellic © 2025Back to top ↑