tapp_swap_clmm
Perform a token swap on a Concentrated Liquidity Market Maker (CLMM) pool using specified input amount, minimum output, direction, and target price. Execute trades efficiently within the Tapp Exchange ecosystem.
Instructions
Execute a swap on a CLMM (Concentrated Liquidity Market Maker) pool
Input Schema
Name | Required | Description | Default |
---|---|---|---|
a2b | Yes | Direction of the swap; true for token A to B, false for B to A | |
amountIn | Yes | The input token amount for the swap | |
fixedAmountIn | No | Indicates whether amountIn is fixed (defaults to true) | |
minAmountOut | Yes | The minimum acceptable output amount | |
poolId | Yes | The address of the CLMM pool | |
targetSqrtPrice | Yes | The target square root price |