pub async fn exchange_rates(
state: &GovernanceReadApi,
system_state_summary: &SuiSystemStateSummary,
) -> Result<Vec<ValidatorExchangeRates>, IndexerError>
Expand description
Cached exchange rates for validators for the given epoch, the cache size is 1, it will be cleared when the epoch changes. rates are in descending order by epoch.
ยงCaching
This is a cached function that uses the EXCHANGE_RATES
cached static.