[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71KMPV8XF54S3FAH8TJQ6EN":3,"skill-same:01M71KMPV8XF54S3FAH8TJQ6EN":73},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M71KMPV8XF54S3FAH8TJQ6EN","pump-token-incentives",null,"Volume-based PUMP token reward system with day-indexed epochs, pro-rata distribution, accumulator tracking, and cross-program claiming on Solana.","clawdsolana\u002FOpenClawd","clawdsolana","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F279036008?v=4","01M71JTVF9FNGKE2SVJRPTQM31","OpenClawd","01M71JTVGCKWBSS8ZYC1HYWVA5",2,"MIT","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fpump-token-incentives\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"token","pump token incentives","pump","incentives","tracking","pro","https","sdk","github","solana","with","program","URL","pump-fun","rpc","system","fun","volume","distribution","2026-11-10 10:12:30",false,"---\nname: pump-token-incentives\ndescription: \"Volume-based PUMP token reward system with day-indexed epochs, pro-rata distribution, accumulator tracking, and cross-program claiming on Solana.\"\nmetadata:\n  solanaos:\n    homepage: https:\u002F\u002Fgithub.com\u002Fnirholas\u002Fpump-fun-sdk\n    requires:\n      env:\n        - SOLANA_RPC_URL\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\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\n",{"name":5,"metadata":43,"description":7},{"solanaos":44},{"homepage":45,"requires":46},"https:\u002F\u002Fgithub.com\u002Fnirholas\u002Fpump-fun-sdk",{"env":47},[48],"SOLANA_RPC_URL","main","6b4a291df75c639681e93b4b5b812126443fd6ed","skills\u002Fpump-token-incentives",3,"https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd","https:\u002F\u002Fsolanaclawd.com\u002Fopenclawd","https:\u002F\u002Fgithub.com\u002Fclawdsolana","https:\u002F\u002Fmusebook.trade","Welcome to Open Clawd. The future of Ai on and off chain. Bringing webMCP to web 3 using X402, A2A, MPP and so much more!","2026-08-01 09:30:51",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add clawdsolana\u002FOpenClawd --skill pump-token-incentives",{"tool":65,"command":66},"bunx","bunx skills add clawdsolana\u002FOpenClawd --skill pump-token-incentives",{"tool":68,"command":69},"pnpm","pnpm dlx skills add clawdsolana\u002FOpenClawd --skill pump-token-incentives","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fpump-token-incentives\u002FSKILL.md",true,[],[74,101,126,151,161,185],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":100},"01M71KRBD0W01EAXJ8YM4M1SJ2","solana-dev","End-to-end Solana development playbook (Jan 2026). Prefer Solana Foundation framework-kit (@solana\u002Fclient + @solana\u002Freact-hooks) for React\u002FNext.js UI. Prefer @solana\u002Fkit for all new client\u002FRPC\u002Ftransaction code. When legacy dependencies require web3.js, isolate it behind @solana\u002Fweb3-compat (or @solana\u002Fweb3.js as a true legacy fallback). Covers wallet-standard-first connection (incl. ConnectorKit), Anchor\u002FPinocchio programs, Codama-based client generation, LiteSVM\u002FMollusk\u002FSurfpool testing, and security checklists.","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fsolana-dev\u002FSKILL.md",[],[81,82,28,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99],"solana dev","dev","Wallet","end","testing","hooks","kit","new","when","web3","code","react","next","2026","playbook","security","ui","fallback","framework","2026-11-10 10:56:23",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":100},"01M71KR8QPESSY61SVE8ZTFNVT","xurl","A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fxurl\u002FSKILL.md",[],[103,108,109,110,111,112,113,89,114,115,116,117,118,119,120,121,122,123,124,125],"posts","Media","x api","search","send","tap","you","api","cli","read","install","cli tool","endpoint","brew","for","manage","tool","twitter",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":100},"01M71KR6FSXV88YDKWP7NBY3SH","wurk-integration","WURK API integration for monetizing agents with x402 payments on Solana\u002FBase - create social jobs, custom challenges, and agent help tasks","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fwurk-integration\u002FSKILL.md",[],[133,134,135,136,137,138,139,140,115,141,142,143,144,145,146,147,122,148,149,150],"wurk","wurk integration","integration","x402","social","payments","tasks","team","create","social-jobs","command","agent-help","custom-jobs","clawd","safe","api integration","custom","true",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":100},"01M71KR4HCX41BPAK9GP7RPRRP","workflows","Manage application workflows including configuration, restart, and removal.","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fworkflows\u002FSKILL.md",[],[153,123,158,159,160],"configuration","application","restart",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":100},"01M71KR1VM0F5GPEQDNG5J7A0H","web-search","Search the web, fetch content, extract branding profiles, and capture screenshots from URLs. Use for real-time information, API documentation, current events, design matching, and visual reference.","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fweb-search\u002FSKILL.md",[],[168,111,169,170,171,122,172,173,174,175,176,177,178,115,179,180,181,182,183,184],"web search","web","fetch","api documentation","real-time","time","profiles","design","use","information","visual","documentation","branding","matching","reference","capture","content",{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":100},"01M71KQZN5MR1JFQHG5GWXYAHS","weather","Get current weather and forecasts via wttr.in or Open-Meteo. Use when: user asks about weather, temperature, or forecasts for any location. NOT for: historical weather data, severe weather alerts, or detailed meteorological analysis. No API key needed.","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fweather\u002FSKILL.md",[],[187,192,122,193,176,89,194,115,195,196,197,198,199,200,25,201,202,203],"get","open","analysis","alerts","temperature","curl","via","help","about","location","data","user"]