πŸ†Determine the Winner

iRaz utilizes Chainlink VRF (Verifiable Random Function) for generating randomness in its processes. As a result, when the lister wants to obtain a random number for the winner, they are required to confirm a transaction, which triggers the request for a random number from the Chainlink VRF system. This ensures a transparent and verifiable source of randomness within the iRaz ecosystem.

Step 1: Approve the Transaction

Once all of the spots fill on your raffle the button 'Spin for The Winner' will become available for you to click. Once clicked the 'Get the Winner' modal will appear.

All you need to do on this modal is click the 'Get winner' button and approve the transaction. All of the Randomness will be handled for you by the iRaz contract which offloads it to Chainlink. Once the iRaz contract receives a response from Chainlink the winning position will be determined automatically using the random nonce.

The Chainlink (VRF) takes a few minutes to process and verify the nonce so check back in 3-5 minutes to see who the winner was! You will also receive a notification on the site once the winner is picked.

Step 2: View the Winner

Once the winner gets pick: the users that entered, the winner and yourself will receive a notification of who won the Raffle!

You can reload the page or click on the notification to now see who the winner was.

Now it is up to the user to go and claim their winnings for it! Once that happens your funds will be released to your wallet from the DApp.

Last updated