pump-fee-system

Calculate tiered protocol and creator fees for Pump trades with ceiling division.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Pump fee system must reliably compute and route multiple fee types (protocol, creator, LP) across tiered market-cap based configurations, ensuring dust-safe arithmetic and correct vault routing.

Core Features & Use Cases

  • Tiered fee calculation based on market cap and protocol configuration
  • Creator fee collection routed to the creator vaults in both Pump and PumpAMM
  • Ceiling division to prevent dust losses and ensure accurate fee amounts
  • Validation and guardrails for fee configurations and error handling
  • Works across bonding-curve and graduated states, with cross-program balance checks

Quick Start

Configure the Pump fee system to apply tiered protocol and creator fees across Pump programs using dust-safe ceiling division.

Frequently Asked Questions about pump-fee-system

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

FAQPage Schema
How do I calculate tiered protocol fees for Pump trades on Solana?

To calculate tiered protocol fees for Pump trades on Solana, you apply market-cap based configurations using ceiling division. This ensures accurate fee routing to protocol recipients while preventing dust losses during computations.

How does ceiling division prevent dust losses in Solana fee calculations?

Ceiling division prevents dust losses in Solana fee calculations by always rounding up to the nearest integer. This guarantees that the protocol and creators receive the exact minimum fee amount owed without fractional token loss.

Does the Pump fee calculation work for both bonding-curve and graduated AMM states?

Yes, the Pump fee calculation works for both bonding-curve and graduated AMM states. It applies tiered fee configurations and validates cross-program creator vault balances across both the Pump and PumpAMM programs.

How do I route creator fees to vaults in PumpAMM?

You route creator fees to vaults in PumpAMM by calculating the owed amount through tiered market-cap configurations. The system ensures correct vault routing and validates cross-program balances across both Pump and AMM programs.

What are the limitations of tiered fee configurations in the Pump protocol?

A limitation of tiered fee configurations in the Pump protocol is that calculations require strict validation to avoid errors. Users must ensure correct market-cap tier mapping and sufficient creator vault balances across cross-program states.