CircuitBreaker¶
Description¶
Source: contracts/CircuitBreaker.sol
Variables¶
CONTRACT_NAME
¶
Type: bytes32
Constructor¶
constructor
¶
Details
Signature
constructor(address _owner, address _resolver)
Visibility
public
State Mutability
``
Views¶
circuitBroken
¶
Details
Signature
circuitBroken(address oracleAddress) view returns (bool)
Visibility
external
State Mutability
view
isDeviationAboveThreshold
¶
Details
Signature
isDeviationAboveThreshold(uint256 base, uint256 comparison) view returns (bool)
Visibility
external
State Mutability
view
isInvalid
¶
Details
Signature
isInvalid(address oracleAddress, uint256 value) view returns (bool)
Visibility
external
State Mutability
view
lastValue
¶
Details
Signature
lastValue(address oracleAddress) view returns (uint256)
Visibility
external
State Mutability
view
priceDeviationThresholdFactor
¶
Details
Signature
priceDeviationThresholdFactor() view returns (uint256)
Visibility
external
State Mutability
view
resolverAddressesRequired
¶
Details
Signature
resolverAddressesRequired() view returns (bytes32[] addresses)
Visibility
public
State Mutability
view
Restricted Functions¶
probeCircuitBreaker
¶
Details
Signature
probeCircuitBreaker(address oracleAddress, uint256 value) returns (bool circuitBroken)
Visibility
external
State Mutability
``
Requires
Modifiers
resetLastValue
¶
Details
Signature
resetLastValue(address[] oracleAddresses, uint256[] values)
Visibility
external
State Mutability
``
Modifiers
Internal Functions¶
_isDeviationAboveThreshold
¶
Details
Signature
_isDeviationAboveThreshold(uint256 base, uint256 comparison) view returns (bool)
Visibility
internal
State Mutability
view
_isRateOutOfBounds
¶
Details
Signature
_isRateOutOfBounds(address oracleAddress, uint256 current) view returns (bool)
Visibility
internal
State Mutability
view
systemStatus
¶
Details
Signature
systemStatus() view returns (contract ISystemStatus)
Visibility
internal
State Mutability
view
Modifiers¶
onlyProbers
¶
Events¶
CircuitBroken
¶
Signature: CircuitBroken(address oracleAddress, uint256 previousValue, uint256 newValue)
LastValueOverridden
¶
Signature: LastValueOverridden(address oracleAddress, uint256 previousValue, uint256 newValue)