Assessment reports>Yeet>Threat Model>claimRewardsInToken

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

  • amountToWithdraw

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

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

  • outputToken

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

    • Impact: Token to be received after claiming.

  • swap0

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

    • Impact: Information swapping token0 to outputToken.

  • swap1

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

    • Impact: Information swapping token1 to outputToken.

  • 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 zapOut.

Zellic © 2025Back to top ↑