ProofSuite / OrFeed

DeFi & Distributed Data Service Aggregator
https://www.orfeed.org
Apache License 2.0
241 stars 152 forks source link

Calculate/Distribute Based on Prediction Market Results #51

Closed mikedeshazer closed 4 years ago

mikedeshazer commented 4 years ago

One example for using OrFeed within a smart contract is to get human oracle results in a prediction market. An example dApp is being developed at https://www.floater.market

Currently, we have a template for an example prediction market here: https://github.com/ProofSuite/OrFeed/blob/master/contracts/examples/ConsumeDataExamples/milestonePredictionMarketTemplate.sol

There are TODOs in the resolveEvent() and emergencyReturnAllFunds() functions. The resolve function should calculate winnings in ETH based on the DAI in the pool, convert, and distribute the ETH to the winners appropriately ending the market. Further the emergency function is leverage by the owner in case the predictionMarket needs to be canceled, and all the dai should be converted back to ETH and returned to the users.

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.2 ETH (43.52 USD @ $217.61/ETH) attached to it as part of the proofsuite fund.

mikedeshazer commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done

Work has been started.

These users each claimed they can complete the work by 4 weeks, 1 day from now. Please review their action plans below:

1) codinmaster has started work.

Look up the TODOs and add the required functionality. Btw, https://www.floater.exchange/ is not working at the moment.

Learn more on the Gitcoin Issue Details page.

It's https://www.floater.market (was originally posted incorrectly)

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Cancelled


The funding of 0.2 ETH (37.78 USD @ $188.9/ETH) attached to this issue has been cancelled by the bounty submitter