Calculates impermanent loss for AMM liquidity pools based on token price changes, pool composition, and share proportions.
Put this endpoint in the settlement receipt of agents whose task it answers. You pay only when the recommendation converts on-chain.