hackquest logo

YieldFit

Put your money where your motivation is. Stake crypto tokens to commit to fitness challenges. Complete them → earn yield. Quit → lose stake.

視頻

描述

YieldFit 🏃‍♂️💰

Stake to Stay Fit — Web3 Fitness Accountability with Real Yield


🔗 Links

Live Demo

https://yield-fit.vercel.app

GitHub

https://github.com/AqilaRifti/YieldFit

Network

Mantle Sepolia Testnet

Built by

@AqilaRifti


💡 The Problem

80% of gym memberships go unused. Fitness apps have a 95% drop-off rate.

Why? Because there's no real consequence for quitting. Willpower alone isn't enough to keep people accountable to their health goals.


✨ The Solution

YieldFit combines DeFi yield mechanics with fitness accountability.

Stake tokens → Commit to a challenge → Earn yield while working out → Get rewarded for completing, or lose stake for quitting.

Your stake becomes your strength.


🎯 How It Works

1. Connect Wallet     →  MetaMask / WalletConnect
2. Get Test Tokens    →  Faucet gives 1000 yfRWA per hour
3. Create Challenge   →  Pick type, duration, stake amount
4. Daily Check-ins    →  Log your progress on-chain
5. Complete & Earn    →  Stake + Yield + Bonus rewards

Reward Structure

Completion

Outcome

100%

Stake + Yield + 20% Bonus 🎉

80-99%

Stake + Proportional Yield

<80%

50% Slash — lose half your stake

Forfeit

50% Slash — real consequences


🏋️ Features

Challenge Types

  • 👟 Steps — Daily step count goals

  • 💪 Workouts — Exercise session tracking

  • 🧘 Meditation — Mindfulness minutes

  • 💧 Hydration — Water intake goals

  • 😴 Sleep — Rest hour targets

Core Functionality

  • Yield Earning — 5% APY on staked tokens during active challenges

  • Completion Bonuses — Extra 20% yield for perfect completion

  • Accountability Slashing — 50% penalty for failures/forfeits

  • Streak Tracking — Visual calendar of your consistency

  • Progress Charts — See your journey over time

Social Features

  • Guilds — Team up with friends for group challenges

  • Leaderboards — Compete with the community

  • Pooled Stakes — Guild challenges with shared accountability


🛠️ Tech Stack

Smart Contracts

  • Solidity 0.8.20 with OpenZeppelin

  • YieldFitStaking.sol — Challenge lifecycle, staking, rewards

  • MockRWAToken.sol — Yield-bearing ERC20 with faucet

  • Hardhat for development & deployment

  • Deployed on Mantle Sepolia

Frontend

  • Next.js 16 + React 19

  • RainbowKit + wagmi for Web3

  • Supabase for off-chain data

  • shadcn/ui + Tailwind CSS

  • Recharts for data visualization

Infrastructure

  • Mantle Sepolia — Low-cost L2 transactions

  • Vercel — Frontend hosting

  • Supabase — PostgreSQL database


📸 Screenshots

Dashboard

Track your balance, stakes, yield earned, and current streak all in one place.

Challenge Creation

Choose your challenge type, duration (7/14/30/90 days), and stake amount.

Progress Tracking

Visual charts and streak calendar show your fitness journey.


🚀 What We Built During the Hackathon

Built YieldFit from the ground up — a fully functional Web3 fitness accountability platform deployed on Mantle Sepolia. Developed and deployed two smart contracts (YieldFitStaking and MockRWAToken) handling stake management, yield accrual, challenge lifecycle, and guild mechanics with OpenZeppelin security standards. On the frontend, built a complete Next.js application with RainbowKit wallet integration, real-time dashboard with progress charts and streak calendars, challenge creation/check-in/completion flows, and full on-chain to Supabase database synchronization.


🎮 Try It Out

  1. Visit https://yield-fit.vercel.app

  2. Connect your wallet (make sure you're on Mantle Sepolia)

  3. Click the Faucet button to get test tokens

  4. Create your first challenge and start earning!

Testnet Configuration

Network: Mantle Sepolia
Chain ID: 5003
RPC: https://rpc.sepolia.mantle.xyz
Explorer: https://sepolia.mantlescan.xyz

🔮 Future Roadmap

  • 📱 Mobile app with native fitness tracking

  • ⌚ Fitbit / Apple Health / Google Fit integrations

  • 🏢 Corporate wellness B2B programs

  • 🌐 Cross-chain expansion

  • 🗳️ Governance token for protocol decisions


👨‍💻 Built By

AqilaRifti


📄 License

MIT License


YieldFitWhere your stake becomes your strength 💪

Live DemoGitHub

黑客松進展

During this hackathon, we built YieldFit from the ground up a fully functional Web3 fitness accountability platform deployed on Mantle Sepolia. We developed and deployed two smart contracts (YieldFitStaking and MockRWAToken) handling stake management, yield accrual, challenge lifecycle, and guild mechanics with OpenZeppelin security standards. On the frontend, we built a complete Next.js 16 application with RainbowKit wallet integration, real-time dashboard with progress charts and streak calendars, challenge creation/check-in/completion flows, and full on-chain to Supabase database synchronization. Key features implemented include a token faucet for testnet users, multi-type challenges (steps, workouts, meditation, hydration, sleep), 5% APY yield mechanics with 20% completion bonuses, 50% slash penalties for accountability, guild system for team challenges, and leaderboards for community competition — all wired together with proper transaction handling, event parsing, and state management.

技術堆疊

Mantle
React
Next
Solidity
Web3
Fitness
DeFi
SocialFi

籌資狀態

N/A

團隊負責人
SSkia Variants
行業
SocialFiGamingDeFi