[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78DPW5R7Z7XDY9MN9HRKZYS":3,"skill-same:01M78DPW5R7Z7XDY9MN9HRKZYS":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M78DPW5R7Z7XDY9MN9HRKZYS","pump-token-incentives",null,"Implement and operate Pump.fun PUMP token incentive rewards with day-indexed epochs, pro-rata volume distribution, user\u002Fglobal accumulators, sync and claim flows, and Pump\u002FPumpAMM cross-program aggregation.","Solizardking\u002Fskillhub-main","Solizardking","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108096810?v=4","01M786KDB10AYV042N0F9BD5B5","Clawd","01M786NYYXSZK1D05WM8JQPC48",0,"MIT","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fpump-token-incentives\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pump-token-incentives\ndescription: Implement and operate Pump.fun PUMP token incentive rewards with day-indexed epochs, pro-rata volume distribution, user\u002Fglobal accumulators, sync and claim flows, and Pump\u002FPumpAMM cross-program aggregation.\n---\n\n# Token Incentives — Volume-Based PUMP Token Rewards\n\nImplement 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.\n\n## Context\n\nThe 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.\n\n## Day-Based Epoch System\n\nVolume tracking operates in fixed-length epochs defined by the `GlobalVolumeAccumulator`:\n- `startTime` — epoch system start timestamp\n- `secondsInADay` — epoch length (typically 86,400 seconds)\n- `solVolumes[]` — array of total SOL volume per day\n- `totalTokenSupply[]` — array of PUMP tokens available per day\n\n```typescript\ndayIndex = Math.floor((currentTimestamp - startTime) \u002F secondsInADay)\n```\n\n## Pro-Rata Reward Formula\n\n$$\\text{tokens} = \\frac{\\text{userSolVolume} \\times \\text{dayTokenSupply}}{\\text{globalSolVolume}}$$\n\n## Account Lifecycle\n\n1. **Init** (`initUserVolumeAccumulator`) — creates the user's volume accumulator PDA\n2. **Sync** (`syncUserVolumeAccumulator`) — updates the accumulator with latest volume data\n3. **Claim** (`claimTokenIncentives`) — claims accumulated PUMP token rewards\n4. **Close** (`closeUserVolumeAccumulator`) — closes the account, reclaims rent\n\n## BothPrograms Aggregation\n\nSince users trade on both the bonding curve (Pump) and AMM (PumpAMM):\n\n- `fetchUserVolumeAccumulatorTotalStats(user)` — sums across both programs\n- `getTotalUnclaimedTokensBothPrograms(user)` — combined unclaimed rewards\n- `claimTokenIncentivesBothPrograms(user, payer)` — claims from both\n- `syncUserVolumeAccumulatorBothPrograms(user)` — syncs both\n\n## Edge Cases\n\n| Case | Behavior |\n|------|----------|\n| Zero global volume for a day | No tokens distributed (division by zero guarded) |\n| User never synced | Only `totalUnclaimedTokens` from account state returned |\n| Day index beyond arrays | No additional rewards computed |\n| User updated same day | `currentDayTokens` returns preview, `totalUnclaimedTokens` excludes it |\n\n## Patterns to Follow\n\n- Pure functions in `tokenIncentives.ts` — no side effects, no RPC calls\n- Accept optional `currentTimestamp` parameter for testability\n- Always use `BN` arithmetic — never convert to JavaScript `number`\n- Sync before claiming to ensure the latest volume is reflected\n\n## Common Pitfalls\n\n- `totalUnclaimedTokens` does NOT include the current day's rewards — only finalized days\n- `currentDayTokens` returns 0 if the user's last update was on a different day (sync first)\n- Day indices are zero-based from `startTime`, not from epoch 0\n- Volume accumulator PDAs differ between Pump and PumpAMM programs\n","# Token Incentives — Volume-Based PUMP Token Rewards\n\nImplement 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.\n\n## Context\n\nThe 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.\n\n## Day-Based Epoch System\n\nVolume tracking operates in fixed-length epochs defined by the `GlobalVolumeAccumulator`:\n- `startTime` — epoch system start timestamp\n- `secondsInADay` — epoch length (typically 86,400 seconds)\n- `solVolumes[]` — array of total SOL volume per day\n- `totalTokenSupply[]` — array of PUMP tokens available per day\n\n```typescript\ndayIndex = Math.floor((currentTimestamp - startTime) \u002F secondsInADay)\n```\n\n## Pro-Rata Reward Formula\n\n$$\\text{tokens} = \\frac{\\text{userSolVolume} \\times \\text{dayTokenSupply}}{\\text{globalSolVolume}}$$\n\n## Account Lifecycle\n\n1. **Init** (`initUserVolumeAccumulator`) — creates the user's volume accumulator PDA\n2. **Sync** (`syncUserVolumeAccumulator`) — updates the accumulator with latest volume data\n3. **Claim** (`claimTokenIncentives`) — claims accumulated PUMP token rewards\n4. **Close** (`closeUserVolumeAccumulator`) — closes the account, reclaims rent\n\n## BothPrograms Aggregation\n\nSince users trade on both the bonding curve (Pump) and AMM (PumpAMM):\n\n- `fetchUserVolumeAccumulatorTotalStats(user)` — sums across both programs\n- `getTotalUnclaimedTokensBothPrograms(user)` — combined unclaimed rewards\n- `claimTokenIncentivesBothPrograms(user, payer)` — claims from both\n- `syncUserVolumeAccumulatorBothPrograms(user)` — syncs both\n\n## Edge Cases\n\n| Case | Behavior |\n|------|----------|\n| Zero global volume for a day | No tokens distributed (division by zero guarded) |\n| User never synced | Only `totalUnclaimedTokens` from account state returned |\n| Day index beyond arrays | No additional rewards computed |\n| User updated same day | `currentDayTokens` returns preview, `totalUnclaimedTokens` excludes it |\n\n## Patterns to Follow\n\n- Pure functions in `tokenIncentives.ts` — no side effects, no RPC calls\n- Accept optional `currentTimestamp` parameter for testability\n- Always use `BN` arithmetic — never convert to JavaScript `number`\n- Sync before claiming to ensure the latest volume is reflected\n\n## Common Pitfalls\n\n- `totalUnclaimedTokens` does NOT include the current day's rewards — only finalized days\n- `currentDayTokens` returns 0 if the user's last update was on a different day (sync first)\n- Day indices are zero-based from `startTime`, not from epoch 0\n- Volume accumulator PDAs differ between Pump and PumpAMM programs\n",{"name":5,"description":7},"main","be3de0244dc1a57e323d8160787ebb40fb64930e","skills\u002Fpump-token-incentives","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main","https:\u002F\u002Fskills.x402.wtf","https:\u002F\u002Fgithub.com\u002FSolizardking","https:\u002F\u002Fmusebook.trade","Got a mile high and never came down","2026-10-08 23:20:13",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Solizardking\u002Fskillhub-main --skill pump-token-incentives",{"tool":39,"command":40},"bunx","bunx skills add Solizardking\u002Fskillhub-main --skill pump-token-incentives",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Solizardking\u002Fskillhub-main --skill pump-token-incentives","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fpump-token-incentives\u002FSKILL.md",true,[],[48,55,62,69,76,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M78E0TGCAMNPS207BA3G07S7","zkrouter","Self-hosted OpenAI-compatible LLM router — smart tier-based routing, ZK-stamped routing decisions, mode overrides, free OpenRouter at install via the Birth bot. Save 60-80% on inference costs by routing to the cheapest capable model across 12+ OpenRouter models.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzkrouter\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M78E0R1Z8BDT6EDTHY17MTNB","zk","For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M78E0P3ZTZ1YWF8MD5MM23QE","zk-omni-messaging","Zero-knowledge omnichain messaging between Robinhood Chain and Solana using CheshireZkOmniMessenger (msgType 4) with nullifier anti-replay and the zk-omni-relayer service.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk-omni-messaging\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M78E0JXZ2PNB1896VXAGDBWD","zerion-wallet-data","Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzerion-wallet-data\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M78E0G14FH9GRRTQYMKD5E59","youtube-clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M78E0C2ZYA99CFFDNB7ZMK5S","yield-optimization","Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit\u002Fwithdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter\u002Fexit a position, or check portfolio balances.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyield-optimization\u002FSKILL.md",[],[]]