Inspiration

The inspiration for SportsChain came from the desire to create a decentralized trading platform that allows sports fans to invest in their favorite teams and see their investments grow based on the real-world performance of the teams. We also wanted to offer a more transparent and secure alternative to traditional sports betting, which is often centralized and focused on short-term events.

What it does

SportsChain enables users to buy, sell, and trade tokens representing sports teams. The value of these tokens fluctuates in real-time based on match results and team performances. Users can invest in their favorite teams long-term and track the growth of their investments.

How we built it

We built SportsChain using several key technologies:

  • Frontend: NextJs and Chakra UI for a responsive and modern user interface.
  • Backend: Node.js and MongoDB to manage user data and team data
  • Smart Contracts: Deployed on the Polygon blockchain to handle token creation and management.
  • Chainlink Functions: To fetch real-time data on match results and betting odds and automatically update token prices.

Team

  • Gérald: Gérald has been immersed in blockchain for ten years and a Blockchain developer for four years. He specializes in tokenization and creates secure solutions. Off-duty, he enjoys Flight Simulator. With four computers, a tablet, and three phones, Gérald always stays connected and creative.
  • Adrien: Adrien is from France and currently works as a security engineer. He learned coding during his studies and also worked as a DevOps engineer for a year. Adrien is passionate about code and continuously seeks to improve his skills and knowledge in the field

Challenges we ran into

We encountered several challenges during the development of SportsChain:

  • Gas Limit Constraints: Managing the gas limit for callback functions in smart contracts was complex. We had to rethink our use of callback functions to circumvent this limitation.
  • Real-time Data Integration: Ensuring the accuracy and timeliness of real-time sports data required setting up scheduled jobs to block trading during matches and update prices after matches.
  • API Calls: Initial integration with the Sportmonk API faced issues, leading us to find another free API and adapt our code accordingly.

Accomplishments that we're proud of

We are proud of creating a functional platform that allows users to invest in sports teams transparently and securely. One of the biggest accomplishments is that even though the team went through struggles , we succeeded to deliver a first version of the project that works autonomously and reflects our initial inspiration.

What we learned

We learned a lot about integrating real-time data into smart contracts. We also strengthened our expertise in frontend and backend development and our ability to overcome complex technical challenges. As a team we went through both goods and harder moments in a very little time to create a project. We faced unexpected events that pushed us to reorganise the initial plan, however succeeding to release this project with all the struggle made it even more tasteful.

What's next for SportsChain

The goal now is to improve the foundation we've built by enhancing the user interface with features such as graphs or detailed team statistics. We will then review all the code, especially the smart contracts . This includes also a careful economic analysis of the price update mechanisms and implementing a system for selling all tokens at the end of each season to assure a stable economy.

Built With

Share this project:

Updates