## A BetGame of ETH Bull or Bear Built By Pragma
User bets the price of ETH after a period of time.
If correct, will be rewarded, otherwise will lose the principal.
Use two function of Pragma: `get_data_median` and `get_last_checkpoint_before`smart
Contract deployed on testnet: https://testnet.starkscan.co/contract/0x04231fb34555911b99d43f7a44154aa5f63da0c0163b75602d79c2c3f856196b
## STEP
1. user approves eth to game: https://testnet.starkscan.co/tx/0x467c8d51900238ab4fc89b0a7c19c56a0f29e635e62773235f85c16db72b888
2. user bets bear with amount 500 in future 20 seconds: https://testnet.starkscan.co/tx/0x2d4ada3de3f66617d5c1f69e7ee3d6aae6c0d4f4929b68562e15e5597250fe
3. user wins and claim rewards: https://testnet.starkscan.co/tx/0xa0d00925eca719b7e8b9c06bf3688df062d966b60297a64c43901a1bf27857
4. user bet bull with amount 500 in future 20 seconds: https://testnet.starkscan.co/tx/0x423f61cd649a0322f100e76956f24acc49191d56d2782bef085748052b62be1
5. user loses the principal
## github:
https://github.com/yangyaczz/BetBullOrBear/