{"uid":"cap_fZmV8oKRKTisB3vbe_c3B","slug":"constant-product-amm-swap-output-estimator-base-100-rebase-report-eb2af1bf","name":"Constant-Product AMM Swap Output Estimator — Base-100 Rebase Report","description":"Constant-product swap output estimate — Base-100 rebase report: Base-100 rebase report for Constant-product swap output estimate. Supplied token observations only. Deterministic calculation or caller-threshold verdict, not a live scan, safety proof or trade recommendation. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded base-100 rebase report report.","url":"https://market.datapackvibe.com/x402/assistant-bx-token-cp-output-index?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["input_reserve","output_reserve","input_tokens","fee_percent"],"properties":{"fee_percent":{"type":"number","default":0.3,"maximum":100,"minimum":0},"input_tokens":{"type":"number","default":100,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0},"input_reserve":{"type":"number","default":10000,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0},"output_reserve":{"type":"number","default":20000,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0}},"additionalProperties":false},"default":[{"fee_percent":0.3,"input_tokens":100,"input_reserve":10000,"output_reserve":20000},{"fee_percent":0.33,"input_tokens":110.00000000000001,"input_reserve":11000,"output_reserve":22000},{"fee_percent":0.3,"input_tokens":100,"input_reserve":10000,"output_reserve":20000},{"fee_percent":0.33,"input_tokens":110.00000000000001,"input_reserve":11000,"output_reserve":22000}],"maxItems":200,"minItems":2},"base_index":{"type":"integer","default":0,"maximum":199,"minimum":0}}},"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_VT-jPU9rv6ohv34VvC8RG","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":"Calculates estimated token output for constant-product AMM swaps across multiple pool scenarios, rebased to a base-100 index for relative comparison.","exampleAgentPrompt":"Estimate the swap output for trading 100 tokens into a pool with 10,000 input reserve and 20,000 output reserve at a 0.3% fee, and also run a second scenario with 110 tokens, 11,000 input reserve, 22,000 output reserve at 0.33% fee — rebase both results to the first scenario as the base-100 index.","exampleUseCases":[{"title":"Compare swap efficiency across fee tiers","prompt":"I want to compare swap outputs across three AMM pool scenarios: first, swap 500 tokens into a pool with 50,000 input reserve and 100,000 output reserve at 0.3% fee; second, same swap but at 0.25% fee; third, at 0.5% fee. Rebase everything to the first scenario as index 100 so I can see how the fee tier affects my output."},{"title":"Evaluate liquidity depth impact on output","prompt":"Can you calculate how many tokens I'd get swapping 1,000 tokens in a constant-product pool, comparing a shallow pool (5,000 input / 10,000 output) vs a deep pool (500,000 input / 1,000,000 output), both at 0.3% fee? Use the shallow pool as the base-100 reference so I can see the liquidity depth advantage."},{"title":"Baseline swap estimate for a DEX routing decision","prompt":"Give me a constant-product swap output estimate for trading 250 tokens into a pool with 25,000 input reserve and 75,000 output reserve at a 0.3% fee, plus a second row with 300 tokens and 30,000/90,000 reserves at the same fee — rebase to row 0 as the baseline index."}],"resultDescription":"Returns a base-100 rebased report comparing the estimated token outputs across the submitted swap scenarios. Each row contains the calculated output tokens (after fee deduction using the constant-product formula x*y=k) and an index value relative to the designated base scenario, enabling proportional comparison of swap efficiency across different pool states and fee tiers.","failureModes":["Input reserve or output reserve of zero (exclusiveMinimum enforced — will reject zero values)","Fewer than 2 rows submitted (minItems:2 required)","More than 200 rows submitted (maxItems:200 limit)","base_index pointing to a row index that doesn't exist in the rows array","fee_percent outside 0-100 range","input_tokens of zero or negative (exclusiveMinimum enforced)","Non-numeric values in numeric fields"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, formula-based calculation of constant-product AMM swap outputs (x*y=k) across multiple scenarios with comparative base-100 indexing. Ideal for batch comparison of pool configurations, fee tiers, or trade sizes without needing a live blockchain connection. Not suitable for real-time on-chain price feeds, live slippage data, trade execution, or safety/MEV analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:52:41.391Z","isFirstParty":false,"canonicalSlug":"constant-product-amm-swap-output-estimator-base-100-rebase-report-eb2af1bf"}