IOracleMiddlewareErrors

Git Source

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

NameTypeDescription
priceint256The price returned by the oracle.

OracleMiddlewareWrongAskPrice

The ask price returned by Chainlink data streams is negative.

error OracleMiddlewareWrongAskPrice(int256 askPrice);

Parameters

NameTypeDescription
askPriceint256The ask price returned by Chainlink data streams.

OracleMiddlewareWrongBidPrice

The bid price returned by Chainlink data streams is negative.

error OracleMiddlewareWrongBidPrice(int256 bidPrice);

Parameters

NameTypeDescription
bidPriceint256The bid price returned by Chainlink data streams.

OracleMiddlewarePriceTooOld

The price returned by an oracle is too old.

error OracleMiddlewarePriceTooOld(uint256 timestamp);

Parameters

NameTypeDescription
timestampuint256The timestamp of the price given by the oracle.

OracleMiddlewarePriceTooRecent

The price returned by an oracle is too recent.

error OracleMiddlewarePriceTooRecent(uint256 timestamp);

Parameters

NameTypeDescription
timestampuint256The timestamp of the price given by the oracle.

OracleMiddlewarePythPositiveExponent

The Pyth price reported a positive exponent (negative decimals).

error OracleMiddlewarePythPositiveExponent(int32 expo);

Parameters

NameTypeDescription
expoint32The 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

NameTypeDescription
feeuint256The 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

NameTypeDescription
toaddressThe 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

NameTypeDescription
newDelayuint64The 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

NameTypeDescription
feeuint256The required fee returned by the Chainlink fee manager.