Skip to content

masaun/pooltogether-with-sports-event-prediction

Repository files navigation

PoolTogether with Sports Event Prediction🏀⚾️⚽️🏈


【Introduction of PoolTogether with Sports Event Prediction】

  • This is a dApp which integrates PoolTogether with sport event oracle
    • This is combined lottery of PoolTogether and Sports Event Prediction.
    • Participants buy ticket which include rights of prediction of target sports game score.
    • Target of game score prediction is professional sports events (MLB, EPL, NFL, NBA).
      (Utilize Band-Protocol for getting results of game score / Sport Event Oracle: https://developer.bandprotocol.com/datasets/sport-kovan.html )

 

【Flow】:

  • ① Admin choose target league and 1 prediction target game (=1 draw) in all of game every gameday.
    (Draw is opened every gameday)

  • ② Participants predict and buy ticket for joining the sports event pool(=the target game's pool)

    • Participant need to buy a ticket of sports event prediction until the target gameday before (〜23:59 UTC).
    • What participant predict is the game score of target game.
  • ③ The target gameday after, 1st selection. Only participants who prediction was hit are remaining.

  • ④ Then, 2nd selection is coming. Only 1 participant is selected as the winner in participants who are remaining by 1st selection

    • The logic of 2nd selection is as PoolTogether is.
  • ⑤ Prizes awarded

    • Reward is distributed into the winner's address. (Reward is generated by earned interest from the pool)

 


【Setup】

Setup wallet by using Metamask

  1. Add MetaMask to browser (Chrome or FireFox or Opera or Brave)
    https://metamask.io/

  2. Adjust appropriate newwork below

Kovan Test Network

 

Setup backend

  1. Deploy contracts to Kovan Test Network
(root directory)

$ npm run migrate:kovan

 

Setup frontend(※ In progress)

  1. Move to ./client
$ cd client
  1. Add an .env file under the directory of ./client.
$ cp .env.example .env
  1. Execute command below in root directory.
$ npm run client
  1. Access to browser by using link
http://127.0.0.1:3000/pooltogether-with-sports-event-prediction

 


【References】


About

PoolTogether with Sports Event Prediction🏀⚾️⚽️🏈

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published