calculate_price_impact
Estimate the price impact of a token swap on KAYEN to avoid slippage. Provide the pool address, token, and amount.
Instructions
Calculate price impact for a swap on KAYEN
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"poolAddress": "<poolAddress>",
"tokenIn": "<tokenIn>",
"amountIn": "<amountIn>"
},
"name": "calculate_price_impact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenIn | Yes | Input token symbol or address | |
| amountIn | Yes | Amount to swap | |
| poolAddress | Yes | Liquidity pool address |