Comment on page
How does it work?
SuiFrens x DeSuiLabs Coin Flip
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