Docs Smart Contracts

Smart Contracts

The game runs on Anchor programs on Solana: the game program that manages the game and the vault (HouseVault) which holds the liquidity that backs your payouts.

Game Program

The game program handles everything you do as a player: it accepts your SOL when you place a bet (BOOM or DOOM), records the round result using the Pyth BTC/USD price feed, and credits your winnings to your UserVault when you claim.

What you do on-chain

  • Place a bet: You send SOL from your UserVault and choose BOOM (price up) or DOOM (price down) for a round. The app calls the program for you.
  • Claim winnings: After a round ends, if you won (or pushed), your payout is credited to your UserVault. You can then withdraw from your UserVault to your wallet.

UserVault

Each player has a UserVault account that holds their SOL for betting and stores their winnings. You must fund your UserVault with SOL before placing bets. When you win, your payout is credited to your UserVault, and you can withdraw from there back to your wallet at any time.

Bet limits

LimitValue
Minimum bet0.001 SOL
Maximum betDynamic (depends on House Vault liquidity)
Keeper fee0.0005 SOL
Treasury fee0.001 SOL

House Vault

The HouseVault holds the house’s SOL liquidity that backs your payouts. Players cannot stake or deposit into the HouseVault — liquidity is provided by the team. When you win, your payout is credited to your UserVault (backed by this house vault). When you lose, your stake (minus fees) is sent to the HouseVault. You never interact with the HouseVault directly; the game program does that in the background.

Program Addresses

You can verify the programs and transactions on Solana Explorer. The app uses these addresses on Solana Mainnet.

Game Program

CbGebmE43iuXLbRanKokR9iXiZA74XMaipxJeCWGFvkn

View on Solana Explorer ↗

GameState PDA

71boPSh9xy7D9SjazJB9fiCPYKcLwARt7X7pqmxpzLD9

View on Solana Explorer ↗

HouseVault PDA

HKNRBkkGkBhVR3PG9StaEmHeYfyBzVd7XVL956n32xah

View on Solana Explorer ↗