Inspiration

Building decentralized applications has been our target. Often we love a platform where there is little or no centralized activity. This has prompted us to build this project specifically for this hackathon. Again, we are fans of chainlink stuffs, so we often try things out when its from Chainlink. But this time, we love to build for production which is our target

What it does

RandoBET is a decentralized lottery platform built on the Avalanche and Polygon blockchain. It offers users a secure and transparent way to participate in lottery games with various pool sizes ranging from $5 to $2000. The platform utilizes blockchain technology and Chainlink oracles to ensure the fairness and randomness of the lottery process.

Key Features

Decentralized: RandoBET is built on the Avalanche and Polygon blockchain, eliminating the need for intermediaries and ensuring trustless transactions. Transparent: All lottery transactions are recorded on the blockchain, providing verifiable proof of fairness and randomness. Secure: RandoBET employs robust security measures to protect user funds and prevent fraudulent activities. User-Friendly: The platform features a simple and intuitive interface that is easy to navigate. Multiple Pool Options: Users can choose from a variety of pool sizes to suit their risk appetite. Chainlink Integration: RandoBET utilizes Chainlink VRF (Verifiable Random Function) for provably fair random number generation and Chainlink Keeper service for automated time-based tasks. Gameplay Connect Wallet: Users connect their compatible cryptocurrency wallet to the THunt platform. Select Pool: Users choose the pool they wish to participate in, ranging from $5 to $2000. Deposit Funds: Users deposit the required amount of cryptocurrency based on the selected pool. Play Lottery: Upon reaching a predetermined time interval, Chainlink Keeper triggers the lottery draw process. Random Number Generation: Chainlink VRF generates a provably fair random number. Determine Winnings: The generated random number determines the user's stake in the pool. Some users may win more than their initial stake, while others may lose all they wagered. Distribution of Winnings: Winnings are automatically distributed to the winning participants.

  1. Imagine a blockchain game with a daily raffle.

  2. Players contribute tokens to the raffle pool.

  3. AI analyzes player data and assigns probabilities of winning based on their contributions and gameplay activity.

  4. At the end of the day, Chainlink Keeper triggers a smart contract function. The function uses Chainlink VRF to generate a random number.

  5. The AI combines the random number with the assigned probabilities to select a winner.

  6. The winner receives the entire prize pool, and the process starts again the next day.

  7. AI-powered scoring: In addition to VRF-based random selection, AI can analyze player data and assign scores based on their contributions, performance, or other relevant factors. This can be combined with the VRF-generated random number to select winners with a higher likelihood of being active and engaged players, promoting a more robust and dynamic player pool.

  8. Adaptive probabilities: AI can continuously learn and adapt based on new player data and game dynamics. This allows for adjusting the winning probabilities over time to ensure fairness and prevent strategies that exploit the system.

How we built it

We have employed the following stacks and steps to build this dapp:

Technology Stack

Blockchain: Avalanche, Polygon blockchain Smart Contracts: Solidity Front-End: React, TypeScript Back-End: Node.js, Express.js Oracle: Chainlink VRF, Chainlink Keeper Security

RandoBET implements various security measures to safeguard user funds and prevent fraudulent activities: Smart Contract Audits: The smart contracts governing lottery operations undergo rigorous audits by reputable blockchain security firms. Secure Wallet Integration: RandoBET only integrates with trusted and secure cryptocurrency wallets. Regular Security Updates: The platform undergoes regular security updates to address any vulnerabilities. Chainlink Integration: Chainlink VRF provides provably fair random number generation, while Chainlink Keeper ensures timely and secure execution of lottery draws. Future Plans The RandoBET team has ambitious plans for the future, including: Introducing new lottery game formats Introducing AI for game decision-making, player rewards, and game customization. Implementing tokenomics for platform governance and rewards Expanding to additional blockchain networks Developing mobile applications for iOS and Android

Conclusion RandoBET revolutionizes the lottery experience by combining blockchain technology and Chainlink oracles to deliver a provably fair, secure, and transparent platform. With its innovative features, user-friendly interface, and commitment to security, RandoBET is set to become a leading decentralized lottery platform.

Challenges we ran into

Building hasn't been easy. We understand what it takes to solve errors.

Accomplishments that we're proud of

Completing this project to this stage deeply encouraged us.

What we learned

Going through the Chainlink documentation opens our eyes to many hidden opportunities and benefits of using Oracle and other services like Tencent. We indeed marveled at the Chainlink's competence

What's next for RandoBet

We will continuously improve RandoBet until we are live on the mainnet.

Interact with the demo App

To interact with the dApp, you should already have Metamask or Avalanche Core wallet installed. Please follow the demonstration video for full details.

Built With

  • avalanche
  • chainlinkautomationservice
  • chainlinkkeeper
  • chainlinkvrf
  • etherjs
  • materialui
  • motionreact
  • polygon
  • react
  • solidity
  • tailwindcss
  • typescript
  • web3onboard
Share this project:

Updates