0xf51e7328…9f7dsent to0x56b91900…5dc5·#3,546,903·view on Etherscan
Wagering Smart ContractWager Smart Contract Project
Background: Users will configure a wager from our website (ideally, an Ethereum Dapp). Users will be able to select a participant/team in a match and then supply the following variables via an interface:
1. For American Football: (a) Point Spread; (b) Amount
2. For other sports (e.g., European Football, Baseball, Basketball, Hockey): (a) Point Spread; (b) Odds; (c) Amount
This Project: The above variables would result in a smart wagering contract that the User would fund with Ethereum. Here, we are effectively looking for two contracts for the two examples above.
The Odds variable will have the effect of changing the amount that can be accepted by other users. For example: A basketball wager on Celtics with Spread 5.5, Odds 2:1 and funded at 10 ether could be accepted by another user up to 20 ether (to account for the 2:1 Odds variable)
Until a wager is accepted by another User, the creator of the bet could cancel it.
Each match associated with a wager will have a time-stamped deadline, which will be the match start time less 2 minutes. If no User accepts the wager by match start time, then funds are returned to the creator of the wager.
Prevailing party will need to be determined from an oracle. Initially, this will be our website. We likely will scrape several APIs to determine prevailing parties in each match, then aggregate a table of winners based on a consensus of APIs we scrape.