Add Liquidity
1. Add Liquidity
Method 1: calculateAddLiquidityInfo
calculateAddLiquidityInfointerface CalculateAddLiquidityOption {
pool_id: string // Pool ID
amount_a: string // Amount of token A to add
amount_b: string // Amount of token B to add
active_id: number // Current active bin ID
bin_step: number // Bin step size
lower_bin_id: number // Lower bound of bin range
upper_bin_id: number // Upper bound of bin range
active_bin_of_pool?: { // Active bin amounts (if active bin is in range)
amount_a: string
amount_b: string
}
strategy_type: StrategyType // Liquidity strategy (Spot, BidAsk, Curve)
}Method 2: addLiquidityPayload
addLiquidityPayload2. Important Parameter Notes:
1. Spot Strategy
2. BidAsk Strategy
3. Curve Strategy
3. Add Liquidity with Fixed Amount
4. Add Liquidity with Price
Last updated