IExchangeRates¶
Description¶
Source: contracts/interfaces/IExchangeRates.sol
Structs¶
RateAndUpdatedTime
¶
Field | Type | Description |
---|---|---|
rate |
uint216 |
TBA |
time |
uint40 |
TBA |
Views¶
aggregatorWarningFlags
¶
Details
Signature
aggregatorWarningFlags() view returns (address)
Visibility
external
State Mutability
view
aggregators
¶
Details
Signature
aggregators(bytes32 currencyKey) view returns (address)
Visibility
external
State Mutability
view
anyRateIsInvalid
¶
Details
Signature
anyRateIsInvalid(bytes32[] currencyKeys) view returns (bool)
Visibility
external
State Mutability
view
currenciesUsingAggregator
¶
Details
Signature
currenciesUsingAggregator(address aggregator) view returns (bytes32[])
Visibility
external
State Mutability
view
currentRoundForRate
¶
Details
Signature
currentRoundForRate(bytes32 currencyKey) view returns (uint256)
Visibility
external
State Mutability
view
effectiveAtomicValueAndRates
¶
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
¶
Details
Signature
effectiveValue(bytes32 sourceCurrencyKey, uint256 sourceAmount, bytes32 destinationCurrencyKey) view returns (uint256 value)
Visibility
external
State Mutability
view
effectiveValueAndRates
¶
Details
Signature
effectiveValueAndRates(bytes32 sourceCurrencyKey, uint256 sourceAmount, bytes32 destinationCurrencyKey) view returns (uint256 value, uint256 sourceRate, uint256 destinationRate)
Visibility
external
State Mutability
view
effectiveValueAtRound
¶
Details
Signature
effectiveValueAtRound(bytes32 sourceCurrencyKey, uint256 sourceAmount, bytes32 destinationCurrencyKey, uint256 roundIdForSrc, uint256 roundIdForDest) view returns (uint256 value)
Visibility
external
State Mutability
view
getCurrentRoundId
¶
Details
Signature
getCurrentRoundId(bytes32 currencyKey) view returns (uint256)
Visibility
external
State Mutability
view
getLastRoundIdBeforeElapsedSecs
¶
Details
Signature
getLastRoundIdBeforeElapsedSecs(bytes32 currencyKey, uint256 startingRoundId, uint256 startingTimestamp, uint256 timediff) view returns (uint256)
Visibility
external
State Mutability
view
lastRateUpdateTimes
¶
Details
Signature
lastRateUpdateTimes(bytes32 currencyKey) view returns (uint256)
Visibility
external
State Mutability
view
oracle
¶
Details
Signature
oracle() view returns (address)
Visibility
external
State Mutability
view
rateAndInvalid
¶
Details
Signature
rateAndInvalid(bytes32 currencyKey) view returns (uint256 rate, bool isInvalid)
Visibility
external
State Mutability
view
rateAndTimestampAtRound
¶
Details
Signature
rateAndTimestampAtRound(bytes32 currencyKey, uint256 roundId) view returns (uint256 rate, uint256 time)
Visibility
external
State Mutability
view
rateAndUpdatedTime
¶
Details
Signature
rateAndUpdatedTime(bytes32 currencyKey) view returns (uint256 rate, uint256 time)
Visibility
external
State Mutability
view
rateForCurrency
¶
Details
Signature
rateForCurrency(bytes32 currencyKey) view returns (uint256)
Visibility
external
State Mutability
view
rateIsFlagged
¶
Details
Signature
rateIsFlagged(bytes32 currencyKey) view returns (bool)
Visibility
external
State Mutability
view
rateIsInvalid
¶
Details
Signature
rateIsInvalid(bytes32 currencyKey) view returns (bool)
Visibility
external
State Mutability
view
rateIsStale
¶
Details
Signature
rateIsStale(bytes32 currencyKey) view returns (bool)
Visibility
external
State Mutability
view
rateStalePeriod
¶
Details
Signature
rateStalePeriod() view returns (uint256)
Visibility
external
State Mutability
view
ratesAndInvalidForCurrencies
¶
Details
Signature
ratesAndInvalidForCurrencies(bytes32[] currencyKeys) view returns (uint256[] rates, bool anyRateInvalid)
Visibility
external
State Mutability
view
ratesAndUpdatedTimeForCurrencyLastNRounds
¶
Details
Signature
ratesAndUpdatedTimeForCurrencyLastNRounds(bytes32 currencyKey, uint256 numRounds) view returns (uint256[] rates, uint256[] times)
Visibility
external
State Mutability
view
ratesForCurrencies
¶
Details
Signature
ratesForCurrencies(bytes32[] currencyKeys) view returns (uint256[])
Visibility
external
State Mutability
view
synthTooVolatileForAtomicExchange
¶
Details
Signature
synthTooVolatileForAtomicExchange(bytes32 currencyKey) view returns (bool)
Visibility
external
State Mutability
view