Skip to content

ExchangeCircuitBreaker

Description

Source: contracts/ExchangeCircuitBreaker.sol

Variables

CIRCUIT_BREAKER_SUSPENSION_REASON

Source

Type: uint256

CONTRACT_NAME

Source

Type: bytes32

Constructor

constructor

Source

Details

Signature

constructor(address _owner, address _resolver)

Visibility

public

State Mutability

``

Views

exchangeRates

Source

Details

Signature

exchangeRates() view returns (address)

Visibility

public

State Mutability

view

isDeviationAboveThreshold

Source

Details

Signature

isDeviationAboveThreshold(uint256 base, uint256 comparison) view returns (bool)

Visibility

external

State Mutability

view

lastExchangeRate

Source

Details

Signature

lastExchangeRate(bytes32 currencyKey) view returns (uint256)

Visibility

external

State Mutability

view

priceDeviationThresholdFactor

Source

Details

Signature

priceDeviationThresholdFactor() view returns (uint256)

Visibility

external

State Mutability

view

rateWithInvalid

Source

Details

Signature

rateWithInvalid(bytes32 currencyKey) view returns (uint256, bool)

Visibility

external

State Mutability

view

resolverAddressesRequired

Source

Details

Signature

resolverAddressesRequired() view returns (bytes32[] addresses)

Visibility

public

State Mutability

view

Restricted Functions

resetLastExchangeRate

Source

Details

Signature

resetLastExchangeRate(bytes32[] currencyKeys)

Visibility

external

State Mutability

``

Requires

Modifiers

Internal Functions

_exchangeRates

Source

Details

Signature

_exchangeRates() view returns (contract IExchangeRates)

Visibility

internal

State Mutability

view

_isDeviationAboveThreshold

Source

Details

Signature

_isDeviationAboveThreshold(uint256 base, uint256 comparison) view returns (bool)

Visibility

internal

State Mutability

view

_isRateOutOfBounds

Source

Details

Signature

_isRateOutOfBounds(bytes32 currencyKey, uint256 currentRate) view returns (bool)

Visibility

internal

State Mutability

view

issuer

Source

Details

Signature

issuer() view returns (contract IIssuer)

Visibility

internal

State Mutability

view

systemStatus

Source

Details

Signature

systemStatus() view returns (contract ISystemStatus)

Visibility

internal

State Mutability

view

External Functions

rateWithBreakCircuit

Source

Details

Signature

rateWithBreakCircuit(bytes32 currencyKey) returns (uint256 lastValidRate, bool circuitBroken)

Visibility

external

State Mutability

``

Events

LastRateOverriden

Source

Signature: LastRateOverriden(bytes32 currencyKey, uint256 previousRate, uint256 newRate)