# FutarchyRealityProxy

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

## Variables

### conditionalTokens

```solidity
contract IConditionalTokens conditionalTokens
```

*Conditional Tokens contract.*

### realitio

```solidity
contract IRealityETH_v3_0 realitio
```

*Reality.eth contract.*

## Functions

### constructor

```solidity
constructor(contract IConditionalTokens _conditionalTokens, contract IRealityETH_v3_0 _realitio) public
```

*Constructor.*

**Parameters**

| Name                | Type                        | Description                          |
| ------------------- | --------------------------- | ------------------------------------ |
| \_conditionalTokens | contract IConditionalTokens | Conditional Tokens contract address. |
| \_realitio          | contract IRealityETH\_v3\_0 | Reality.eth contract address.        |

### resolve

```solidity
function resolve(contract FutarchyProposal proposal) external
```

*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**

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://seer-3.gitbook.io/seer-documentation/developers/contracts/futarchy-test/futarchyrealityproxy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
