Bonding curve math for Pump.fun SDK — quote, slippage, market cap, graduation progress
Scanned 9/6/2026
Install to Claude Code
npx -y skills add plurigrid/asi --skill pump-bonding-curve --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Pump Bonding Curve?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/plurigrid-pump-bonding-curve)More formats (shields.io, HTML) on the badges page.
---
name: pump-bonding-curve
description: Bonding curve math for Pump.fun SDK — quote, slippage, market cap, graduation progress
type: chain
trit: -1
---
# Pump Bonding Curve
Bonding curve math primitives from the Pump.fun protocol on Solana.
## Trit: -1 (MINUS — Validator)
Validates price quotes and slippage before execution.
## Core Functions
| Function | Returns | Description |
|----------|---------|-------------|
| `getBuyTokenAmountFromSolAmount(global, curve, solAmount)` | `BN` | Tokens received for SOL input |
| `getBuySolAmountFromTokenAmount(global, curve, tokenAmount)` | `BN` | SOL cost for token amount |
| `getSellSolAmountFromTokenAmount(global, curve, tokenAmount)` | `BN` | SOL received for selling |
| `bondingCurveMarketCap(global, curve)` | `BN` | Current market cap in lamports |
| `getGraduationProgress(global, curve)` | `GraduationProgress` | Progress toward AMM migration |
## On-Chain Programs
| Program | ID | Purpose |
|---------|----|---------|
| Pump | `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P` | Bonding curve ops |
| PumpAMM | `pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA` | Graduated AMM pools |
## SDK
```bash
npm install @pump-fun/pump-sdk
```
```typescript
import { PUMP_SDK, getBuyTokenAmountFromSolAmount } from "@pump-fun/pump-sdk";
const global = await sdk.fetchGlobal();
const tokens = getBuyTokenAmountFromSolAmount(global, bondingCurve, solAmount);
```
## GF(3) Triad
```
pump-bonding-curve (-1) ⊗ pump-token-launch (0) ⊗ pump-trading (+1) = 0 ✓
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!