Hack Odds

A free-to-play prediction market for hackathons on Solana: trade in-app credits on outcomes, settled on devnet.

Role
Solo, HackSMU 2026
Stack
  • Solana
  • Anchor
  • Rust
  • Next.js
  • TypeScript
  • Supabase
  • Gemini
Links

Live site for Hack OddsCode for Hack OddsDevpost for Hack Odds

Program on Solana Explorer

Hack Odds home page
Home

Problem

Hackathons are full of guesses: will submissions pass 120, which track gets the most entries. I wanted to see what a small market for those questions takes when the chain, not a database, is the source of truth, with no real money involved.

What I built

An Anchor program with eight instructions (config, market and outcome setup, buy, sell, close, resolve, claim), PDAs per market, outcome and position, and a token vault per market. Prices follow a deterministic linear curve and all arithmetic is checked.

A Next.js app with wallet adapters and a demo wallet, a server-side faucet for the devnet token, portfolio and leaderboard pages linked to Solana Explorer, and Supabase as a cache for search and the activity feed.

Gemini drafts a market from one sentence against a JSON schema, and the draft is validated before it can be published.

Results

  • Live on Vercel against the devnet program 5L1zpnbgDyqcWeqKXp3cBmxhZ3kkX9GmsuZuajSxwme5, with Anchor integration tests and Vitest tests for odds and market drafts.
Markets list with binary and multi-outcome markets
Markets