Function: zapInToken1(SingleTokenSwap swapData, KodiakVaultStakingParams stakingParams, VaultDepositParams vaultParams)
This zaps into the vault using token1 — swaps token1 for token0.
Inputs
swapData
Control: Fully controlled by the caller.
Constraints: N/A.
Impact: Information of swapping token1 to token0.
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.