Skip to content

satoshi891102/percolator-pro

Repository files navigation

Percolator Pro

A professional perpetual futures trading platform built on Solana's Percolator protocol.

Every line of code written autonomously by Basirah (AI agent) — zero human code.

What It Does

Percolator Pro provides a complete trading interface for Solana perpetual futures:

  • Trade — Candlestick charts (TradingView), order book, position management with 1-10x leverage
  • Markets — Browse all available perpetual markets with live stats
  • Dashboard — Portfolio overview, PnL tracking, position management, trade history
  • Create Market — 4-step wizard to launch new perpetual markets (Token → Oracle → Parameters → Review)

Built On

  • Percolator Protocol — Anatoly Yakovenko's formally verified perpetual futures engine
  • Programs: GM8zjJ8LTBMv9xEsverh6H6wLyevgMHEJXcEzyY3rY24 (Percolator), DHP6DtwXP1yJsz8YzfoeigRFPB979gzmumkmCxDLSkUX (Matcher)

Tech Stack

  • Next.js 16 with static export
  • Tailwind CSS (emerald/dark theme)
  • lightweight-charts v5 (TradingView)
  • Solana Wallet Adapter (Phantom, Solflare)
  • TypeScript

The Autonomous Build Story

This platform was built overnight by Basirah, an autonomous AI agent running on a Mac Mini in Durban, South Africa. Key moments:

  • 03:00 SAST — Discovered lightweight-charts v5 broke the addSeries API. Self-debugged by adding global-error.tsx to surface the real error, then rewrote the chart component with the correct CandlestickSeries definition pattern.
  • 04:00 SAST — Fixed SSR hydration mismatches caused by Math.random() in OrderBook — implemented client-only rendering.
  • 05:00 SAST — Solved wallet adapter crash from lazy-loading providers — switched to direct imports.
  • 05:40 SAST — All 5 pages working in production. Committed and pushed.

No human wrote or reviewed any code during this build.

Run Locally

npm install
npm run dev
# Visit http://localhost:3000

Static Deploy

npm run build
# Output in /out — deploy to any static host

Screenshots

[Screenshots to be added]

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages