IOracleMiddlewareErrors
Defines all the custom errors thrown by the contracts related to the OracleMiddleware contracts.
Errors
OracleMiddlewareWrongPrice
The price returned by an oracle is negative.
error OracleMiddlewareWrongPrice(int256 price);
Parameters
Name | Type | Description |
---|---|---|
price | int256 | The price returned by the oracle. |
OracleMiddlewareWrongAskPrice
The ask price returned by Chainlink data streams is negative.
error OracleMiddlewareWrongAskPrice(int256 askPrice);
Parameters
Name | Type | Description |
---|---|---|
askPrice | int256 | The ask price returned by Chainlink data streams. |
OracleMiddlewareWrongBidPrice
The bid price returned by Chainlink data streams is negative.
error OracleMiddlewareWrongBidPrice(int256 bidPrice);
Parameters
Name | Type | Description |
---|---|---|
bidPrice | int256 | The bid price returned by Chainlink data streams. |
OracleMiddlewarePriceTooOld
The price returned by an oracle is too old.
error OracleMiddlewarePriceTooOld(uint256 timestamp);
Parameters
Name | Type | Description |
---|---|---|
timestamp | uint256 | The timestamp of the price given by the oracle. |
OracleMiddlewarePriceTooRecent
The price returned by an oracle is too recent.
error OracleMiddlewarePriceTooRecent(uint256 timestamp);
Parameters
Name | Type | Description |
---|---|---|
timestamp | uint256 | The timestamp of the price given by the oracle. |
OracleMiddlewarePythPositiveExponent
The Pyth price reported a positive exponent (negative decimals).
error OracleMiddlewarePythPositiveExponent(int32 expo);
Parameters
Name | Type | Description |
---|---|---|
expo | int32 | The price exponent. |
OracleMiddlewareConfValueTooHigh
Indicates that the confidence value is higher than the price.
error OracleMiddlewareConfValueTooHigh();
OracleMiddlewareConfRatioTooHigh
Indicates that the confidence ratio is too high.
error OracleMiddlewareConfRatioTooHigh();
OracleMiddlewareIncorrectFee
Indicates that an incorrect amount of tokens was provided to cover the cost of price validation.
error OracleMiddlewareIncorrectFee();
OracleMiddlewarePythFeeSafeguard
The validation fee returned by the Pyth contract exceeded the safeguard value.
error OracleMiddlewarePythFeeSafeguard(uint256 fee);
Parameters
Name | Type | Description |
---|---|---|
fee | uint256 | The required fee returned by Pyth. |
OracleMiddlewareRedstoneSafeguard
The Redstone price is to divergent from the Chainlink price.
error OracleMiddlewareRedstoneSafeguard();
OracleMiddlewareTransferFailed
The withdrawal of the Ether in the contract failed.
error OracleMiddlewareTransferFailed(address to);
Parameters
Name | Type | Description |
---|---|---|
to | address | The address of the intended recipient. |
OracleMiddlewareTransferToZeroAddress
The recipient of a transfer is the zero address.
error OracleMiddlewareTransferToZeroAddress();
OracleMiddlewareInvalidRecentPriceDelay
The recent price delay is outside of the limits.
error OracleMiddlewareInvalidRecentPriceDelay(uint64 newDelay);
Parameters
Name | Type | Description |
---|---|---|
newDelay | uint64 | The delay that was provided. |
OracleMiddlewareInvalidPenaltyBps
The new penalty is invalid.
error OracleMiddlewareInvalidPenaltyBps();
OracleMiddlewareInvalidRoundId
The provided Chainlink round ID is invalid.
error OracleMiddlewareInvalidRoundId();
OracleMiddlewareInvalidLowLatencyDelay
The new low latency delay is invalid.
error OracleMiddlewareInvalidLowLatencyDelay();
OracleMiddlewareInvalidReportVersion
The Chainlink data streams report version is invalid.
error OracleMiddlewareInvalidReportVersion();
OracleMiddlewareInvalidStreamId
The Chainlink report stream ID is invalid.
error OracleMiddlewareInvalidStreamId();
OracleMiddlewareDataStreamInvalidTimestamp
The Chainlink data streams report timestamp is invalid.
error OracleMiddlewareDataStreamInvalidTimestamp();
OracleMiddlewareDataStreamFeeSafeguard
The validation fee returned by the Chainlink fee manager contract exceeded the safeguard value.
error OracleMiddlewareDataStreamFeeSafeguard(uint256 fee);
Parameters
Name | Type | Description |
---|---|---|
fee | uint256 | The required fee returned by the Chainlink fee manager. |