Inspiration
Prediction markets like Polymarket are powerful but feel like trading platforms—inaccessible to casual users. Fantasy Forecast League lets friends compete on real-world events—elections, sports, crypto—using familiar fantasy mechanics. Instead of drafting athletes, you draft "Will BTC hit $100k?" and compete all season.
What it does
Fantasy Forecast League transforms Polymarket into season-long fantasy leagues for 8-12 players.
Gameplay: Create leagues with SOL/USDC buy-ins forming prize pools Snake draft Polymarket markets each week, lock in YES/NO predictions Earn points for accuracy with multipliers based on difficulty (1.0x-1.5x) Unlike Polymarket's trading interface, we offer simple YES/NO picks anyone can understand.
How we built it
Solana Smart Contracts (Anchor)
PDA-based league management and secure prize pool vaults Draft pick registration with market uniqueness constraints On-chain scoring engine with multiplier calculations Proportional payout distribution with claim functionality Trading system for mid-season pick swaps
Backend Next.js API routes for league and player data Polymarket Gamma API integration for real-time market data Automated cron worker detecting market resolutions PostgreSQL for caching and fast queries
Frontend (Next.js + TypeScript + Tailwind + shadcn/ui) Live snake draft room with real-time ordering Dynamic leaderboards with score previews Solana Wallet Adapter integration
Challenges we ran into
Market Resolution Timing - Markets don't resolve instantly. We built a robust cron system polling Polymarket's API to handle partial resolutions without breaking league progression. On-Chain Payout Calculations - Computing proportional payouts within Solana's compute limits required optimizing account lookups and storing cumulative totals efficiently. Real-Time Draft Sync - Coordinating live draft picks across users needed optimistic UI updates with rollback mechanisms for failed transactions.
Accomplishments that we're proud of
Complete fantasy engine on Solana with drafting, scoring, and automated payouts Seamless Polymarket integration, auto-detecting resolutions, and updating leagues in real-time Zero house rake - 100% of prize pools distributed to players based on skill Sophisticated scoring with difficulty multipliers and strategic bonuses Secure PDA architecture for prize custody—no central authority can access funds
What we learned
Solana Development - Mastered Anchor PDAs, compute optimization, and SPL token handling for secure prize vaults Prediction Markets - Converting implied probabilities to engaging scoring systems while handling resolution edge cases Game Design - Balancing risk/reward through multipliers to encourage strategic diversity. Simple mechanics (YES/NO) beat complex ones Integration Challenges - Coordinating off-chain cron jobs with on-chain updates while handling API failures gracefully
What's next for Fantasy Drafting - Polymarket
Short-term mobile app with push notifications for drafts and resolutions Public leagues with ELO-based matchmaking Enhanced analytics and optimal draft strategy insights NFT achievement badges (Metaplex compressed NFTs)
Medium-term Multi-outcome markets beyond YES/NO Live playoff brackets and championship rounds Cross-chain USDC support via Circle's CCTP Sponsored leagues with brand partnerships
Long-term Vision Become the default way casual users engage with prediction markets Partner with Polymarket as their official fantasy layer DAO governance for scoring rules and league formats Expand to aggregate multiple prediction platforms
Goal: Make prediction markets as mainstream as fantasy sports.
Built With
- gammaapi
- next.js
- postgresql
- rust
- shad
- solanawalletadapter
- supabase
- tailwind
- typescript
Log in or sign up for Devpost to join the conversation.