- 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 )
-
① 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.
- Utilize Band-Protocol which is oracle for getting results of game score.
https://developer.bandprotocol.com/datasets/sport-kovan.html
- Utilize Band-Protocol which is oracle for getting results of game score.
-
④ 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)
-
Add MetaMask to browser (Chrome or FireFox or Opera or Brave)
https://metamask.io/ -
Adjust appropriate newwork below
Kovan Test Network
- Deploy contracts to Kovan Test Network
(root directory)
$ npm run migrate:kovan
- Move to
./client
$ cd client
- Add an
.env
file under the directory of./client
.
$ cp .env.example .env
- Execute command below in root directory.
$ npm run client
- Access to browser by using link
http://127.0.0.1:3000/pooltogether-with-sports-event-prediction
- [PoolTogether]:
-
Bounty of "Best PoolTogether Project" at Gitcoin
https://gitcoin.co/issue/pooltogether/pooltogether-contracts/30/4308 -
Repos
- pooltogether-contracts
https://github.com/pooltogether/pooltogether-contracts - pods
https://github.com/pooltogether/pods - pooltogether-contracts-mock
https://github.com/pooltogether/pooltogether-contracts-mock - pooltogether.js
https://github.com/pooltogether/pooltogetherjs
- pooltogether-contracts
-
Article abount "v2"
https://medium.com/pooltogether/inside-pooltogether-v2-0-e7d0e1b90a08
-
- [Band-Protocol]
-
How to create instance of Oracle
https://developer.bandprotocol.com/devs/data-query.html -
Sport Events Oracle (Kovan)
https://developer.bandprotocol.com/datasets/sport-kovan.html
-