{"uid":"cap_2ESM8rPUNxtboxysz23s8","slug":"ozmium-aerodrome-remove-liquidity-calldata-60d82dad","name":"Ozmium Aerodrome Remove Liquidity Calldata","description":"Aerodrome removeLiquidity calldata. POST /v1/tx/lp/aero/remove { owner, liquidity, pool?, minOz?, minUsdc?, slippagePct? }. Pass `pool` to have the LP-token approve step prepended; liquidity is the atomic LP amount to burn.","url":"https://ozmium.org/v1/tx/lp/aero/remove","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"to":{"type":"string"},"data":{"type":"string"},"value":{"type":"string"}}}},"network":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yR-haM29L4lp0BRjidbY9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates calldata to remove liquidity from an Aerodrome vAMM OZ/USDC pool, optionally prepending an LP-token approve step.","exampleAgentPrompt":"Build me the calldata to remove 5000000 atomic LP units of my Aerodrome OZ/USDC position — my wallet is 0xAbc...123, include the LP token approve step for pool 0xDef...456, and use 1% slippage.","exampleUseCases":[{"title":"Full exit from Aerodrome LP position","prompt":"I want to pull all 12000000 atomic LP tokens out of the Aerodrome OZ/USDC pool — my address is 0xAbc...123, pool is 0xDef...456, set slippage to 0.5% and include the approve step."},{"title":"Partial withdrawal with minimum output protection","prompt":"Generate the transaction to remove 3000000 LP units from my Aerodrome OZ/USDC position at 0xOwner...789 — I need at least 150 OZ and 200 USDC back, so set minOz to 150000000 and minUsdc to 200000000."},{"title":"Automated LP exit in a DeFi rebalancing workflow","prompt":"My rebalancing bot needs to exit the Aerodrome vAMM position: owner 0xBot...321, burn 8000000 LP tokens from pool 0xPool...654, use 2% slippage tolerance and prepend the approve calldata."}],"resultDescription":"An ordered array of transaction steps, each containing a `to` address, `data` hex string (calldata), and `value` (ETH), plus a `network` identifier — ready to sign and broadcast to Base. If `pool` is supplied, the first step is the LP-token ERC-20 approve, followed by the removeLiquidity call.","failureModes":["Insufficient liquidity amount — LP amount exceeds balance held by owner","Missing required owner field — returns 400 validation error","Slippage too tight — minOz or minUsdc values conflict with pool reserves, causing revert on-chain","Invalid pool address — unrecognized or non-Aerodrome pool returns error","Payment failure — x402 USDC payment not attached or insufficient, returns 402"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically exit an Aerodrome vAMM OZ/USDC LP position on Base and requires ready-to-sign calldata rather than constructing the ABI encoding manually. It is ideal when you also need the LP-token approve prepended in a single atomic calldata bundle. Prefer this over generic DEX exit tools when the position is specifically in Aerodrome's vAMM and the OZ/USDC pair.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:51:17.220Z","isFirstParty":false}