Skip to content
/ solfit Public

blockchain powered fitness accountability platform

License

Notifications You must be signed in to change notification settings

xydv/solfit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solfit

Blockchain-Powered Fitness Accountability Platform

Solfit is a blockchain-powered fitness challenge platform that allows users to participate in step-based fitness challenges, ensuring transparency, fairness, and security using Solana smart contracts where rewards are distributed on-chain, making the process trustless and tamper-proof.

solfit program

Solfit Flow Diagram

πŸš€ Features

πŸ”’ Secure & Transparent

  • All fitness data is validated cryptographically before syncing with the blockchain
  • No centralized authorityβ€”everything is stored and verified on Solana

🎯 Fitness Challenges

  • Create custom step-count challenges with entry fees and rewards
  • Participants must meet daily step goals to win their share of the prize pool
  • Failed participants' stakes get distributed among successful ones

πŸ”„ Seamless Health Data Syncing

  • Uses Google Fit API (or Health Connect for Android users) for step tracking
  • Signed data ensures no cheating or spoofing

πŸ’° Reward Distribution

  • Rewards are automatically distributed via smart contracts
  • Participants who complete challenges get their stake + extra rewards from failed participants

πŸ“œ Solana-Powered Smart Contracts

  • Smart contracts ensure tamper-proof challenge management
  • Funds are held securely in on-chain escrow accounts

πŸ“± Mobile App

  • Built using React Native for a smooth, cross-platform experience
  • Users can join challenges, track progress, and withdraw rewards easily

πŸ›  Tech Stack

Mobile App (React Native)

Mobile app (Android) can be downloaded from the releases section!

  • Built using React Native for cross-platform support
  • Sign In With Solana
  • Health Connect Integration for retrieving step data
Home Page Create Challenge Registered Challenges
Completed Challenges Created Challenges Challenge Details

Backend & Smart Contract (Rust, Anchor)

  • Solana smart contracts for challenge management

solfit program

  • Health data validation using cryptographic signing

step verification

Blockchain Integration

  • Uses Solana blockchain to ensure transparent, immutable challenge tracking
  • Smart contracts handle challenge creation, participation, syncing, and rewards

πŸ“– How It Works

  1. Create Challenge: Users create a challenge by setting a step goal, duration, and entry fee amount
  2. Join Challenge: Participants join by paying the entry fee
  3. Sync Data: Participants sync their step data daily using Health Connect API (Backend Verification)
  4. Track Progress: The blockchain records progress, ensuring no cheating
  5. Withdraw Reward: At the end of the challenge, users who completed the goal win rewards, while failed participants lose their stakes

πŸ”— Getting Started

1. Install Dependencies

yarn install

2. Run the React Native App

yarn android

2. Run the Backend (for Steps Verification)

pnpx wrangler@latest dev

3. Deploy Smart Contracts (Rust + Anchor)

anchor build && anchor deploy

πŸ“’ Future Enhancements

  • Fitbit API Integration πŸ“‘ to support more fitness tracking devices
  • Social Challenges πŸ† to compete with friends in private groups