{"uid":"cap_aqrmnN6yFHNK7ZrjCxNJL","slug":"api-x402node-dev-d2e13a11","name":"x402node LP Math — Uniswap V2 & Aerodrome Position Calculator","description":"Uniswap V2 and Aerodrome LP position math on Base: underlying token amounts, pool share, current value, and impermanent loss versus holding. Give a pool address plus your LP amount or wallet. Search terms: LP position value, impermanent loss calculator, liquidity pool share, Aerodrome, Uniswap V2, AMM math.","url":"https://api.x402node.dev/chain/lp-math","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"lp":{"type":"string","description":"Lp (optional)"},"pair":{"type":"string","description":"Price pair e.g. ETH-USD (optional)"},"pool":{"type":"string","description":"Pool (optional)"},"entry":{"type":"string","description":"Entry (optional)"},"wallet":{"type":"string","description":"Wallet (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.08","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.08/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ek5loAGO3nLX-YL9e1WYu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.08","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes underlying token amounts, pool share, current USD value, and impermanent loss for a Uniswap V2 or Aerodrome LP position on Base, given a pool address and LP token amount or wallet address.","exampleAgentPrompt":"For the Aerodrome pool at 0xAbCd...1234 on Base, I have 50 LP tokens — can you work out how much of each token I'm holding, what share of the pool that is, the current USD value, and how much impermanent loss I've taken versus if I'd just held the two tokens?","exampleUseCases":null,"resultDescription":"Returns the breakdown of underlying token amounts (token0 and token1), the wallet's fractional share of the pool, the current total USD value of the position, and the impermanent loss expressed as a percentage or dollar amount relative to a simple hold strategy.","failureModes":["Invalid or non-existent pool address returns an error or empty result","Pool address is for an unsupported AMM protocol (not Uniswap V2 or Aerodrome)","LP amount of zero or negative value triggers validation error","On-chain RPC failure or Base network congestion causes timeout","Wallet address provided has no LP tokens in the specified pool, returning zero position"],"whenToPreferThis":"Use this endpoint when you need precise on-chain AMM math for Uniswap V2 or Aerodrome pools specifically on the Base network, including impermanent loss computation — especially when you want a single call to return token amounts, pool share, USD value, and IL in one response rather than piecing together multiple on-chain reads yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:58:53.179Z","isFirstParty":false}