Page cover image

๐Ÿ”งMechanics

How does it work?

is a smart contract with 50/50 odds of heads or tails.

A user bets on heads or tails. If they guess correctly, they win and the smart contract loses. A loss triggers the smart contract to send the user double their initial wager:

User: bets 0.5 SUI on HEADS.
Smart contract: HEADS โœ…

Smart Contract sends 1 SUI to user wallet

If a user guesses incorrectly, the smart contract sends the players wager into the house wallet:

User: bets 0.5 SUI on TAILS.
Smart contract: HEADS โŒ

Smart Contract sends 0.5 SUI to house wallet

Last updated