Inspiration
Decentralized prediction market has the advantages of being censorship-resistant and no-custodial ownership.
What it does
Decentralized prediction market on Nebulas
Phases of the Nebulas Prediction
market phase
- open new market
- allow bet
- someone bets (record them)
- market closes (by time)
resolve phase
condition to enter phase: time
- get datresolvea 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
condition to end phase: time
vote phase
condition to enter phase: challenge phase completed
- anyone can stake their coin and vote
condition to end phase: time
distribute 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 voting pool according to voting results.
distribute betting pool coins according to outcome
condition to end phase: when everything in the phase is executed
How I built it
Javascript smart contract on Nebulas
Built With
- nebulas

Log in or sign up for Devpost to join the conversation.