pump-admin-ops
Admin and authority operations for the Pump protocol — set coin creator, update token incentives, set IDL authority, claim…
Volume-based PUMP token reward system with day-indexed epochs, pro-rata distribution, accumulator tracking, and cross-program claiming on Solana.
$ npx -y skills add nirholas/pump-fun-sdk --skill pump-token-incentives --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/pump-token-incentivesContext preview
The summary Claude sees to decide when to auto-load this skill.
Volume-based PUMP token reward system with day-indexed epochs, pro-rata distribution, accumulator tracking, and cross-program claiming on Solana.
name: pump-token-incentives
description: "Volume-based PUMP token reward system with day-indexed epochs, pro-rata distribution, accumulator tracking, and cross-program claiming on Solana."
metadata:
openclaw:
homepage: https://github.com/nirholas/pump-fun-sdk
requires:
env:
- SOLANA_RPC_URLImplement and maintain the token incentive system that rewards traders with PUMP governance tokens based on their SOL trading volume, using a day-based epoch system with pro-rata distribution.
The Pump protocol incentivizes trading activity by distributing PUMP tokens to users proportional to their SOL trading volume. The system tracks volume in day-long epochs, with each day having a pre-configured token supply pool.
Volume tracking operates in fixed-length epochs defined by the `GlobalVolumeAccumulator`:
dayIndex = Math.floor((currentTimestamp - startTime) / secondsInADay)
$$\text{tokens} = \frac{\text{userSolVolume} \times \text{dayTokenSupply}}{\text{globalSolVolume}}$$
1. **Init** (`initUserVolumeAccumulator`) — creates the user's volume accumulator PDA 2. **Sync** (`syncUserVolumeAccumulator`) — updates the accumulator with latest volume data 3. **Claim** (`claimTokenIncentives`) — claims accumulated PUMP token rewards 4. **Close** (`closeUserVolumeAccumulator`) — closes the account, reclaims rent
Since users trade on both the bonding curve (Pump) and AMM (PumpAMM):
| Case | Behavior | |------|----------| | Zero global volume for a day | No tokens distributed (division by zero guarded) | | User never synced | Only `totalUnclaimedTokens` from account state returned | | Day index beyond arrays | No additional rewards computed | | User updated same day | `currentDayTokens` returns preview, `totalUnclaimedTokens` excludes it |
Open-source framework for building PumpFun Telegram bots on Solana. Claim monitors, channel feeds, group trackers, whale alerts — build your own or use ours. PumpKit Web App + Documentation
Admin and authority operations for the Pump protocol — set coin creator, update token incentives, set IDL authority, claim…
AI agent integration layer for the Pump SDK — agent instruction files, .well-known discovery, LLM context documents, 15+ skill…
Constant-product AMM bonding curve math for Pump token pricing — buy/sell quoting, fee-aware calculations, market cap…
Build and release pipeline for the Pump SDK — tsup TypeScript builds, Cargo release profiles, semantic release with commitizen,…
Read-only query methods for PumpFun claims — unclaimed token rewards, creator vault balances, volume accumulators, distributable…
Configure and distribute creator fees to multiple shareholders using the PumpFees program with BPS-based share allocation, admin…