pump-fee-system

Calculates mint and burn fees for given inputs and protocol fee rate.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexities of managing fees within the Pump protocol, ensuring accurate distribution to protocol recipients and token creators across different token states.

Core Features & Use Cases

  • Tiered Fee Calculation: Dynamically adjusts protocol fees based on a token's market capitalization.
  • Creator Fee Management: Handles the collection and distribution of creator fees from both the main Pump program and the PumpAMM program.
  • Dust-Safe Computations: Employs ceiling division to prevent loss of funds due to small, fractional amounts.
  • Use Case: Automatically calculate and distribute fees for a newly launched token, ensuring creators receive their due percentage while adhering to tiered protocol fee structures.

Quick Start

Use the pump-fee-system skill to calculate the fees for a buy transaction with a market cap of 1000000000000 lamports.

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 pump.fun protocol fees based on market cap?

Pump protocol fees use a tiered structure that dynamically adjusts basis points charged based on a token's current market capitalization.

How does the Pump protocol handle creator fee collection across multiple programs?

Creator fee collection manages distribution from both the main Pump bonding curve program and the PumpAMM program, ensuring creators receive their designated percentage across different token states.

Why do my Solana token fee calculations lose small fractional amounts?

Fractional fee loss occurs because standard division truncates dust amounts; applying ceiling division prevents this by rounding up, ensuring dust-safe calculations for accurate fee distribution.

Can I use this fee system for tokens that have graduated to the PumpAMM program?

Yes, the fee system explicitly handles fee distribution for both bonding curve states and graduated token states, managing collection across the main Pump program and PumpAMM.

What is the best way to manage basis point arithmetic for Solana smart contract fees?

Managing basis point arithmetic requires precise integer math with ceiling division to prevent fund loss, ensuring accurate tiered protocol and creator fee distribution across token states.