C

CryptoBet

Predict Cryptocurrency Prices to Win Money and NFT Trophies

C

CryptoBet

Predict Cryptocurrency Prices to Win Money and NFT Trophies


The problem CryptoBet solves

We aim to create an decentrailized app inspired by Dream11. Instead of making predictions based on player's performance, our platform will be a test of crypto trading skills of the players. They'll bet on the market value performances of cryptocurrencies for a set duration.

The architecture of our project goes as follows :
To buy in the pool, each user selects 3 tokens and they are then send in priority in the pool and their current price feeds are calculated and stored via mapping to the user’s address called as InitialState.
For calculating the price feeds, we’re using Chainlink v3 interface with different aggregator addresses for different tokens and this entire architecture is built and run on Polygon Chain.
Once all the bets are placed and the pools are closed, we call the finalize function. Inside this, all the addresses are taken with their InitialState and tokens selected and the final price is calculated with the price feed. This final price is subtracted from the initial amount to find the percentage difference of a particular user. Once the difference for all the users has been calculated, the highest scorer is declared and is given the prize amount.

Discussion