Impermanent loss calculator
calc_impermanent_lossRead-only educational calculator. Estimates impermanent loss from initial investment and token price multipliers in a 50/50 constant-product AMM. Returns a result from caller-supplied public inputs without changing page or account state, accessing BetterOff customer data, or providing personalized financial advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| priceChangeA | No | Token A price multiplier — 1.0 = unchanged, 2.0 = doubled, 0.5 = halved. | |
| priceChangeB | No | Token B price multiplier — 1.0 = unchanged, 2.0 = doubled, 0.5 = halved. | |
| initialInvestment | No | Initial capital |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||