Calculations
Calculate token pair amounts for create pool and open position
Computes the required token amounts for creating a pool and opening an initial position.
Configuration index
16Input token amount
1Whether token 0 is the base token
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vEs9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYBOpening time (Unix timestamp)
1710326400Price value
1Slippage in basis points
50Lower price boundary
0.9Upper price boundary
1.1EQdJjaPwUL6X3GjUp3ZQ1T3QA4XL9g9v3Z6rSUMGALMtWhether to include metadata
Compute pair amount
Internal server error.
Calculate token pair amounts for decreasing liquidity
Computes the token amounts that will be withdrawn when removing liquidity from a position.
AMM configuration index
6Input token amount
1Whether token 0 is the base token
First pool token address
ATLASXmbPQxBUYbxPsV97usA3fPQYEqzQBUHgiFCUsXxSecond pool token address
Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYBLower tick index
-112059Upper tick index
-109986User wallet address
EQdJjaPwUL6X3GjUp3ZQ1T3QA4XL9g9v3Z6rSUMGALMtCompute pair amount decrease liquidity
Internal server error.
Calculate token pair amounts for increasing liquidity
Computes the required token amounts for adding liquidity to an existing position.
AMM configuration index
6Input token amount
100Whether token 0 is the base token
First pool token address
ATLASXmbPQxBUYbxPsV97usA3fPQYEqzQBUHgiFCUsXxSecond pool token address
Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYBSlippage in basis points
50Lower tick index
-112059Upper tick index
-109986User wallet address
EQdJjaPwUL6X3GjUp3ZQ1T3QA4XL9g9v3Z6rSUMGALMtCompute pair amount increase liquidity
Internal server error.
Calculate token pair amounts for opening position
Computes the required token amounts for opening a liquidity position in an existing pool.
AMM configuration index
3Input token amount
1Whether token 0 is the base token
First pool token address
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vSecond pool token address
Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYBLower price boundary
2Upper price boundary
3Compute pair amount only position
Internal server error.
Calculate output amount for swap
Computes the expected output token amount for a given input amount in a swap.
AMM configuration index
16Token amount
1000000Input token mint address
ATLASXmbPQxBUYbxPsV97usA3fPQYEqzQBUHgiFCUsXxOutput token mint address
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vSlippage in basis points
50User wallet address
EQdJjaPwUL6X3GjUp3ZQ1T3QA4XL9g9v3Z6rSUMGALMtCompute pair amount for swap
Internal server error.
Last updated