Supported Games
All games use Chainlink VRF for verifiable randomness. Each game has clear rules and deterministic outcome mapping.
Coin Flip
Live
Classic 50/50 coin flip. Choose Heads or Tails and bet against another player.
Odds
50/50
Payout
2x
Min Bet
1 PYUSD
Max Bet
1000 PYUSD
Rules
- Two players bet equal amounts
- One chooses Heads, one chooses Tails
- Chainlink VRF determines the winner
- Winner takes the entire pot
VRF to Outcome Mapping
0 = Tails, 1 = HeadsRock Paper Scissors
Coming Soon
P2P commit-reveal Rock Paper Scissors. Both players commit their choice, then reveal.
Odds
33.3% each
Payout
2x
Min Bet
1 PYUSD
Max Bet
500 PYUSD
Rules
- Both players commit a hashed choice
- After both commit, choices are revealed
- Standard RPS rules apply
- Draws result in a rematch
VRF to Outcome Mapping
0 = Rock, 1 = Paper, 2 = ScissorsDice Roll
Coming Soon
Roll a virtual dice (1-6). Higher roll wins.
Odds
16.67% each
Payout
6x
Min Bet
1 PYUSD
Max Bet
200 PYUSD
Rules
- Both players roll simultaneously
- VRF generates two independent rolls
- Higher number wins
- Ties result in a re-roll
VRF to Outcome Mapping
(VRF % 6) + 1 = Result (1-6)Custom Games
PeerBet's architecture supports custom game contracts. Developers can create new games by implementing the IPeerBetGame interface.
Required Interface
interface IPeerBetGame {
function createGame(uint256 amount) external returns (uint256 gameId);
function joinGame(uint256 gameId) external;
function resolveGame(uint256 gameId, uint256 randomValue) external;
event GameCreated(uint256 indexed gameId, address creator, uint256 amount);
event GameJoined(uint256 indexed gameId, address player);
event GameResolved(uint256 indexed gameId, address winner, uint256 outcome);
}