{"uid":"cap_V66ZmnB2r6F4c9sNQBgzs","slug":"il-fee-break-even-calculator-fe053676","name":"IL Fee Break-Even Calculator","description":"Fees needed to offset IL at a price ratio. Call when checking if fee APR can cover expected IL. Returns fee_fraction_needed as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/il-fee-breakeven","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"price_ratio":{"type":"number","description":"New/old price ratio for IL math"}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-il-fee-breakeven/v1","fee_fraction_needed":0.0202041028867288}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BDlLtQbUTF_VQM-iQs2po","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the fee fraction needed to exactly offset impermanent loss at a given price ratio, returning a deterministic break-even value as JSON.","exampleAgentPrompt":"What fee fraction do I need to break even on impermanent loss if the price ratio has moved to 1.4 compared to my entry?","exampleUseCases":[{"title":"Evaluating LP position fee sufficiency","prompt":"My Uniswap LP position has seen the price ratio shift to 1.6 from when I entered — what fee fraction do I need to be earning to fully offset the impermanent loss at that ratio?"},{"title":"Deciding between AMM fee tiers","prompt":"I'm choosing between a 0.05% and 0.3% fee pool on a volatile pair where I expect the price to move to about 2x my entry — which fee tier actually breaks even against the IL, or do I need to calculate the minimum fee fraction first?"},{"title":"Risk check before adding liquidity","prompt":"Before I add liquidity to this pool, can you tell me the fee fraction I'd need to break even on impermanent loss if the price ratio ends up at 0.7 relative to today's price?"}],"resultDescription":"Returns a JSON object containing fee_fraction_needed — the exact fractional fee (as a decimal, e.g. 0.003 for 0.3%) that a liquidity provider would need to earn in order to fully offset impermanent loss at the specified price_ratio. The result is computed deterministically from closed-form IL math with no live data or external calls.","failureModes":["Missing or non-numeric price_ratio input returns a validation error","price_ratio of exactly 1.0 may return 0 (no IL, no fee needed)","Negative or zero price_ratio values are mathematically undefined and will likely error","Payment failure via x402 (insufficient USDC balance or misconfigured payment header) blocks the call","Extreme price ratios (very large or very small) may produce floating-point edge cases"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, closed-form calculation of the fee fraction required to offset IL at a specific price ratio — no RPC node, no live price feed, and no API key required. Ideal for agent workflows that need to make LP risk decisions programmatically without calling an oracle or blockchain node. Prefer this over general DeFi analytics APIs when you only need the break-even fee math and want a lightweight $0.001 microtransaction cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:12:29.062Z","isFirstParty":false}