Skip to main content
Contract used as a Reality Oracle. Is called to resolve a proposal based on the answer provided.

Variables

conditionalTokens

Conditional Tokens contract.

realitio

Reality.eth contract.

Functions

constructor

Constructor. Parameters

resolve

Resolves the specified proposal. Parameters Pre-condition This proposal reality questions must be finalized. If there is a reopened question, that question need to be finalized instead. Logic
  1. If the answer is 0, the proposal is accepted.
  2. For any other value (including if the question resolves to INVALID), the proposal is rejected.