Skip to content

IExchangeRates

Description

Source: contracts/interfaces/IExchangeRates.sol

Structs

InversePricing

Source

Field Type Description
entryPoint uint256 TBA
upperLimit uint256 TBA
lowerLimit uint256 TBA
frozenAtUpperLimit bool TBA
frozenAtLowerLimit bool TBA

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

canFreezeRate

Source

Details

Signature

canFreezeRate(bytes32 currencyKey) view returns (bool)

Visibility

external

State Mutability

view

currenciesUsingAggregator

Source

Details

Signature

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

Visibility

external

State Mutability

view

currentRoundForRate

Source

Details

Signature

currentRoundForRate(bytes32 currencyKey) view returns (uint256)

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

effectiveValueAtRound

Source

Details

Signature

effectiveValueAtRound(bytes32 sourceCurrencyKey, uint256 sourceAmount, bytes32 destinationCurrencyKey, uint256 roundIdForSrc, uint256 roundIdForDest) view returns (uint256 value)

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

inversePricing

Source

Details

Signature

inversePricing(bytes32 currencyKey) view returns (uint256 entryPoint, uint256 upperLimit, uint256 lowerLimit, bool frozenAtUpperLimit, bool frozenAtLowerLimit)

Visibility

external

State Mutability

view

lastRateUpdateTimes

Source

Details

Signature

lastRateUpdateTimes(bytes32 currencyKey) view returns (uint256)

Visibility

external

State Mutability

view

oracle

Source

Details

Signature

oracle() view returns (address)

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

rateIsFrozen

Source

Details

Signature

rateIsFrozen(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) 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

External Functions

freezeRate

Source

Details

Signature

freezeRate(bytes32 currencyKey)

Visibility

external

State Mutability

``