Inspiration
Millions of runners, cyclists, and weekend warriors log workouts every day, yet the data that proves their hard work sits inside closed platforms. We imagined a world where that effort becomes an on-chain asset—verifiable, shareable, and economically rewarding. Flowstake was born to let people literally bet on themselves, transforming a morning run into a provable achievement that can unlock crypto rewards, friendly wagers, and global community challenges.
What It Does
Flowstake is a decentralized fitness platform that allows users to create and participate in a variety of fitness challenges. Users can stake cryptocurrency (ETH, USDC, FST) or fiat currency (USD via Stripe) on their ability to complete challenges. The platform supports diverse challenge types, including solo, group, race, point-to-point, and location-based challenges, each with customizable targets (distance, time).
Key Features
- Activity Tracking: Users can track their fitness activities (running, cycling, walking, swimming) directly within the app, capturing GPS data, distance, duration, and elevation.
- On-chain Verification: Activities can be verified using the Ethereum Attestation Service (EAS), creating immutable and verifiable records of achievement on the Base Sepolia blockchain.
- Reward Distribution: Upon successful completion of challenges, participants are eligible for rewards from a shared prize pool, distributed according to predefined methods (e.g., equal split, winner-takes-all, top-three).
- Hybrid Payment System: Seamless integration of both cryptocurrency payments (ETH, USDC, FST) and traditional fiat payments via Stripe for staking and reward payouts.
- Social Features: Users can connect with friends, form groups, and engage in activity feeds with likes and comments.
- Leaderboards & Analytics: Comprehensive leaderboards showcase top athletes based on various metrics, and users can view detailed analytics of their activities and challenge progress.
- User Profiles & KYC: Personalized profiles store user data, and a KYC (Know Your Customer) process is integrated for regulatory compliance, especially for fiat transactions and higher reward tiers.
How We Built It
Flowstake was built as a full-stack web application leveraging a modern tech stack:
Frontend:
- React + Vite for fast builds
- Tailwind CSS for UI
- Lucide React for icons
- framer-motion for animations
- React + Vite for fast builds
Backend & Database:
- Supabase (PostgreSQL, Auth, Edge Functions)
- Real-time activity feeds
- RLS (Row Level Security) policies for privacy
- Supabase (PostgreSQL, Auth, Edge Functions)
Smart Contracts:
- Solidity contracts on Base Sepolia
- OpenZeppelin for secure implementations
- Solidity contracts on Base Sepolia
Web3 Integration:
- Ethers.js for wallet connection & contract calls
- EAS SDK for attestations
- Ethers.js for wallet connection & contract calls
Payments:
- Stripe for fiat payments and payouts
Geolocation & Mapping:
- Geolocation API
- Leaflet & Mapbox GL JS for route visualization
- Geolocation API
Email Services:
- Resend via Supabase Edge Functions
Deployment:
- Netlify for frontend deployment
Challenges We Ran Into
- Geolocation Accuracy: Filtering noisy GPS data and supporting diverse device environments.
- Blockchain Integration: Managing gas fees, user wallets, and async smart contract calls smoothly.
- Real-time Sync: Keeping frontend, Supabase, and blockchain in sync with real-time updates and error handling.
- Hybrid Payments: Combining Stripe and crypto payment flows while remaining compliant.
- Scalability of Verification: Designing scalable IPFS + EAS integration for high user loads.
- UX for Complex Flows: Making challenge creation intuitive despite many parameters.
- Cross-platform Compatibility: Handling differences across devices and browser Web3 implementations.
- Security & Privacy: Enforcing Supabase RLS, securing keys, and auditing smart contracts.
Accomplishments That We’re Proud Of
- End-to-End Functional Platform: Complete challenge lifecycle covered.
- Hybrid Payments: Smooth fiat + crypto staking and reward mechanisms.
- Real-time UX: Fast, responsive, and socially engaging interface.
- On-chain Verifiability: EAS-based, cryptographically verified activity data.
- Diverse Challenge Ecosystem: Support for multiple formats and rules.
- Scalable Architecture: Supabase + smart contracts for long-term growth.
What We Learned
- Supabase Mastery: Used real-time, auth, Edge Functions, and RLS to full effect.
- Web3 Development: Learned transaction lifecycle, wallet state management, and gas optimization.
- Geolocation Optimization: Gained insights into improving browser GPS tracking accuracy.
- Stripe Integration: Navigated full customer/payment/payout workflows securely.
- Data Modeling: Importance of normalized schemas and efficient queries.
- UX for Web3: Simplifying blockchain UX is vital for adoption.
What’s Next for Flowstake.com
- Advanced Verification: Connect with APIs like Strava, Garmin, Apple Health.
- Native Apps: Build iOS & Android apps via React Native / Expo.
- More Challenge Types: Add relay, team-based, and multi-sport formats.
- Social Expansion: Add messaging, chat, and community forums.
- Governance: Introduce FST-based voting on features and protocol rules.
- NFT Achievements: Issue NFTs for challenges, milestones, and rare feats.
- Analytics Dashboards: Deeper insights and predictive stats for individuals and groups.
- Global Payments: Extend Stripe to support international currencies and payment methods.
Built With
- bolt.new
- netlify
- supabase



Log in or sign up for Devpost to join the conversation.