DEV Community

How a Zero-Rake USDC Coin Flip on Base Actually Stays Fair

Most "provably fair" badges are just vibes slapped on a black box.

If you want to ship a coin flip that real degens will trust with USDC, you have to show your work.

In this post I walk through the exact pattern we use for a 50/50 coin flip on Base:

  • Why we chose USDC-only on Base L2 (and what that does to gas + UX)
  • The commit–reveal flow that keeps either side from gaming the randomness
  • How we structure the smart contract escrow so Yoss.gg never custodies funds
  • The edge cases that actually show up in production (rage quits, stuck matches, griefing)
  • Why we hard-committed to zero rake, even though "just 1%" would be easy money

If you're building anything in the "on-chain betting" bucket — or just trying to sanity-check a "provably fair" claim — you should understand these basics.

Full breakdown is live on Yoss.gg and our dev blog; this version walks you through the architecture from a builder's point of view rather than a marketing one.

Curious where you’d poke holes in it or do it differently.

Top comments (0)