This project demonstrates how basic bets can be made in Solidity. It is built just to proof it is possible.
Someone deploys the contract and then different users place bets. In the constructor there are a parameters that define:
- oracle from which the price is being fetched
- when bidding should not longer be accepted
- after what time the final result should be validated and when rewards can be paid out
- simplify smart-contract code
- make all the necessary tests
- accept different collateral types
- rebuild by using minimal proxy
- accept votes in "commit-reveal" scheme, so no one can see what the bets are