Bonding Curve
workflow.run_bonding_curvePump.fun-style bonding curve calculator: exact tokens received for a buy, price impact, and graduation progress. Pure constant-product math (Uniswap V2 style) using pump.fun's official virtual-reserve constants: no live lookup needed, works for any token still on the curve (not yet graduated to a real AMM pool). Use when user asks "how many tokens do I get buying X SOL on this curve?" or "will this buy graduate the token?". Returns: tokensOut, priceImpactPct, progressPctBefore/After, willGraduate, partialFill (true if the buy exceeds remaining curve capacity).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| solToSpend | Yes | SOL amount for this buy | |
| solRaisedSoFar | Yes | SOL already raised on the curve so far (0 for a brand-new token) |