tapp_swap_stable
Facilitate token swaps within Stable pools on Tapp Exchange by specifying pool address, input/output token indices, amount, and minimum output. Optimizes trading operations on Aptos blockchain.
Instructions
Execute a swap on a Stable pool
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amountIn | Yes | The input token amount for the swap | |
minAmountOut | Yes | The minimum amount of output tokens | |
poolId | Yes | The address of the Stable pool | |
tokenIn | Yes | The index of the token to swap from | |
tokenOut | Yes | The index of the token to swap to |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"amountIn": {
"description": "The input token amount for the swap",
"type": "number"
},
"minAmountOut": {
"description": "The minimum amount of output tokens",
"type": "number"
},
"poolId": {
"description": "The address of the Stable pool",
"type": "string"
},
"tokenIn": {
"description": "The index of the token to swap from",
"type": "number"
},
"tokenOut": {
"description": "The index of the token to swap to",
"type": "number"
}
},
"required": [
"poolId",
"tokenIn",
"tokenOut",
"amountIn",
"minAmountOut"
],
"type": "object"
}