Skip to content

IExchangeRates

Description

Source: contracts/interfaces/IExchangeRates.sol

Structs

RateAndUpdatedTime

Source

Field Type Description
rate uint216 TBA
time uint40 TBA

Views

aggregatorWarningFlags

Source

Details

Signature

aggregatorWarningFlags() view returns (address)

Visibility

external

State Mutability

view

aggregators

Source

Details

Signature

aggregators(bytes32 currencyKey) view returns (address)

Visibility

external

State Mutability

view

anyRateIsInvalid

Source

Details

Signature

anyRateIsInvalid(bytes32[] currencyKeys) view returns (bool)

Visibility

external

State Mutability

view

anyRateIsInvalidAtRound

Source

Details

Signature

anyRateIsInvalidAtRound(bytes32[] currencyKeys, uint256[] roundIds) view returns (bool)

Visibility

external

State Mutability

view

currenciesUsingAggregator

Source

Details

Signature

currenciesUsingAggregator(address aggregator) view returns (bytes32[])

Visibility

external

State Mutability

view

effectiveAtomicValueAndRates

Source

Details

Signature

effectiveAtomicValueAndRates(bytes32 sourceCurrencyKey, uint256 sourceAmount, bytes32 destinationCurrencyKey) view returns (uint256 value, uint256 systemValue, uint256 systemSourceRate, uint256 systemDestinationRate)

Visibility

external

State Mutability

view

effectiveValue

Source

Details

Signature

effectiveValue(bytes32 sourceCurrencyKey, uint256 sourceAmount, bytes32 destinationCurrencyKey) view returns (uint256 value)

Visibility

external

State Mutability

view

effectiveValueAndRates

Source

Details

Signature

effectiveValueAndRates(bytes32 sourceCurrencyKey, uint256 sourceAmount, bytes32 destinationCurrencyKey) view returns (uint256 value, uint256 sourceRate, uint256 destinationRate)

Visibility

external

State Mutability

view

effectiveValueAndRatesAtRound

Source

Details

Signature

effectiveValueAndRatesAtRound(bytes32 sourceCurrencyKey, uint256 sourceAmount, bytes32 destinationCurrencyKey, uint256 roundIdForSrc, uint256 roundIdForDest) view returns (uint256 value, uint256 sourceRate, uint256 destinationRate)

Visibility

external

State Mutability

view

getCurrentRoundId

Source

Details

Signature

getCurrentRoundId(bytes32 currencyKey) view returns (uint256)

Visibility

external

State Mutability

view

getLastRoundIdBeforeElapsedSecs

Source

Details

Signature

getLastRoundIdBeforeElapsedSecs(bytes32 currencyKey, uint256 startingRoundId, uint256 startingTimestamp, uint256 timediff) view returns (uint256)

Visibility

external

State Mutability

view

lastRateUpdateTimes

Source

Details

Signature

lastRateUpdateTimes(bytes32 currencyKey) view returns (uint256)

Visibility

external

State Mutability

view

rateAndInvalid

Source

Details

Signature

rateAndInvalid(bytes32 currencyKey) view returns (uint256 rate, bool isInvalid)

Visibility

external

State Mutability

view

rateAndTimestampAtRound

Source

Details

Signature

rateAndTimestampAtRound(bytes32 currencyKey, uint256 roundId) view returns (uint256 rate, uint256 time)

Visibility

external

State Mutability

view

rateAndUpdatedTime

Source

Details

Signature

rateAndUpdatedTime(bytes32 currencyKey) view returns (uint256 rate, uint256 time)

Visibility

external

State Mutability

view

rateForCurrency

Source

Details

Signature

rateForCurrency(bytes32 currencyKey) view returns (uint256)

Visibility

external

State Mutability

view

rateIsFlagged

Source

Details

Signature

rateIsFlagged(bytes32 currencyKey) view returns (bool)

Visibility

external

State Mutability

view

rateIsInvalid

Source

Details

Signature

rateIsInvalid(bytes32 currencyKey) view returns (bool)

Visibility

external

State Mutability

view

rateIsStale

Source

Details

Signature

rateIsStale(bytes32 currencyKey) view returns (bool)

Visibility

external

State Mutability

view

rateStalePeriod

Source

Details

Signature

rateStalePeriod() view returns (uint256)

Visibility

external

State Mutability

view

ratesAndInvalidForCurrencies

Source

Details

Signature

ratesAndInvalidForCurrencies(bytes32[] currencyKeys) view returns (uint256[] rates, bool anyRateInvalid)

Visibility

external

State Mutability

view

ratesAndUpdatedTimeForCurrencyLastNRounds

Source

Details

Signature

ratesAndUpdatedTimeForCurrencyLastNRounds(bytes32 currencyKey, uint256 numRounds, uint256 roundId) view returns (uint256[] rates, uint256[] times)

Visibility

external

State Mutability

view

ratesForCurrencies

Source

Details

Signature

ratesForCurrencies(bytes32[] currencyKeys) view returns (uint256[])

Visibility

external

State Mutability

view

synthTooVolatileForAtomicExchange

Source

Details

Signature

synthTooVolatileForAtomicExchange(bytes32 currencyKey) view returns (bool)

Visibility

external

State Mutability

view

External Functions

rateWithSafetyChecks

Source

Details

Signature

rateWithSafetyChecks(bytes32 currencyKey) returns (uint256 rate, bool broken, bool invalid)

Visibility

external

State Mutability

``