Skip to main content

ICollateralizationOracleWrapper

Functions

updateIfOutdated

function updateIfOutdated() external

setValidityDuration

function setValidityDuration(
uint256 _validityDuration
) external

Parameters

NameTypeDescription
_validityDurationuint256

setReadPauseOverride

function setReadPauseOverride(
bool newReadPauseOverride
) external

Parameters

NameTypeDescription
newReadPauseOverridebool

setDeviationThresholdBasisPoints

function setDeviationThresholdBasisPoints(
uint256 _newDeviationThresholdBasisPoints
) external

Parameters

NameTypeDescription
_newDeviationThresholdBasisPointsuint256

setCollateralizationOracle

function setCollateralizationOracle(
address _newCollateralizationOracle
) external

Parameters

NameTypeDescription
_newCollateralizationOracleaddress

setCache

function setCache(
uint256 protocolControlledValue,
uint256 userCirculatingFei,
int256 protocolEquity
) external

Parameters

NameTypeDescription
protocolControlledValueuint256
userCirculatingFeiuint256
protocolEquityint256

cachedProtocolControlledValue

function cachedProtocolControlledValue() external returns (uint256)

cachedUserCirculatingFei

function cachedUserCirculatingFei() external returns (uint256)

cachedProtocolEquity

function cachedProtocolEquity() external returns (int256)

deviationThresholdBasisPoints

function deviationThresholdBasisPoints() external returns (uint256)

collateralizationOracle

function collateralizationOracle() external returns (address)

isOutdatedOrExceededDeviationThreshold

function isOutdatedOrExceededDeviationThreshold() external returns (bool)

pcvStatsCurrent

function pcvStatsCurrent() external returns (uint256 protocolControlledValue, uint256 userCirculatingFei, int256 protocolEquity, bool validityStatus)

isExceededDeviationThreshold

function isExceededDeviationThreshold() external returns (bool)

readPauseOverride

function readPauseOverride() external returns (bool)

Events

CachedValueUpdate

event CachedValueUpdate(
address from,
uint256 protocolControlledValue,
uint256 userCirculatingFei,
int256 protocolEquity
)

Parameters

NameTypeDescription
fromaddress
protocolControlledValueuint256
userCirculatingFeiuint256
protocolEquityint256

CollateralizationOracleUpdate

event CollateralizationOracleUpdate(
address from,
address oldOracleAddress,
address newOracleAddress
)

Parameters

NameTypeDescription
fromaddress
oldOracleAddressaddress
newOracleAddressaddress

DeviationThresholdUpdate

event DeviationThresholdUpdate(
address from,
uint256 oldThreshold,
uint256 newThreshold
)

Parameters

NameTypeDescription
fromaddress
oldThresholduint256
newThresholduint256

ReadPauseOverrideUpdate

event ReadPauseOverrideUpdate(
bool readPauseOverride
)

Parameters

NameTypeDescription
readPauseOverridebool