FutarchyOracle

contract FutarchyOracle is Proxied, Oracle, FutarchyOracleData
Title:Futarchy oracle contract - Allows to create an oracle based on market behaviour
Author:Stefan George - <stefan@gnosis.pm>
function fund(uint funding)
public
 isCreator

Funds all markets with equal amount of funding

Parameters:
  • funding – Amount of funding
function close()
public
 isCreator

Closes market for winning outcome and redeems winnings and sends all collateral tokens to creator

function setOutcome()
public

Allows to set the oracle outcome based on the market with largest long position

function isOutcomeSet()
public
view
returns (bool)

Returns if winning outcome is set

Return:Is outcome set?
function getOutcome()
public
view
returns (int)

Returns winning outcome

Return:Outcome