Potbot V2
PotBot v2 β Group trading vaults on Solana. Collective POT management, governance, DeFi yield, Tamagotchi NFTs & POT Duels. Built for Solana Frontier 2026.
Ask AI about Potbot V2
Powered by Claude Β· Grounded in docs
I know everything about Potbot V2. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
πͺ΄ PotBot v2
Group Treasury. AI execution. Money tree that grows.
POT = on-chain group treasury Β· BOT = AI execution through MCP Β· πͺ΄ = your wealth expanding.
PotBot is a Solana protocol for groups who prefer on-chain votes over chat-based arguments. It combines group governance, AI automation, creator monetization, and DeFi yield into a single primitive β the pot.
Built for Solana Frontier 2026 Β· @PotBot_sol Β· @CryptoYDao Β· Y-DAO Amsterdam
Links π
| π DApp | potbot.fun |
| π MCP Server | apps/potbot-mcp |
| π Full Docs | docs/architecture/overview.md |
| π€ Telegram | separate v1 product |
| πΏ SNS | potbot.sol |
π§ββοΈ For Judges β Try It in 60 Seconds
No wallet needed β potbot.fun shows a live flagship pot in read-only mode at the top of /vaults.
Lifecycle legend used everywhere on this repo and the site: π’ Live/verifiable Β· π‘ Devnet Β· π΅ Phase 2 Q3 2026 Β· π£ Phase 3 Q4 2026 Β· βͺ Vision
Live now (devnet Β· Explorer-verifiable) π‘
pot_vaultAnchor program on devnet with 30+ instructions: deposit, propose, vote,execute_swapvia Jupiter v6 CPI, withdraw.- Solana Blinks endpoints β
/api/actions/<potPubkey>/{deposit,vote}β render as cards in Phantom / Backpack / X. - MCP server
@potbot/mcp@0.2.0on npm β 18 tools, HTTP+SSE+stdio transports. - Squads v4 multisig path for the creator role on high-value pots.
- Helius RPC + webhooks for realtime pot events.
- PWA manifest installable on iOS / Android.
Try it
# 1. Open the live DApp
open https://potbot.fun
# 2. Connect to MCP server (Claude / any AI agent)
npx @potbot/mcp
# 3. Clone and run locally
git clone https://github.com/YD811/potbot-v2.git
cd potbot-v2 && npm install
cd apps/web && npx next dev # β http://localhost:3000
Test MCP with Claude
list_vaults β get_vault_analytics β create_swap_proposal β vote_on_proposal
Full roadmap with explicit status per feature
β potbot.fun/roadmap β every Live, Devnet, Phase 2, Phase 3, and Vision item, with chips.
Quick Start
git clone https://github.com/YD811/potbot-v2.git
cd potbot-v2
npm install
cd apps/web && npx next dev # β http://localhost:3000
For full setup (Anchor, devnet deploy, API server): see docs/operations/development.md
What is PotBot?
PotBot is infrastructure for group capital management on Solana β one primitive that works the same for a 3-friend investment club and a $100M family office.
Governance, AI execution, best-of-breed DEX routing and DeFi yield, all inside a single programmable vault. Think on-chain copy-trading meets tokenized ETF meets Money Tree β configurable from autocratic solo vault up to timelocked institutional-grade treasury.
For different users
| User | What PotBot does for them |
|---|---|
| π₯ Group of friends | Trade together with shared governance β no one person holds the keys |
| π¨βπ» Trader | Create a Strategy Vault, monetize knowledge via entry/performance fees, no custody needed |
| π£ Influencer | Open a public vault, subscribers invest in your strategy, earn performance fees |
| π€ AI Agent developer | Build autonomous trading agents via MCP server β 60+ on-chain actions |
| π¦ Investor | Browse Strategy Vaults, filter by PnL/APY/risk, join with one click |
What is a POT?
A POT is a shared on-chain vault on Solana, governed by its members. Every SOL and SPL token lives in a program-owned PDA from day one β no custodian, no bot-held keys, no multisig operator. Only the PotBot program can move the funds, and only after a successful on-chain vote.
- Collective ownership β deposit SOL/USDC, receive proportional shares (NAV-based, like an ETF)
- On-chain governance β every trade, withdrawal or strategy change requires a vote (L0βL4 configurable)
- Personal AI Voters β each member can delegate voting to their own AI agent, revocable and auditable on-chain
- AI Agent (BOT) β set rules like "if SOL < $120, propose buying 10% more" β agent creates proposals, humans (or their personal voters) vote
- DeFi yield β idle capital deployed via Kamino / Drift / MarginFi / JLP strategies
- Money Tree mascot β evolves π±βπΏβπ³βπΊβπΈβπ΄ through 6 stages based on AUM, members and trading volume
- SNS subdomain β each POT gets
<name>.potbot.sol - Optional privacy (STAMPPOT) β ZK proofs via PrivacyCash
Strategy Vaults β Creator Economy
Any trader, influencer, or AI agent can launch a Strategy Vault β a tokenized DeFi strategy open to external investors.
- Creator launches vault β sets entry/performance/management fees
- Investors buy in β receive Strategy Shares (SPL tokens, NAV-priced)
- AI Agent runs the strategy β proposes swaps based on rules
- Group votes β executes only if quorum reached
- Money Tree evolves β unlock perks (lower fees, Jupiter Limit Orders, NFT shares)
Fee model
| Fee | Who gets it | Range |
|---|---|---|
| Entry fee | 70% creator Β· 20% PotBot Β· 10% referrer | 0 β any |
| Performance fee | Creator + PotBot (only on profit at exit) | 0β20% |
| Management fee | Creator (annual on AUM) | 0β2% |
| Protocol swap fee | PotBot | 0.30% (Money Tree-discounted) |
Referral system (on-chain, automatic)
- Level 1 referrer: 20% of entry fee at transaction time
- Level 2 referrer: 5% of entry fee
- No claiming needed β paid in the same transaction
AI Agent β Autonomous Proposals
Every POT can have an AI Agent that monitors prices and creates governance proposals automatically.
You set the rules:
"If SOL drops below $120 β propose buying 10% more""Every Monday 9am β DCA 5% into $JUP""If portfolio PnL > +20% β propose taking 30% profit"
AI suggests. Humans decide. Nothing executes without votes.
- Supported triggers:
price_above,price_below,time_interval(cron),balance_above,balance_below,pnl_above,pnl_below - Supported actions:
propose_swap,propose_dca,propose_yield_deposit,vote_yes,alert
MCP Server β AI-Native Infrastructure
PotBot is MCP-native. Any AI agent (Claude, GPT, custom LLM) can interact with every vault via the PotBot MCP server.
// Any AI agent can:
await mcp.call('list_pots') // browse all public vaults
await mcp.call('get_pot_analytics', { pubkey }) // PnL, NAV, APY, Sharpe
await mcp.call('create_proposal', { pot, swap }) // propose a trade
await mcp.call('vote_on_proposal', { proposal, approve: true })
await mcp.call('get_yield_rates') // Kamino/Drift/JLP live APY
await mcp.call('join_vault', { vault, referrer }) // enter a Strategy Vault
Built on solana-agent-kit β extends 60+ native Solana actions with PotBot-specific vault management.
Integrates x402 micropayments β agents pay per API call (0.001 USDC/request), enabling fully autonomous fee-based agent economies.
DeFi Integrations
| Protocol | What we use it for |
|---|---|
| Jupiter v6 | All swaps (best route, min slippage), Limit Orders (Bud+), DCA (Bloom+) |
| Kamino | Yield strategies (lending APY up to 15%), RWA-backed vaults |
| Drift | Perps exposure + lending rates |
| MarginFi | Lending/borrowing yield |
| Metaplex Core | NFT Strategy Shares for Full Bloom+ vaults |
| MagicBlock | Private USDC referral payouts (confidential transfers via MCP) |
| Privy | Phase 2: embedded wallet β join vaults by email, no Phantom needed |
| MoonPay | Fiat on-ramp on vault join page |
| Pyth / Switchboard | Price oracle fallback |
Backend & Analytics
The apps/api service provides real-time analytics powering all PnL/ROI/APY calculations:
- Price Oracle β Jupiter Price API v2 (5-second polling, Redis cache)
- PnL Engine β entry_price Γ current_price Γ shares β unrealized/realized PnL
- APY Engine β annualized from 30d performance:
(1 + pnl_30d)^(365/30) - 1 - Yield Aggreg. β Kamino + Drift + JLP APY pulled every 15 minutes
- Agent Cron β evaluates all AI rules every 60s, creates on-chain proposals
- Crank Service β management fees, AUM snapshots, Money Tree evolution, NFT burns on death
Per-vault metrics: NAV, PnL 24h/7d/30d/all-time, APY estimated, Sharpe ratio, max drawdown, win rate, total volume USD.
Monorepo Structure
potbot-v2/
βββ apps/
β βββ web/ # Next.js 14 DApp β main product
β βββ api/ # Hono.js backend API
β βββ potbot-mcp/ # MCP Server (solana-agent-kit based)
β βββ bot/ # Telegram bot (grammy)
β βββ keeper/ # Executor / crank service
β βββ landing/ # Marketing landing page
βββ packages/
β βββ program/ # Anchor programs (Rust)
β β βββ programs/
β β βββ pot_vault/ # Core: vault, governance, strategy, referral
β β βββ pot_duel/ # 1v1 duel vaults (Bloom+ unlock)
β βββ sdk/ # TypeScript SDK
β βββ ui/ # Shared React components
βββ docs/
βββ OVERVIEW.md
βββ ARCHITECTURE.md
βββ DEVELOPMENT.md
βββ PROGRAM.md
βββ GOVERNANCE.md
βββ MOCK_MODE.md
βββ MCP.md
On-chain Program β Instructions
Core Vault
| Instruction | Description |
|---|---|
create_pot | Create a group vault with governance settings |
deposit | Deposit SOL β receive proportional shares |
withdraw | Burn shares β receive proportional SOL |
create_proposal | Create governance proposal (swap/withdraw/settings) |
vote | Vote yes/no weighted by shares |
execute_proposal | Execute passed proposal |
execute_swap | Execute Jupiter swap from vault |
update_tamagotchi | Permissionless crank to evolve Money Tree |
init_token_mint | Initialize SPL mint for strategy shares |
Strategy Vault
| Instruction | Description |
|---|---|
create_strategy_vault | Create tokenized strategy vault with fee config |
join_strategy_vault | Join vault, pay entry fee, register referral |
exit_strategy_vault | Exit vault, pay performance fee on profit |
evolve_tamagotchi | Permissionless: evolve if thresholds met |
Current Status (April 2026)
| Component | Status | Notes |
|---|---|---|
Anchor pot_vault core | β Complete | All instructions written |
| Strategy Vault on-chain | β Complete | create/join/exit/evolve + referral |
| TypeScript SDK | β Complete | PDAs, IDL, client helpers |
| Next.js DApp | β Complete | Full UI β demo mode + on-chain |
/vaults discovery page | β Complete | Live analytics, USD TVL, sort/filter |
/vaults/create wizard | β Complete | 5-step wizard |
| AI Agent UI + API sync | β Complete | Rules engine, server sync, 24/7 cron |
| Governance + proposals | β Complete | Shares-weighted voting |
| Leaderboard | β Complete | USD TVL, PnL%, APY30d |
Backend API (apps/api) | β Complete | Price oracle, PnL, analytics, agent cron |
MCP Server (apps/potbot-mcp) | β Complete | 15+ tools, solana-agent-kit based |
| Devnet deploy | β Complete | Program live on devnet |
| x402 micropayments | β Complete | USDC gate on /analytics/* |
| Pitch deck | β Complete | 11 slides β Solana Frontier 2026 |
| Jupiter swap CPI | π΄ Blocker | Executor wallet needs funding + deploy |
| E2E test on devnet | π‘ Next | Script ready β needs live program |
| Kamino/Drift yield (live) | π’ Planned | Post-hackathon |
| pot_duel program | π’ Planned | 1v1 duels post-MVP |
| Demo video | π’ Planned | May 6β8 |
| Hackathon submission | π May 11 | colosseum.com/frontier |
Tech Stack
| Layer | Tech |
|---|---|
| Blockchain | Solana Β· Anchor 0.30.1 Β· SPL Token |
| Smart Contracts | Rust Β· Anchor Β· CPI (Jupiter, SPL) |
| Price Oracle | Jupiter Price API v2 Β· Pyth Network |
| DEX / Swaps | Jupiter v6 (Swap + Limit Orders + DCA) |
| DeFi Yield | Kamino Β· Drift Β· MarginFi |
| NFT | Metaplex Core (Strategy Shares) |
| Frontend | Next.js 14 Β· TypeScript Β· Tailwind CSS |
| State | Zustand Β· TanStack Query v5 |
| Wallets | Phantom today Β· Privy embedded wallets in Phase 2 |
| Backend | Hono.js Β· Node.js Β· PostgreSQL Β· Redis |
| MCP | solana-agent-kit Β· @modelcontextprotocol/sdk |
| Payments | x402 (AI micropayments) Β· MagicBlock (private) |
| Fiat On-ramp | MoonPay |
| Monorepo | Turborepo Β· npm workspaces |
| Deploy | Vercel (web + api) Β· GitHub Actions |
Documentation
| Doc | Description |
|---|---|
| OVERVIEW.md | Full project documentation β start here |
| ARCHITECTURE.md | System design, data flow, key decisions |
| DEVELOPMENT.md | Local setup, commands, troubleshooting |
| PROGRAM.md | Solana program: accounts, instructions, PDAs |
| GOVERNANCE.md | Governance levels, voting mechanics |
| MOCK_MODE.md | Demo mode architecture |
| MCP.md | MCP server guide for AI agent developers |
| DEPLOY.md | Devnet β mainnet deployment procedure |
Hackathon
Solana Frontier 2026 Β· Colosseum Β· April 6 β May 11, 2026
"PotBot Strategy Vaults: tokenized DeFi strategies for everyone. Any trader, influencer, or AI agent creates their Strategy Vault on Solana. Investors buy shares β and participate in the strategy without trading themselves. Tamagotchi mechanics gamify growth: the bigger the AUM and members, the cheaper to trade. Everything on-chain, everything transparent, everything on Solana."
License
MIT Β© 2026 Y-DAO Amsterdam β Built with β€οΈ for Solana Frontier
π Full Documentation β docs/architecture/overview.md
