UltimateOracle

contract UltimateOracle is Proxied, Oracle, UltimateOracleData
Title:Ultimate oracle contract - Allows to swap oracle result for ultimate oracle result
Author:Stefan George - <stefan@gnosis.pm>
function setForwardedOutcome()
public

Allows to set oracle outcome

function challengeOutcome(int _outcome)
public

Allows to challenge the oracle outcome

Parameters:
  • _outcome – Outcome to bid on
function voteForOutcome(int _outcome, uint amount)
public

Allows to challenge the oracle outcome

Parameters:
  • _outcome – Outcome to bid on
  • amount – Amount to bid
function withdraw()
public
returns (uint amount)

Withdraws winnings for user

Return:Winnings
function isChallengePeriodOver()
public
view
returns (bool)

Checks if time to challenge the outcome is over

Return:Is challenge period over?
function isFrontRunnerPeriodOver()
public
view
returns (bool)

Checks if time to overbid the front runner is over

Return:Is front runner period over?
function isChallenged()
public
view
returns (bool)

Checks if outcome was challenged

Return:Is challenged?
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