# WeEthWstEthReserveOracle

[Git Source](https://github.com/Ion-Protocol/ion-protocol/blob/88cc595825f1dc2eb738fb93e172a3e8ab7a5c43/src/oracles/reserve/lrt/WeEthWstEthReserveOracle.sol)

**Inherits:** ReserveOracle

Reserve oracle for weETH.

### [Functions](broken://pages/G4a281XrFCP4qYOvhAsQ) <a href="#functions" id="functions"></a>

#### [constructor](broken://pages/G4a281XrFCP4qYOvhAsQ) <a href="#constructor" id="constructor"></a>

Creates a new `weEthwstEthReserveOracle` instance. Provides the amount of wstETH equal to one weETH. wstETH / weETH = eETH / weETH \* ETH / eETH \* wstETH / ETH. ETH / eETH is 1 since eETH is rebasing. Depeg here would reflect in eETH / wETH exchange rate.

*The value of weETH denominated in wstETH by the provider.*

```
constructor(
    uint8 _ilkIndex,
    address[] memory _feeds,
    uint8 _quorum,
    uint256 _maxChange
)
    ReserveOracle(_ilkIndex, _feeds, _quorum, _maxChange);
```

**Parameters**

| Name         | Type        | Description                                                   |
| ------------ | ----------- | ------------------------------------------------------------- |
| `_ilkIndex`  | `uint8`     | of weETH.                                                     |
| `_feeds`     | `address[]` | List of alternative data sources for the weETH exchange rate. |
| `_quorum`    | `uint8`     | The amount of alternative data sources to aggregate.          |
| `_maxChange` | `uint256`   | Maximum percent change between exchange rate updates. \[RAY]  |

#### [\_getProtocolExchangeRate](broken://pages/G4a281XrFCP4qYOvhAsQ) <a href="#getprotocolexchangerate" id="getprotocolexchangerate"></a>

Returns the exchange rate between wstETH and weETH.

```
function _getProtocolExchangeRate() internal view override returns (uint256);
```

**Returns**

| Name     | Type      | Description                             |
| -------- | --------- | --------------------------------------- |
| `<none>` | `uint256` | Exchange rate between wstETH and weETH. |


---

# 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.ionprotocol.io/devs/smart-contract-architecture/oracles/reserve/lrt/weethwstethreserveoracle.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.
