# RedStone

## Oracles Implementation <a href="#oracles-implementation" id="oracles-implementation"></a>

### Gas Wallets <a href="#gas-wallets" id="gas-wallets"></a>

Gas wallets are used to push data to oracle contracts. To ensure uninterrupted oracle operation, Cooper Labs & RedStone are maintaining sufficient gas in them. Anyone can monitor the wallets below to ensure they remain adequately funded at all times.

| Blockchain | Contract Address                                                                                                             |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Eden       | [0x03C6F3e257ddae56bAE2f028Fe0a1A37061ca9CF](https://eden.blockscout.com/address/0x03C6F3e257ddae56bAE2f028Fe0a1A37061ca9CF) |

### Oracles Configuration <a href="#oracles-configuration" id="oracles-configuration"></a>

Settings that dictate how the oracle computes and updates data.

|                     |                       |
| ------------------- | --------------------- |
| Pricing Methodology | Fair Redemption Price |
| Deviation (%)       | 0.2%                  |
| Heartbeat           | 12 hours              |

### Assets Data <a href="#assets-data" id="assets-data"></a>

Available assets on the oracles and the ChainlinkAggregatorV3Interface compatible contracts for each asset feed.

{% tabs %}
{% tab title="Eden" %}

| Price Feed    | Contract Address                                                                                                                               | Type        | Deviation (%) | Heartbeat |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ------------- | --------- |
| eUSD/USD      | [0xb81131B6368b3F0a83af09dB4E39Ac23DA96C2Db](https://eden.blockscout.com/address/0xb81131B6368b3F0a83af09dB4E39Ac23DA96C2Db?tab=contract_code) | Fundamental | 0.2%          | 12 hours  |
| {% endtab %}  |                                                                                                                                                |             |               |           |
| {% endtabs %} |                                                                                                                                                |             |               |           |

{% hint style="info" %}
The pricing methodology fetches the fair redemption price of the eUSD. In order to maximize security, this pricing methodology is deliberately pessimistic to ensure that no manipulation is possible. This means that the price of the eUSD reported by the oracle may be slightly below its actual price.
{% endhint %}

### Data Sources <a href="#data-sources" id="data-sources"></a>

{% tabs %}
{% tab title="Ethereum" %}

|               |                                                                                                                            |
| ------------- | -------------------------------------------------------------------------------------------------------------------------- |
| eUSD/USD      | [0xa474502e8add5e076c40e85831b894b9e98c9d98](https://etherscan.io/address/0xa474502e8add5e076c40e85831b894b9e98c9d98#code) |
| {% endtab %}  |                                                                                                                            |
| {% endtabs %} |                                                                                                                            |

## How the Oracle Works <a href="#how-the-oracle-works" id="how-the-oracle-works"></a>

The fair value oracle reads the eUSD price directly from Ethereum and derives a value from it. The data flow works as follows:

1. Ethereum is queried for the current fair redemption value of eUSD, calculated based on its backing assets and the total amount of eUSD minted.
2. This eUSD/USD redemption value is then written into the deployed oracle and can be retrieved by calling the Chainlink-compatible adapter smart contract for eUSD/USD.


---

# 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://docs.eusd.xyz/developers-hub/onchain-tools/oracles/redstone.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.
