Skip to content

ExchangeRatesWithDexPricing

Description

Source: contracts/ExchangeRatesWithDexPricing.sol

Variables

CONTRACT_NAME

Source

Type: bytes32

Constructor

constructor

Source

Details

Signature

constructor(address _owner, address _oracle, address _resolver, bytes32[] _currencyKeys, uint256[] _newRates)

Visibility

public

State Mutability

``

Views

atomicEquivalentForDexPricing

Source

Details

Signature

atomicEquivalentForDexPricing(bytes32 currencyKey) view returns (address)

Visibility

external

State Mutability

view

atomicPriceBuffer

Source

Details

Signature

atomicPriceBuffer(bytes32 currencyKey) view returns (uint256)

Visibility

external

State Mutability

view

atomicTwapWindow

Source

Details

Signature

atomicTwapWindow() view returns (uint256)

Visibility

external

State Mutability

view

atomicVolatilityConsiderationWindow

Source

Details

Signature

atomicVolatilityConsiderationWindow(bytes32 currencyKey) view returns (uint256)

Visibility

external

State Mutability

view

atomicVolatilityUpdateThreshold

Source

Details

Signature

atomicVolatilityUpdateThreshold(bytes32 currencyKey) view returns (uint256)

Visibility

external

State Mutability

view

dexPriceAggregator

Source

Details

Signature

dexPriceAggregator() view returns (contract IDexPriceAggregator)

Visibility

public

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

Requires

synthTooVolatileForAtomicExchange

Source

Details

Signature

synthTooVolatileForAtomicExchange(bytes32 currencyKey) view returns (bool)

Visibility

external

State Mutability

view

Restricted Functions

setDexPriceAggregator

Source

Details

Signature

setDexPriceAggregator(contract IDexPriceAggregator _dexPriceAggregator)

Visibility

external

State Mutability

``

Modifiers

Emits

Internal Functions

_dexPriceDestinationValue

Source

Details

Signature

_dexPriceDestinationValue(contract IERC20 sourceEquivalent, contract IERC20 destEquivalent, uint256 sourceAmount) view returns (uint256)

Visibility

internal

State Mutability

view

Requires

Events

DexPriceAggregatorUpdated

Source

Signature: DexPriceAggregatorUpdated(address newDexPriceAggregator)