IOracleMiddlewareWithRedstone
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
Name | Type | Description |
---|---|---|
penaltyBps_ | uint16 | The penalty (in basis points). |
setRedstoneRecentPriceDelay
Sets the Redstone recent price delay.
function setRedstoneRecentPriceDelay(uint48 newDelay) external;
Parameters
Name | Type | Description |
---|---|---|
newDelay | uint48 | The maximum age of a price to be considered recent. |
setPenaltyBps
Sets the penalty (in basis points).
function setPenaltyBps(uint16 newPenaltyBps) external;
Parameters
Name | Type | Description |
---|---|---|
newPenaltyBps | uint16 | The new penalty. |