Skip to main content

IOraclePassThrough

interface to get data from the Scaling Price Oracle

Methods

currPegPrice

function currPegPrice() external view returns (uint256)

function to get the current oracle price for the entire system

Returns

NameTypeDescription
_0uint256undefined

getCurrentOraclePrice

function getCurrentOraclePrice() external view returns (uint256)

function to get the current oracle price for the entire system

Returns

NameTypeDescription
_0uint256undefined

read

function read() external view returns (struct Decimal.D256 price, bool valid)

function to get the current oracle price for the OracleRef contract

Returns

NameTypeDescription
priceDecimal.D256undefined
validboolundefined

scalingPriceOracle

function scalingPriceOracle() external view returns (contract IScalingPriceOracle)

reference to the scaling price oracle

Returns

NameTypeDescription
_0contract IScalingPriceOracleundefined

updateScalingPriceOracle

function updateScalingPriceOracle(contract IScalingPriceOracle newScalingPriceOracle) external nonpayable

function to update the pointer to the scaling price oracle requires approval from both VOLT and FRAX governance to sign off on the change

Parameters

NameTypeDescription
newScalingPriceOraclecontract IScalingPriceOracleundefined

Events

ScalingPriceOracleUpdate

event ScalingPriceOracleUpdate(contract IScalingPriceOracle oldScalingPriceOracle, contract IScalingPriceOracle newScalingPriceOracle)

event emitted when the scaling price oracle is updated

Parameters

NameTypeDescription
oldScalingPriceOraclecontract IScalingPriceOracleundefined
newScalingPriceOraclecontract IScalingPriceOracleundefined