Prepare an Aerodrome v2 liquidity withdrawal
prepare_aerodrome_liquidity_withdrawPrepare a v2 removeLiquidity that burns LP tokens back into the underlying pair, with the LP-token approval the router needs and an allowance cleanup after. Phased, because the token being approved is the pool and this server resolves Aerodrome addresses by reading them: call it without lp_token to get the pool read back, then again with the resolved address for the complete atomic plan. An LP balance short of the requested liquidity usually means the rest is staked in the gauge and needs unstaking first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | Yes | address | |
| stable | Yes | Stable (true) or volatile pool | |
| token_a | Yes | address | |
| token_b | Yes | address | |
| chain_id | Yes | Base (8453) only | |
| deadline | Yes | Near-term unix timestamp; a past one makes the plan revert (positive decimal integer) | |
| lp_token | No | Pool address from this tool's first-phase read; omit to get that read, supply it for the full plan | |
| liquidity | Yes | Exact LP token amount to burn in base units (positive decimal integer) | |
| recipient | No | Defaults to sender (address) | |
| amount_a_min | Yes | Minimum token_a base units to receive (positive decimal integer) | |
| amount_b_min | Yes | Minimum token_b base units to receive (positive decimal integer) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execution_plan_reference | No | artifact_reference; pass unchanged |