Coder Social home page Coder Social logo

sbnair / prediction-ticket Goto Github PK

View Code? Open in Web Editor NEW

This project forked from masaun/prediction-ticket

0.0 1.0 0.0 231 KB

Prediction Ticket(for professional sports game). Staked by aToken (which is provided by AAVE)

JavaScript 72.17% HTML 5.26% CSS 22.56%

prediction-ticket's Introduction

Prediction Ticket(for professional sports game)


【Introduction of Prediction Ticket(for professional sports game)】

  • This is a dApp of prediction tickets sales platform for club teams and players and audiences of professional sports. (For example, club team is like Manchester United Football Club in the Premier League of UK)
  • Club teams of professional sports can drive engagement of audiences and increase ticket sales by using Prediction Ticket.
  • Prediction Ticket is included the right of prediction of MVP player of today's game.
    • Explanation how prediction ticket work is below.

【How prediction ticket work?】

For example,

  1. if audiences buy a prediction ticket of 30DAI, 5DAI of them come as the voting right of prediction of MVP player of today's game.

    • It mean when audiences buy a prediction ticket of 30DAI, 5DAI of them is staked and pooled automatically via SmartContract.
      • It is staked and pooled by aToken. Especially, aDAI.
    • 1 voting right per 1 ticket.
  2. Before today's game start, audiences predict MVP player of today's game and select them and submit them.

  3. After today's game end, audiences who prediction was successful (who is called winner) and players who was choosen as MVP can get reward from staked pool.

    • Player who is the most collected voting is choosen as MVP of today's game by SmartContract.
    • Reward amount is that divide total pooled amount by numbers of winners plus MVP player.
      • Reward amount above is calculated and distributed by SmartContract.
      • In the case of being staked by aToken(aDAI), it can increase total pooled amount by interest income which is generated by aToken(aDAI). So that winner of audiences and MVP player can receive more reward amount.

 


【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

Ropsten Test Network

 

Setup backend

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

$ npm run migrate:ropsten

 

Setup frontend

  1. Execute command below in root directory.

$ npm run client
  1. Access to browser by using link
http://127.0.0.1:3000

 


【Work flow】

 


【References】

prediction-ticket's People

Contributors

masaun avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.