General purpose Oracle smart contract

I’ve tested and modified the code since I’ve done this video, but the idea is still the same.

Tokens are deposited into the contract, used to vote on oracle configurations (Fees, punishments and such) and also used to back different watchers (oracle verifiers)

  1. A request ticket is filed (query string, data type, “is it subjective?” boolean)
  2. Watchers commit a secret vote
  3. Watchers reveal their vote
  4. If the request ticket is subjective, watchers go through a “attacking phase” for outliers
  5. In finalize request ticket votes are counted up and rewards distributed.