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
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
getCurrentOraclePrice
function getCurrentOraclePrice() external view returns (uint256)
function to get the current oracle price for the entire system
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
read
function read() external view returns (struct Decimal.D256 price, bool valid)
function to get the current oracle price for the OracleRef contract
Returns
Name | Type | Description |
---|---|---|
price | Decimal.D256 | undefined |
valid | bool | undefined |
scalingPriceOracle
function scalingPriceOracle() external view returns (contract IScalingPriceOracle)
reference to the scaling price oracle
Returns
Name | Type | Description |
---|---|---|
_0 | contract IScalingPriceOracle | undefined |
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
Name | Type | Description |
---|---|---|
newScalingPriceOracle | contract IScalingPriceOracle | undefined |
Events
ScalingPriceOracleUpdate
event ScalingPriceOracleUpdate(contract IScalingPriceOracle oldScalingPriceOracle, contract IScalingPriceOracle newScalingPriceOracle)
event emitted when the scaling price oracle is updated
Parameters
Name | Type | Description |
---|---|---|
oldScalingPriceOracle | contract IScalingPriceOracle | undefined |
newScalingPriceOracle | contract IScalingPriceOracle | undefined |