Writing smart contract (blockchain)

Job ID: 32381784

Budget: $250 – $750 USD

To incorporate coin toss (50% chance) game into existing NFT game based on BSC. Concept of game feature similar to https://degencoinflip.com/.

SCOPE
-execute coin toss algorithm (50% probability of win/loss). Random outcome.
-winner wins % of stake based on odds, loser loses all
-staking of existing cryptocurrency
-exceptions to be highlighted and addressed
-smart contract to clear audit by reputable smart contract auditor

NOT IN SCOPE
-game backend and frontend
-cryptocurrency creation

Workflow:
-user selects amount to bet
-user connects metamask wallet to stake
-if user wins, admin wallet transfer winnings to user. Else, user transfers losses to admin wallet.
-win/loss status made available for animation on frontend