Stox is a blockchain prediction markets platform. To learn more about Stox please visit the Stox website and read the Stox whitepaper (https://www.stox.com/assets/pdf/stox-whitepaper.pdf/)
Our first smart contracts are being released with a Pool Prediction. A Pool Prediction distributes tokens between all winners according to their proportional investment in the winning outcome. The prediction winning outcome is decided by an oracle contract.
A prediction has 3 different outcomes:
- Outcome 1
- Outcome 2
- Outcome 3
- User A placed 100 tokens on Outcome 1
- User B placed 300 tokens on Outcome 1
- User C placed 100 tokens on Outcome 2
- User D placed 100 tokens on Outcome 3
Total token pool: 600
For example, after the prediction ends, the oracle decides the winning outcome is Outcome 1. Users can now withdraw the following token amount from their predictions:
- User A -> 150 tokens (100 / (100 + 300) * 600)
- User B -> 450 tokens (300 / (100 + 300) * 600)
- User C -> 0 tokens
- User D -> 0 tokens
- Initializing - The status when the prediction is first created. During this stage we define the prediction outcomes.
- Published - The prediction is published and users can now predict on the different outcomes.
- Resolved - The prediction is resolved and users can withdraw their winnings.
- Paused - The prediction is paused and users can no longer make predictions until the prediction is published again.
- Canceled - The prediction is canceled. Users can get their STX refunded to them.