Inspiration
The betting industry has been stale since the growth of Web2. Before, betting was a peer to peer action done inside the venue where the event was taking place. However, now big betting industries and casinos control most of the business. They can steal money with abusive policies, block people from betting if they win too much, limit the amount of options of betting if it does not benefit them, asking for too much information about yourself...
What it does
The mission of this project is giving back the power of betting to the people, giving a safe enviroment controlled by smart contracts for tipsters (people with more money that create bets) and challengers (people who join the bets ). Anyone can be a tipster, challenger or both. One tipster selects one match among the available ones (or adds a match if the webpage does not have it!), customizes the bet with the number or maximum challengers, the odds, the maximum bet value... and adds the possible win for all challengers as a collateral. Then, challengers can join the bet. After the match ends, users must enter and claim the rewards.
How we built it
We developed 2 smart contracts in solidity (One comunicating with the dapp frontend and another one focusing on the chainlink products) and a well-detailed frontend using react. The whole project was developed in hardhat.
Challenges we ran into
We had many difficulties to use Chainlink Functions properly. It was the first time that the Blockchain developer used the products and therefore the result might not be the most polished one. But the main issue was gas cost and quantity. The project seems costly to develop using the smart contracts as a backend, and that hindered the development.
Accomplishments that we're proud of
The frontend is very clean and intuitive. It looks like a professional webpage, done in less than a month by the frontend developers. We managed to use 3 chainlink products. We learned to communicate with a time difference of 6 hours within some members of the group.
What we learned
Group management skills. Working with Chainlink products. Exploring ideas that benefit from Blockchain and web3 technology. Setting up the enviroment to develop a Frontend and the Backend(smart contract)
What's next for P2PBetting
Polishing Chainlink functions to achieve the full potential. Adding more betting options. Creating a backend that could lower the amount of information managed by the contract (thus lowering costs for everyone in the process!)
Avalanche Fuji Contracts
P2PBetting = 0x2AAE406099C6698D0108C4cB38955587923dF8B2 P2PActions = 0x78A125F3222cB9e59364F4Af0edD50acbC4Cd39B
Polygon Amoy Contracts
P2PFront = 0x19D69Ed8b8d9c8CD3236D35F1be1eB8BB868DA31 P2PActions =0xE91E84ac261813f6A7b194A4a37359a13C84E8DA
Chainlink Products
Chainlink Functions
Chainlink Automation
Chainlink DataFeeds
Built With
- hardhat
- react
- solidity
- sports-data
Log in or sign up for Devpost to join the conversation.