pump-bonding-curve

Implement constant-product bonding curve math for Pump token pricing and trading.

113|35|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/nirholas/pump-fun-sdk --skill pump-bonding-curve
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pump-bonding-curve
Source: https://github.com/nirholas/pump-fun-sdk/tree/main/skills/pump-bonding-curve
Command: npx skills add https://github.com/nirholas/pump-fun-sdk --skill pump-bonding-curve

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides the core mathematical logic for pricing Pump tokens on a constant-product bonding curve, enabling accurate buy/sell quotes and market cap calculations.

Core Features & Use Cases

  • Bonding Curve Math: Implements the $x \times y = k$ formula for token pricing.
  • Fee Calculations: Handles fee stripping, tiered fees based on market cap, and creator fees.
  • Reserve Management: Differentiates between virtual and real reserves for accurate trading.
  • Use Case: Calculate the exact amount of SOL needed to buy 1000 tokens, or the SOL received from selling 5000 tokens, considering all applicable fees and the current bonding curve state.

Quick Start

Calculate the SOL output for selling 1000 tokens on the bonding curve.

Frequently Asked Questions about pump-bonding-curve

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate SOL needed to buy Pump tokens on a bonding curve?

To calculate SOL needed for Pump token buys, apply the constant-product AMM bonding curve formula using virtual and real reserves. This Skill computes exact SOL input required for target token amounts, factoring in current curve state and applicable tiered fees.

How does the constant-product AMM bonding curve work for token pricing?

The constant-product bonding curve uses the x * y = k formula to price tokens against SOL reserves. It maintains balanced ratios between virtual and real reserve pools, ensuring price increases as token supply purchased grows along the curve.

Can I compute Pump token market cap and tiered fees during trading?

Yes, you can compute market cap and tiered fees during trading. This Skill calculates market cap from reserve states and handles fee stripping, applying tiered fee structures and creator fees based on specific market cap thresholds.

Does this bonding curve math handle migrated curves and edge cases?

Yes, this bonding curve math handles migrated curves and edge cases. It supports new, active, and migrated curve states with specific reserve management logic to ensure accurate quoting across all pump.fun bonding curve lifecycle phases.

What's the best way to quote SOL output when selling Pump tokens?

The best way to quote SOL output for selling Pump tokens is using fee-aware constant-product AMM calculations. This Skill computes exact SOL received by subtracting applicable tiered fees and adjusting real reserves for the specified sell amount.