DEV Community

01100001 01101100 01110000 011
01100001 01101100 01110000 011

Posted on • Originally published at yoss.gg

I Built a Zero-Rake P2P Coin Flip Game on Base L2

Why I Built Yoss.gg

I wanted a simple, fair way to flip a coin for USDC — no house edge, no custody risk, just a pure 50/50 bet between two people on-chain.

So I built Yoss.gg.

How It Works

  1. Pick your side — Heads or Tails
  2. Choose your wager — $1, $5, $10, $25, or $100 USDC
  3. Get matched — Instant matchmaking pairs you with an opponent
  4. Flip settles on-chain — The smart contract on Base L2 handles the escrow and payout

The entire flow takes about 10 seconds. No rake. No fees (just gas, which is ~$0.01 on Base).

The Tech Stack

  • Frontend: Next.js + React, real-time WebSocket updates
  • Backend: Go server handling matchmaking and game verification
  • Chain: Base L2 (Coinbase's Ethereum L2)
  • Smart Accounts: ERC-4337 via Pimlico — users get a smart wallet automatically, no MetaMask required
  • Auth: Privy for seamless login (email, social, or wallet)

Why Base?

Base gives us sub-cent gas fees and fast finality. A coin flip that costs $50 in gas on Ethereum mainnet costs $0.01 on Base. That makes micro-wagers ($1-$5) actually viable.

Why Zero Rake?

Most gambling platforms take 2-10%. We take 0%. The smart contract sends the full pot to the winner. We're betting that a fair game attracts more players than a rigged one.

Try It

Head to yoss.gg and flip someone. It takes 30 seconds to get started.


Built by a small team. Open to feedback.

Top comments (0)