Flow + Pyth crypto fantasy league - compete with cross-chain portfolios for real prizes
Flowyth: Cross-Chain Crypto Fantasy League Platform Flowyth is a cross-chain crypto fantasy league platform that turns complex crypto portfolio management into competitive entertainment. By integrating simple and intuitive fantasy sports mechanics with actual crypto market data, we make complex trading concepts accessible to mainstream users and drive huge trading volumes across multiple blockchain ecosystems.
The Problem We're Solving
Mode B - Solo Mode (Prediction Markets)
example: prediction: "Will aggregate meme coin performance outpace BTC in next 10 minutes?"
Mina's Winning Play: a. Staked: $500 USDC in YES vault b. Market Result: Meme coins +3.2%, BTC +1.8% c. Outcome: YES wins d. Marcus's share: $500 ÷ $15,000 = 3.33% of total pool e. Payout: $22,500 × 3.33% = $750 USDC f. Profit: $250 USDC (50% return in 10 minutes)
Mode C- P2P Mode (Head-to-Head Battles) ⚔️
example: "DOGE vs SHIB - 15 mins performance duel" challenger: @crypto_king_dave opponent: @degen_sarah_sol wager: $50 USDC each ($100 total pool) battle duration: 2:00 PM - 2:15 PM UTC
real-time performance tracking: 5 mins: DOGE +2.1%, SHIB +4.3% (Sarah leading) 10 mins: DOGE +5.8%, SHIB +3.9% (Dave takes lead) 15 mins: DOGE +7.2%, SHIB +9.1% (Sarah regains lead)
Battle Result: winner: @degen_sarah_sol (SHIB +12.3%) payout: $95 USDC (after 5% protocol fee) Social Impact: Sarah gains +15 reputation points and achievement badge "meme coin master"
Social Features
Market Opportunity & Competitive Advantages serving the intersection of three enormous markets: a. fantasy sports: $27B globally b. crypto trading: $2.4T per day volume c. prediction markets: $500M+ annual trading volume
Key competitive differentiators:
vs Traditional Fantasy Sports: 24/7 marketplaces, international crypto assets, learning value, reduced $5 entry price barriers
vs Crypto Trading Platforms: Learning by playing, social competition, fixed risk management, guided education
vs Prediction Markets: No-nonsense fantasy mechanics, diversified portfolio strategy, cross-chain innovation
Our main objective with Flowyth was to create a consumer-level, highly responsive app that hides blockchain complexity and guarantees decentralized, provably fair settlement. This philosophy shaped our entire technology stack, and it is a hybrid of robust web2 infrastructure and cutting-edge web3 components.
A. Frontend: a seamless user experience user experience comes first. We developed the frontend as a "Progressive Web App (PWA)" using Next.js 14 with TypeScript. This does provide us with server-side rendering for quick initial loads, static site generation for efficiency, and type safety to avoid bugs common to all. a. UI/UX: we employed TailwindCSS for speedy, utility-first styling and Framer Motion for smooth animations to give the platform an engaging and refined feel, akin to a standard fantasy sports app. b. wallet onboarding: In order to eliminate the wallet headache of new users, we onboarded Dynamic.xyz. This was a big choice. It offers a stunning, multi-wallet onboarding modal straight out-of-the-box and supports connecting via email, social logins, or users' favorite crypto wallets. This one integration saved us months of development time and greatly reduces the barrier to entry. c. real-time data: live tournament leaderboards, changing prediction market odds, and P2P battle outcomes are driven by WebSocket connections controlled by our backend, providing users with real-time feedback.
B. Backend: The Off-Chain Workhorse In order to maintain the application's performance and affordability, we perform most non-critical actions off-chain. a. core infrastructure: Supabase is our one-stop backend of choice. Its built-in PostgreSQL database houses user profiles, squad compositions, and match history. widely used in broadcasting live leaderboard updates and notifications to the frontend through our webSocket connections. b. Performance Caching: The system needs high-frequency price data for real-time presentation. To prevent constant querying of the slow and expensive blockchain oracle, we employ a Redis cache. A backend service refreshes Pyth Network's off-chain API for price data and stores them to cache, allowing our frontend to read this data with millisecond latency. c. Blockchain Layer: decentralized trust & settlement all value-carrying operations (entry fees, prize pools, settlements) are processed by smart contracts(written in Solidity).
C. The Chain: we ride on the Flow EVM. Flow was deliberately chosen for its a. consumer-friendly design, with account abstraction for seamless user onboarding b. low transaction fees that support our micro-transaction-dense game modes, and c. high throughput with 3-second finality.
D. Smart Contracts: We have our contracts coded in Solidity and designed as modular: one for Tournament Management, one for Prediction Markets AMM, and one for P2P Battles. This separation of concerns makes them simpler to audit and upgrade.
E. Oracle Integration (Partner Tech): the source of truth the fairness of our games is paramount. For this, we have integrated the Pyth Network, which performs two essential roles: a. Institutional-Grade Price Feeds: guarantees that all prediction markets and fantasy leagues settle against realistic, manipulation-proof market prices. b. Provably Fair Randomness: for tournament mode, we utilize Pyth Entropy to cryptographically generate secure random numbers. utilized to divide the 5,000 participants into 20-player groups in a provably fair manner, with no possibility of manipulation. c. Notable Innovation: gamifying oracle uncertainty one really standout feature we added was "Confidence Gamification." The Pyth Network price feeds have a "confidence interval," which is the uncertainty or volatility of an asset's price at any given time. Rather than simply utilizing the price, we incorporated this confidence value into our scoring function.

