IReserveFeed

Git Source

Interface for the reserve feeds for Ion Protocol.

Functions

updateExchangeRate

updates the total reserve of the validator backed asset

function updateExchangeRate(uint8 ilkIndex, uint256 reserve) external;

Parameters

NameTypeDescription

ilkIndex

uint8

the ilk index of the asset

reserve

uint256

the total ETH reserve of the asset in wei

getExchangeRate

returns the total reserve of the validator backed asset

function getExchangeRate(uint8 ilkIndex) external view returns (uint256);

Parameters

NameTypeDescription

ilkIndex

uint8

the ilk index of the asset

Returns

NameTypeDescription

<none>

uint256

the total ETH reserve of the asset in wei