> 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/reservefeed.md).

# ReserveFeed

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

**Inherits:** Ownable2Step

### [State Variables](broken://pages/krotr4ZeEEhAqrPp4oa3) <a href="#state-variables" id="state-variables"></a>

#### [exchangeRates](broken://pages/krotr4ZeEEhAqrPp4oa3) <a href="#exchangerates" id="exchangerates"></a>

```
mapping(uint8 ilkIndex => uint256 exchangeRate) public exchangeRates;
```

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

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

```
constructor(address owner) Ownable(owner);
```

#### [setExchangeRate](broken://pages/krotr4ZeEEhAqrPp4oa3) <a href="#setexchangerate" id="setexchangerate"></a>

```
function setExchangeRate(uint8 _ilkIndex, uint256 _exchangeRate) external onlyOwner;
```

#### [getExchangeRate](broken://pages/krotr4ZeEEhAqrPp4oa3) <a href="#getexchangerate" id="getexchangerate"></a>

```
function getExchangeRate(uint8 _ilkIndex) external view returns (uint256);
```
