liquidity_exit_cost
Size-aware exit cost, depeg risk, and liquidity fragility for a token on Base. Given a token and a sell size, returns the realized cost of exiting (price impact + fee, in bps and units), the best route across venues, an aggregated fragility score, and — for pegged assets — a depeg-risk score. Computed deterministically from on-chain AMM state, so the result is reproducible and auditable. Three tiers by compute depth (default 'risk'): 'quote' = best-route exit cost for one size; 'risk' = exit cost + fragility (+ depeg for pegged tokens); 'deep' = adds a multi-size exit-cost curve, max-size-before-cost thresholds, and an internal cross-check. Pricing per call (USDC): quote = $0, risk = $0, deep = $0. Status: testnet/preview — payment runs over the x402 HTTP surface, not this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | No | Optional: restrict the computation to a single pool id. | |
| size | Yes | Sell size in human token units (> 0). | |
| tier | No | Pricing/compute tier. 'quote' = best-route exit cost only; 'risk' (default) adds fragility + depeg; 'deep' adds a multi-size exit-cost curve and cross-check. | risk |
| token | Yes | Token symbol/address to exit (sell), e.g. 'WETH'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| tier | Yes | ||
| depeg | No | ||
| route | Yes | ||
| token | Yes | ||
| network | Yes | testnet | mainnet | |
| exit_cost | Yes | ||
| fragility | No | ||
| cross_check | No | ||
| exit_cost_curve | No | ||
| max_size_before_cost | No |