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

  1. open new market
  2. allow bet
  3. someone bets (record them)
  4. market closes (by time)

resolve phase

condition to enter phase: time

  1. get datresolvea from oracle
  2. determine the result and record it

condition to end phase: time

challenge phase

condition to enter phase: time, someone triggers it

  1. someone stake their coin and challenges

condition to end phase: time

vote phase

condition to enter phase: challenge phase completed

  1. anyone can stake their coin and vote

condition to end phase: time

distribute phase

condition to enter phase: time

  1. 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
Share this project:
×

Updates