> For the complete documentation index, see [llms.txt](https://docs.ionprotocol.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionprotocol.io/devs/smart-contract-architecture/oracles/reserve/lrt/rswethwstethreserveoracle.md).

# RswEthWstEthReserveOracle

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

**Inherits:** ReserveOracle

Reserve oracle for rswETH.

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

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

Creates a new `rswEthwstEthReserveOracle` instance. Provides the amount of wstETH equal to one rswETH. wstETH / rswETH = ETH / rswETH \* wstETH / ETH.

*The value of rswETH 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 rswETH.                                                     |
| `_feeds`     | `address[]` | List of alternative data sources for the rswETH 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/zODz7vacMlbqN8eZ9myL) <a href="#getprotocolexchangerate" id="getprotocolexchangerate"></a>

Returns the exchange rate between wstETH and rswETH.

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

**Returns**

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