Assessment reports>Yeet>Threat Model>zapInNative

Function: zapInNative(SingleTokenSwap swapData0, SingleTokenSwap swapData1, IZapper.KodiakVaultStakingParams stakingParams, IZapper.VaultDepositParams vaultParams)

This function zaps into the vault using native tokens to swap with token0 and token1.

Inputs

  • swapData0

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

    • Impact: Information of swapping native token to token0.

  • swapData1

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

    • Impact: Information of swapping native token to token1.

  • stakingParams

    • Control: Fully controlled by the caller.

    • Constraints: stakingParams.kodiakVault must be whitelisted.

    • Impact: Information of staking in the vault.

  • vaultParams

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

    • Impact: Information of depositing into the vault.

Branches and code coverage

Intended branches

  • Check if stakingParams.kodiakVault is added in the whitelist.

Negative behavior

  • stakingParams.kodiakVault is not in the whitelist.

Zellic © 2025Back to top ↑