Understanding Token Deposit Ratio
This guide outlines the token Deposit ratio, how to find it, and how to reach there with a single token
Overview
Core Concepts
Depositing with Both Tokens
function getMintAmounts(
uint256 amount0Max,
uint256 amount1Max
) external view returns (
uint256 amount0,
uint256 amount1,
uint256 mintAmount
)Finding Deposit Ratio and Swap Data for Zaps
Step 1 - Finding the correct ratio of tokens to deposit
Step 2 - We get the swap price of inputToken -> OutputToken from the Swap router(KodiakRouter)
Step 3 - Calculate the swap amount based on the information from step 1 and step 2
4. Get Final Swap Data
Last updated