Inspiration
Prediction market is always centralized, which isn't as transparent and get into a lot of lawsuits
What it does
Prediction for everything from sports to stock market, whenever the result is challenged we can go into resolve phase where people can challenge the result and stake their own coin, to let the public voting take place. We essentially putting 2 prediction market into one single marketing
How we built it
** market phase **
- open new market
- allow bet
- someone bets (record them)
- market closes (by time)
** resolve phase ** condition to enter phase: time
- get data from oracle
- determine the result and record it condition to end phase: time
** challenge phase ** condition to enter phase: time, someone triggers it
- someone stake their coin and challenges
- anyone can now submit a vote condition to end phase: time
** vote phase ** condition to enter phase: challenge phase completed
- anyone can stake their coin and vote
** distribution phase ** condition to enter phase: time
- determine the final outcome if (challenged) update the final outcome according to voting results distributed the staked coins (in challenge and vote phase) according to votign results. distribute coins according to result condition to end phase: when everything in the phase is executed
Challenges we ran into
Accomplishments that we're proud of
What we learned
What's next for Cosmic Prediction
Built With
- lotionjs
Log in or sign up for Devpost to join the conversation.