pump-bonding-curve

Calculate token prices for constant-product bonding curves with fee-aware quotes.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/x402agent/NanoSolana --skill pump-bonding-curve-x402agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pump-bonding-curve
Source: https://github.com/x402agent/NanoSolana/tree/main/pump-fun-sdk-main/skills/pump-bonding-curve
Command: npx skills add https://github.com/x402agent/NanoSolana --skill pump-bonding-curve-x402agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bonding curve module implements and maintains the constant-product AMM math powering Pump token pricing, including buy/sell quoting, fee-aware calculations, market cap computation, reserve management, and edge-case handling for new, active, and migrated curves.

Core Features & Use Cases

  • Bonding curve math using x*y=k with virtual SOL reserves and virtual token reserves for pricing
  • Fee-stripped quotes and tiered-fee handling to prevent dust and mispricing
  • Market-cap based fee tiers and migration to PumpAMM pools upon graduation
  • Clear separation of virtual vs real reserves and safeguards for edge cases

Quick Start

Run a sample buy/sell quote using the bonding curve module to validate correct pricing and fee handling.

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 Pump token prices using a constant-product bonding curve?

Pump token pricing is calculated using the constant-product x*y=k formula, which leverages virtual SOL and virtual token reserves to produce deterministic, fee-aware buy and sell quotes.

How does fee deduction work when quoting buy or sell prices on a Pump bonding curve?

Fee deduction applies a pre-fee stripping mechanism before calculating the final quote, preventing dust accumulation and mispricing while maintaining accurate tiered-fee handling for market-cap based thresholds.

What is the difference between virtual and real reserves in Pump AMM token pricing?

Virtual reserves are used exclusively for constant-product pricing math, while real reserves track actual token balances, ensuring clear separation and safeguards for edge cases in active and migrated curves.

How do I handle market-cap tiering and migration to PumpAMM pools upon graduation?

Market-cap tiering applies graduated fee structures based on total valuation, triggering migration to PumpAMM pools once the bonding curve graduates from its active pricing state.

Can I use BN-based arithmetic for precise quoting in Solana bonding curve environments?

BN-based arithmetic ensures precise constant-product calculations for Solana bonding curves, accurately handling large integer math required for deterministic token pricing and reserve management.

Why does my token pricing quote include dust or mispricing on a Pump bonding curve?

Dust and mispricing occur when fees are not properly stripped before calculating the constant-product quote, which this module prevents by implementing pre-fee deduction and tiered-fee handling.