MoneyRace

Save with friends on Sui. Use your wallet or just Google. Earn real DeFi yields.

MoneyRace

Created At

HackMoney 2026

Project Description

Money Race is an AI-powered social savings protocol built on Sui that helps users build consistent saving habits through group accountability and optimized DeFi yield generation.

Users create or join "savings rooms" where participants commit to depositing a fixed amount of USDC weekly. Funds are deployed to Sui lending protocols to generate real yields. Consistent savers earn rewards; those who miss deposits forfeit penalties redistributed to committed participants.

Powered by EigenAI, our platform recommends the optimal Sui DeFi protocol for your deposits—whether it's Scallop, NAVI, Suilend, or others—based on current APY rates, risk levels, and your savings goals. The AI analyzes real-time protocol data to maximize your returns.

Onboarding is seamless via Sui's zkLogin—start saving with just Google, no wallet or gas fees needed. Crypto-native users can connect wallets directly.

Reward Distribution & Penalty Formula:

Money Race uses a "Compliant Players Win" model — users who fulfill all deposit commitments earn rewards funded by penalties from non-compliant players plus yield generated from DeFi lending.

  1. Penalty Calculation: When a player misses a deposit deadline, a penalty is deducted from their locked vault balance:

penalty_amount = missed_deposit_amount × penalty_rate penalty_rate is set by the room creator (default: 10%) Penalties accumulate in a shared Penalty Pool within the room 2. Yield Generation: All deposited USDC is routed to DeFi lending protocols (Scallop, NAVI, or Suilend) based on EigenAI recommendations:

yield_pool = total_deposited_usdc × APY × (room_duration_days / 365) 3. Total Reward Pool:

total_reward_pool = penalty_pool + yield_pool 4. Reward Distribution (Pro-Rata to Compliant Players): At room completion, each compliant player receives their original deposits back plus a share of the reward pool proportional to their total deposits:

player_reward = (player_total_deposits / total_compliant_deposits) × total_reward_pool final_payout = player_total_deposits + player_reward 5. Non-Compliant Player Payout:

non_compliant_payout = player_total_deposits - total_penalties_incurred 6. Edge Cases:

If all players are compliant — rewards come purely from yield, shared proportionally If all players default — remaining funds returned minus penalties, unclaimed pool held in contract If only one compliant player — that player receives the entire reward pool Example Scenario: 4 players, 100 USDC/week for 4 weeks (10% penalty rate, 5% APY):

Player Deposits Made Penalties Status Alice 4/4 (400 USDC) 0 Compliant Bob 4/4 (400 USDC) 0 Compliant Carol 3/4 (300 USDC) 10 USDC Non-Compliant Dave 2/4 (200 USDC) 20 USDC Non-Compliant

penalty_pool = 10 + 20 = 30 USDC yield_pool = 1,300 × 0.05 × (28/365) ≈ 4.99 USDC total_reward = 34.99 USDC

Alice's payout = 400 + 17.50 = 417.50 USDC Bob's payout = 400 + 17.50 = 417.50 USDC Carol's payout = 300 - 10 = 290 USDC Dave's payout = 200 - 20 = 180 USDC The more players default, the higher the rewards for those who stay committed — creating a positive-sum game for disciplined savers.

Key features:

AI-powered Sui DeFi protocol recommendations via EigenAI Gasless transactions through sponsored relayer Web2 login (Google zkLogin) or Web3 wallet support Private rooms with password protection Real-time leaderboards and progress tracking Non-custodial smart contracts Money Race bridges traditional savings clubs with modern DeFi, using AI to route your funds to the best-performing protocols on Sui.

Our Docs : https://moneyrace.gitbook.io/moneyracedocs/

How it's Made

Money Race is built on a modern Web3 stack optimized for seamless user experience and DeFi composability.

SMART CONTRACTS (Move on Sui): We wrote custom Move modules for room management, vault deposits, penalty calculations, and reward distribution. The contract handles periodic deposit tracking, enforces commitment rules, and manages USDC flows to/from lending protocols. We implemented password-protected private rooms using on-chain keccak256 hash verification—passwords never touch the blockchain in plaintext.

BACKEND (Node.js + Express + TypeScript): Our relayer service is the backbone of gasless UX. It sponsors all transactions using a funded wallet, enabling users to interact with Sui without holding SUI tokens. We use Prisma ORM with PostgreSQL for off-chain room metadata and user session management. The backend also indexes blockchain events (PlayerJoined, DepositMade) for real-time participant tracking.

FRONTEND (Next.js 14 + TailwindCSS): React-based dashboard with real-time room status, leaderboards, and transaction history. We integrated @mysten/sui SDK for blockchain interactions and built custom hooks for wallet state management.

AUTHENTICATION (Sui zkLogin): This was our biggest UX win. We integrated Google OAuth with Sui's zkLogin to generate deterministic wallet addresses from Google sub IDs. Users get a consistent Sui address across sessions without ever managing seed phrases. The ephemeral keypair is derived from SHA-256 hash of a salt + Google sub, ensuring the same Google account always maps to the same wallet.

AI INTEGRATION (EigenAI): We connected EigenAI's deepseek-v31-terminus model via REST API to analyze Sui DeFi protocols (Scallop, NAVI, Suilend) and recommend optimal yield routing. The AI compares real-time APY, TVL, and risk metrics to suggest where user deposits should flow for maximum returns.

GASLESS ARCHITECTURE: Every transaction goes through our relayer. The flow: Frontend builds TransactionBlock → User signs with zkLogin ephemeral key → Backend adds sponsor signature → Execute with dual signatures. Users never need SUI for gas.

NOTABLE HACKS:

  1. Deterministic wallet generation from Google OAuth sub field—same user, same wallet, every time
  2. On-chain password hashing for private rooms without exposing plaintext
  3. Event-based participant tracking instead of expensive on-chain queries
  4. Mock USDC faucet with cooldown for testnet demos

PARTNER TECH BENEFITS: • Sui zkLogin: Eliminated wallet onboarding friction completely • EigenAI: Added intelligent protocol recommendations without building ML infrastructure • Sui sponsored transactions: Made the entire app gasless

background image mobile

Join the mailing list

Get the latest news and updates