
LIVE ON AVALANCHE C-CHAIN
Permissionless Roulette
// Deploy provably fair casino games with any ERC-20 token. SHA-256 commit-reveal · Synthetix staking · Sourcify verified.
SHA-256Chain 43114Synthetix StakingSourcify VerifiedAny ERC-20RouletteSlotsCrashCoinflipRangeMinesPlinkoWheel
RouletteGame.solAUDITED
1 import {} from "@openzeppelin/ReentrancyGuard"; 2 import {} from "@openzeppelin/SafeERC20"; 3 4 // Commit-reveal: provably fair 5 function revealBet() nonReentrant {} 6 bytes32 seed = sha256( 7 blockhash(commitBlock), 8 player, amount, betId 9 ); 10 uint8 result = seed % 37; 11 SafeERC20.safeTransfer(payout);
Recent Activity