FutarchyRealityProxy
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
Name
Type
Description
_conditionalTokens
contract IConditionalTokens
Conditional Tokens contract address.
_realitio
contract IRealityETH_v3_0
Reality.eth contract address.
resolve
Resolves the specified proposal.
Parameters
Name
Type
Description
proposal
contract FutarchyProposal
Proposal to resolve. UNTRUSTED.
Pre-condition
This proposal reality questions must be finalized. If there is a reopened question, that question need to be finalized instead.
Logic
If the answer is 0, the proposal is accepted.
For any other value (including if the question resolves to INVALID), the proposal is rejected.
Last updated