What it does

Battle Arena is a decentralized platform where users can place bets on World Tounaments. A bet can be placed for a fixed amout of SATTA tokens, which is the native Token of our platform. We will introduce the feature to provide rare match NFTs to our user. Stats regarding the match and probabilty of winning for each will also be provided to user in next version.

How we built it

We're using React, with Moralis and Chainlink on the Ethereum Kovan blockchain, to create the project. All the smart contracts are written in Solidity. Most of the match data is stored on a chain as currently, it is only text data. I have created a token ‘SATTA’ for our Dapp which is a native ERC20 token for ‘Battle Arena’ used for betting on different matches. (In future we are planning to introduce Liquidity Pools for our token in Uniswap from where a user can swap MATIC token for SATTA). The front of the Dapp is built using React and Moralis helped us so much with communicating with our smart contract through their SDK. As I am a backend developer, I have worked with react for the first time so I had a hard time introducing new features in the front-end. But working with Moralis was a delight as it takes care of the nitty gritties of many things and I was mainly focused on smart contract development. I have used chain link for leveraging off-chain computation offered by it. The Chainlink oracle calls the API of ‘pandascore.co’ to retrieve the live matches of all the supported eGames. The API is called everytime a new Game is clicked by the user for getting the live matches of that game. When the user places a bet on a game he needs to sign two transactions (first for providing the allowance to contract to take SAT tokens from his wallet and the next for signing the transaction of transfer of SAT tokens). The amount of bet is fixed currently (10 SAT tokens) but in future I will provide the functionality to provide the place custom bets. (In future we will build our own chain link oracle) The user cannot place bets after the match has started and after the match ends the rewards will be distributed to all the winners. The amount he will get depends on the number of people betting on the opponent's side. In future I will be extending the platform where the user can also place bets on matches which are hosted in Metaverse platforms like Decentraland and Sandox Apart from above mentioned tools I have also used Remix IDE, Truffle, Ganache and Metamask.

What's next for Battle Arena

Liquidity & Farm pools for SATTA token : These pools should facilitate initial distribution of SATTA token among SATTA stakers and provide a way for users to buy SATTA token using native tokens Air drops of SATTA token : This should faciliate in motivating users to onboard to our platform Oracle node : Currently we are using existing api's and oracle nodes, in future we would like to use The graph protocol with custom api's to get better data to our DApp DAO : We would like to use the concept of DAO for future improvements in contract using SATTA as governance token Backend logic : Currently our betting algorithm is very simplified owing to timing constraints, in future we want to make the algorithm more interesting for our users IPFS : In future we want to use IPFS technology to host our UI in decentralized environment Write Tests : We would like to safe gaurd out DApp with more tests

Built With

Share this project:

Updates