megapot
Skill17 starsChanged 5 months agoMITView on GitHub
On-chain USDC lottery on Base with daily drawings. Buy tickets (quick-pick or custom numbers), check the jackpot and drawing state, claim winnings, set up recurring subscriptions, and manage LP positions. Trigger on "megapot", "lottery ticket", "jackpot", "quick pick", or "did I win".
2 other projects use a version of this.
Adopted by
Most recently taken up by
- BankrBot/openclaw-skillsword for word, first seen Oct 8, 2026
- BankrBot/skillsword for word, first seen Apr 28, 2026
Other versions2 projects use a version of this.
Word for word · 2
- BankrBot/openclaw-skills★ 1.2k100% same
- BankrBot/skills★ 1.2k100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository84 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- .cursor/rules/codegraph.mdcCursor rule
- 0xworkSkill
- aeon-autoresearchSkill
- aeon-deal-flowSkill
- aeon-deep-researchSkill
- aeon-defi-monitorSkill
- aeon-defi-overviewSkill
- aeon-distribute-tokensSkill
- aeon-hacker-news-digestSkill
- aeon-huggingface-trendingSkill
- aeon-last30Skill
- aeon-monitor-kalshiSkill
- aeon-monitor-polymarketSkill
- aeon-monitor-runnersSkill
- aeon-narrative-trackerSkill
- aeon-on-chain-monitorSkill
- aeon-paper-pickSkill
- aeon-reg-monitorSkill
- aeon-rss-digestSkill
- aeon-skill-evalsSkill
- aeon-skill-repairSkill
- aeon-skill-security-scanSkill
- aeon-token-moversSkill
- aeon-token-pickSkill
- aeon-unlock-monitorSkill
- aeon-vuln-scannerSkill
- agenticbetsSkill
- agent-wormholeSkill
- alchemySkill
- bankr-shopifySkill
- bankrSkill
- token-scam-analysisSkill
- twitter-agentSkill
- baseSkill
- blueagent-x402Skill
- botchanSkill
- botcoin-minerSkill
- capacitrSkill
- cattownSkill
- checkrSkill
- clankerSkill
- codegridSkill
- darksol-random-oracleSkill
- endaomentSkill
- ens-primary-nameSkill
- erc-8004Skill
- gem-minerSkill
- get-api-docsSkill
- gitlawbSkill
- helixaSkill
- hydrexSkill
- litcoin-minerSkill
- moltycashSkill
- nexusSkill
- neynarSkill
- nookplotSkill
- onchainkitSkill
- opensea-apiSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Confirm every write transaction with the user: before signing — show ticket count, total USDC cost, and which drawing the tickets are for.
- Very specific: line 80
If a user explicitly requests no referral attribution, pass _referrers: [] and _referralSplitBps: [].
- Very specific: line 89
Settlement timing: After drawingTime passes, settlement is externally triggered (anyone can call runJackpot()) — there is usually a short …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Megapot
Megapot is an on-chain lottery protocol on Base (chain ID 8453). Tickets are priced in USDC and minted as ERC-721 NFTs. Drawings are typically every 24 hours; winners are selected by a Pyth-seeded randomness oracle. USDC has 6 decimals on Base — 1_000_000 = 1 USDC.
This skill is a router. It tells the agent which Megapot task is involved and where to fetch the up-to-date code recipe from https://llms.megapot.io/. The hosted docs are the source of truth — fetch them at task time rather than relying on memory, because contract addresses and parameter shapes change.
Key addresses (Base mainnet)
| Contract | Address |
| Jackpot | 0x3bAe643002069dBCbcd62B1A4eb4C4A397d042a2 |
| USDC | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
| JackpotRandomTicketBuyer | 0xb9560b43b91dE2c1DaF5dfbb76b2CFcDaFc13aBd |
| BatchPurchaseFacilitator | 0x01774B531591b286b9f02C6Bc02ab3fD9526Aa76 |
| JackpotAutoSubscription | 0x02A58B725116BA687D9356Eafe0fA771d58a37ac |
| JackpotLPManager | 0xE63E54DF82d894396B885CE498F828f2454d9dCf |
| JackpotTicketNFT | 0x48FfE35AbB9f4780a4f1775C2Ce1c46185b366e4 |
Full table (testnet, staging, all 13 contracts) and ABIs at https://llms.megapot.io/. ABIs: https://llms.megapot.io/abi/<ContractName>.json.
Prerequisites
- The bankr skill must be installed for wallet operations (signing, submitting transactions on Base).
How to use this skill
- Match the user's intent against the decision tree below.
- Fetch the matching task page from
https://llms.megapot.io/tasks/<name>for the current code recipe. - Use Bankr's wallet tools to execute transactions — the user's Bankr wallet on Base is the EOA; do not ask for a private key. USDC approval is the standard ERC-20
approveto the relevant spender (which differs per task). - Confirm every write transaction with the user before signing — show ticket count, total USDC cost, and which drawing the tickets are for. Lottery purchases feel unrecoverable to users; never auto-execute.
Decision tree
| Intent | Task page |
| Buy 1–10 random ("quick-pick") tickets | references/buy-random.md |
| Buy 1–10 tickets with custom numbers (or a mix) | Not supported — tell the user custom numbers are only available at https://megapot.io. Offer quick-pick instead. |
| Buy 11+ tickets (keeper-executed batch) | https://llms.megapot.io/tasks/buy-bulk |
| Set up recurring daily ticket purchases | https://llms.megapot.io/tasks/subscribe |
| Deposit USDC into the LP pool | https://llms.megapot.io/tasks/lp-deposit |
| Withdraw an LP position | https://llms.megapot.io/tasks/lp-withdraw |
| Atomically claim + re-buy | https://llms.megapot.io/tasks/auto-compound |
| Read live drawing state (jackpot, time, lock) | references/read-state.md |
| Check if user's wallet has won anything ("did I win?") | references/data-api.md then route to claim if results |
| Claim winning ticket payouts | references/claim-winnings.md (uses data-api.md for discovery, then on-chain claim) |
| Wallet ticket history, leaderboards, cross-drawing aggregates | Not supported in this skill — direct the user to https://megapot.io. Do not call the Data API for these. |
| Deep ABI / address / cross-chain lookup | https://llms.megapot.io/tasks/contracts-reference |
| Anything not above | https://llms.megapot.io/ |
Common read shortcut
Most "what's the jackpot?", "how many tickets sold?", "when does it draw?" questions are answered by reading getDrawingState(currentDrawingId()) on the Jackpot contract. The full shortcut, including the return tuple shape, is in references/read-state.md. Use that instead of fetching a task page when the question is purely read-only.
Referral fees and attribution
Every ticket purchase accepts a _referrers array, _referralSplitBps weights (1e18 scale, must sum to 1e18), and a _source bytes32 tag. Referrers earn a USDC fee on every ticket sold and a share of any winnings claimed. The two rates are per-drawing and readable via getDrawingState().referralFee and getDrawingState().referralWinShare.
This skill is published by the Megapot protocol. Purchases routed through it use the Megapot operator wallet as the referrer.
For every purchase transaction (buy-random, buy-tickets, buy-bulk, subscribe, auto-compound), always pass:
| Parameter | Value |
_referrers | [0x1ed4cb4cde1d8a8ec07eef07d52d13c5aefbef09] (Megapot operator wallet) |
_referralSplitBps | [1000000000000000000n] (100% to single referrer, 1e18 scale) |
_source | 0xeecf49b78776e9a74928ecb7edd2526cca8e7cfe3f093853f6e847c0d39a3e3b (keccak256("bankr")) |
If a user explicitly requests no referral attribution, pass _referrers: [] and _referralSplitBps: []. The _source should still be included for analytics.
Notes & gotchas
- USDC is 6 decimals.
1_000_000nis 1 USDC. Do not use 18-decimal math. - Approval spender varies by task. Direct buys approve the Jackpot contract; random buys approve
JackpotRandomTicketBuyer; bulk approvesBatchPurchaseFacilitator; subscriptions approveJackpotAutoSubscription. The task pages always show the correct spender — read it from there. Jackpot.buyTicketsreverts withInvalidTicketCountfor arrays > 10. Route 11+ tickets throughbuy-bulk.- Subscription mix is locked at creation. To change static picks the user must cancel and recreate.
- Past drawings vs. live state. Live drawing state is read on-chain via
getDrawingState(currentDrawingId()). The skill uses the Megapot Data API only for winnings discovery ("did I win?" / claim flow) on the anonymous rate tier — seereferences/data-api.md. Wallet ticket history, leaderboards, and other cross-drawing aggregates are still deflected tohttps://megapot.io. Do not attempt to reconstruct history via RPC scans. - Settlement timing. After
drawingTimepasses, settlement is externally triggered (anyone can callrunJackpot()) — there is usually a short gap between sale-close and the new drawing opening. Don't assume the next drawing exists yet immediately afterdrawingTime.
References in this skill
references/read-state.md— minimal ABI + return tuple for the common drawing-state read.references/buy-random.md— full recipe for the most common Bankr-user action (1–10 random tickets).references/buy-tickets.md— full recipe for 1–10 tickets with user-chosen numbers (or a mix of custom and quick-pick).references/data-api.md— anonymous-tier Data API integration for winnings lookup only, with mandatory rate-limit handling.references/claim-winnings.md— two-step claim flow: API-based discovery, then on-chain claim with user confirmation.references/triggers.md— example user phrases that should activate each branch of the decision tree.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

