IOracleMiddlewareWithRedstone

Git Source

Inherits: IOracleMiddlewareWithPyth

Same as the default oracle middleware, with added support for Redstone

Functions

getPenaltyBps

Gets the penalty for using a non-Pyth price with low latency oracle (in basis points)

function getPenaltyBps() external view returns (uint16 penaltyBps_);

Returns

NameTypeDescription
penaltyBps_uint16The penalty (in basis points).

setRedstoneRecentPriceDelay

Sets the Redstone recent price delay.

function setRedstoneRecentPriceDelay(uint48 newDelay) external;

Parameters

NameTypeDescription
newDelayuint48The maximum age of a price to be considered recent.

setPenaltyBps

Sets the penalty (in basis points).

function setPenaltyBps(uint16 newPenaltyBps) external;

Parameters

NameTypeDescription
newPenaltyBpsuint16The new penalty.