impermanent loss
buscalc_chain_impermanent_lossImpermanent loss for a 50/50 constant-product pool: IL = 2*sqrt(r)/(1+r) - 1 where r is the price ratio change; compares LP vs holding, adds simple fee income, and gives the break-even fee APR. Put tool fields inside inputs. Supply units or modelVersion only when listed in inputSchema. Follow its required fields and exact choices. Do not pass the REST calculator field inside MCP arguments.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputs": {
"price_change_pct": 300
}
},
"name": "buscalc_chain_impermanent_loss"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | ||
| modelVersion | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | ||
| inputs | Yes | ||
| receipt | Yes | ||
| results | Yes | ||
| sourceURL | Yes | ||
| calculator | Yes | ||
| modelVersion | Yes |