Skip to content

CircuitBreaker

Description

Source: contracts/CircuitBreaker.sol

Variables

CONTRACT_NAME

Source

Type: bytes32

Constructor

constructor

Source

Details

Signature

constructor(address _owner, address _resolver)

Visibility

public

State Mutability

``

Views

circuitBroken

Source

Details

Signature

circuitBroken(address oracleAddress) view returns (bool)

Visibility

external

State Mutability

view

isDeviationAboveThreshold

Source

Details

Signature

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

Visibility

external

State Mutability

view

isInvalid

Source

Details

Signature

isInvalid(address oracleAddress, uint256 value) view returns (bool)

Visibility

external

State Mutability

view

lastValue

Source

Details

Signature

lastValue(address oracleAddress) view returns (uint256)

Visibility

external

State Mutability

view

priceDeviationThresholdFactor

Source

Details

Signature

priceDeviationThresholdFactor() view returns (uint256)

Visibility

external

State Mutability

view

resolverAddressesRequired

Source

Details

Signature

resolverAddressesRequired() view returns (bytes32[] addresses)

Visibility

public

State Mutability

view

Restricted Functions

probeCircuitBreaker

Source

Details

Signature

probeCircuitBreaker(address oracleAddress, uint256 value) returns (bool circuitBroken)

Visibility

external

State Mutability

``

Requires

Modifiers

resetLastValue

Source

Details

Signature

resetLastValue(address[] oracleAddresses, uint256[] values)

Visibility

external

State Mutability

``

Modifiers

Internal Functions

_isDeviationAboveThreshold

Source

Details

Signature

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

Visibility

internal

State Mutability

view

_isRateOutOfBounds

Source

Details

Signature

_isRateOutOfBounds(address oracleAddress, uint256 current) view returns (bool)

Visibility

internal

State Mutability

view

systemStatus

Source

Details

Signature

systemStatus() view returns (contract ISystemStatus)

Visibility

internal

State Mutability

view

Modifiers

onlyProbers

Source

Events

CircuitBroken

Source

Signature: CircuitBroken(address oracleAddress, uint256 previousValue, uint256 newValue)

LastValueOverridden

Source

Signature: LastValueOverridden(address oracleAddress, uint256 previousValue, uint256 newValue)