DeSuiLabs
  • ๐ŸงชDeSuiLabs
  • ๐ŸŸฃSui Coin Flip
    • Overview
    • Transparency
    • DeSuiLabs NFTs
    • Fees
    • Mechanics
    • Tokens
    • How to Play
    • FAQs
    • Flip Responsibly
    • Future Vision
  • ๐Ÿง‘โ€๐Ÿ”ฌDeSui NFTs
Powered by GitBook
On this page
  1. Sui Coin Flip

Mechanics

How does it work?

PreviousFeesNextTokens

Last updated 1 year ago

SuiFrens x DeSuiLabs Coin Flip

โ€‹

DeSui Coin Filp is a double or nothing 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 (minus ):

User: bets 0.5 SUI on HEADS.

Smart contract: HEADS โœ…

-> Smart Contract sends 1 SUI to user wallet

If a user guesses incorrectly, the user receives nothing and the smart contract sends the wager into the house balance.

User: bets 0.5 SUI on TAILS.

Smart contract: HEADS โŒ

-> Smart Contract sends 0.5 SUI to house wallet

โ€‹

๐ŸŸฃ
fees