Wager Up
Wager Up was a concept build: a real-time skill-based wagering platform for golf, esports, basketball, football, darts, and bowling, with live game state sync, integrated payments, and a modern animated UI.
Retired in 2026. Wager Up was a concept build and is no longer running. This page is kept as a record of how it was built.

The Concept
Wager Up was designed as a platform where players would compete head-to-head in skill-based competitions with real money on the line. The idea was that every outcome would be decided by player skill, so you were betting on your own performance.
Players created matches, set wager amounts, and competed across 18 different game types in 6 categories. The platform handled match creation, opponent matching, real-time chat, wallet management, and automatic payout to winners.
What It Included
- 6 game categories: Golf, Video Games, Basketball, Football, Darts, Bowling
- Real-time match updates via WebSocket (Socket.IO)
- Digital wallet with hold/capture/release pattern for wagers
- Stripe Checkout for deposits with webhook verification
- Google OAuth authentication
- In-match chat with message persistence
- Leaderboard with win/loss tracking
- Age verification and terms acceptance gate
Architecture & Technology
React 19
Modern frontend with Tailwind CSS and Framer Motion
FastAPI
Async Python backend with REST API
Socket.IO
Real-time bidirectional communication
Stripe
Deposits, webhook verification, idempotent processing
Google OAuth
Secure authentication with session cookies
AWS ECS Fargate
Containerized deployment with CI/CD
How the Wallet System Worked
Hold / Capture / Release
When a player created or joined a match, the wager amount was placed on hold — deducted from their available balance but not yet spent. This prevented double-spending even under concurrent requests.
When the match completed, holds were captured (money left the wallet) and the winner received the total pot. If a match was cancelled, holds were released and funds returned to the available balance.
Race Condition Protection
Financial operations used SQLite's BEGIN IMMEDIATE to acquire write locks before balance checks. This prevented two concurrent requests from both passing a balance check before either deducted.
Match joining used atomic UPDATE statements with WHERE conditions — if two players tried to join the same match simultaneously, only one succeeded. The other got a clean error message.
Security & Reliability
Google OAuth 2.0
Secure authentication with proxy header support behind ALB
Atomic Wallet Operations
BEGIN IMMEDIATE transactions prevent double-spend race conditions
Rate Limiting
Per-endpoint limits on auth, deposits, match creation, and result reporting
Security Headers
HSTS, X-Frame-Options, CSP, Referrer-Policy on all responses
Locked CORS
Origin-restricted CORS on both HTTP and WebSocket connections
Input Validation
Wager amount limits, message length caps, and Pydantic request validation
The Build Journey
Wager Up came together in focused phases — each one shipped something usable.
Auth + Match Creation
Google OAuth, user profiles, and the core match creation flow. Users could create a match, set a wager, and pick a game type. No real money yet.
Wallet + Stripe Deposits
Added the digital wallet with hold/capture/release, Stripe Checkout for deposits, and webhook-driven balance updates. This was the riskiest phase — we spent extra time on concurrency and idempotency.
Real-Time Match Play
Socket.IO integration for live match state, in-match chat, and opponent matching. The frontend transitioned from polling to event-driven updates, cutting latency dramatically.
Game Expansion + Polish
Grew from 2 game types to 18, added leaderboards, age verification, terms gate, and the animated UI using Framer Motion. Full deploy on AWS with CI/CD.
Key Technical Challenges
Preventing double-spend under real concurrency
Two players joining the same match at the same moment could each pass a balance check before either was deducted. We solved this with SQLite's BEGIN IMMEDIATE transactions and atomic UPDATE-WHERE statements. Either one request won cleanly or it errored out — there was no state where both succeeded.
Stripe webhooks that are actually trustworthy
Webhook events arrive late, out of order, and sometimes twice. We verified every webhook signature, stored the event ID for idempotency, and only applied state changes once per event. Balance reconciliation pulled from Stripe on read if there was any ambiguity, so wallet balances stayed accurate.
WebSockets behind an AWS load balancer
Socket.IO behind ALB is fiddly — sticky sessions, CORS, and proxy headers all have to line up or nothing connects. We locked CORS to known origins, configured ALB for WebSocket upgrades, and made the Python backend honor X-Forwarded-* headers so OAuth redirects still worked once deployed.
No Longer Running
Wager Up was a concept build that we retired in 2026. There is no live site to visit; this case study stays up as a record of the work.
Services Behind This Build
Need a Real-Time Platform?
We build interactive, real-time applications with WebSockets, payments, and modern UI. Let's talk about your project.
Get a Free Consultation