ICollateralizationOracleWrapper
Functions
updateIfOutdated
function updateIfOutdated() external
setValidityDuration
function setValidityDuration(
uint256 _validityDuration
) external
Parameters
Name | Type | Description |
---|---|---|
_validityDuration | uint256 |
setReadPauseOverride
function setReadPauseOverride(
bool newReadPauseOverride
) external
Parameters
Name | Type | Description |
---|---|---|
newReadPauseOverride | bool |
setDeviationThresholdBasisPoints
function setDeviationThresholdBasisPoints(
uint256 _newDeviationThresholdBasisPoints
) external
Parameters
Name | Type | Description |
---|---|---|
_newDeviationThresholdBasisPoints | uint256 |
setCollateralizationOracle
function setCollateralizationOracle(
address _newCollateralizationOracle
) external
Parameters
Name | Type | Description |
---|---|---|
_newCollateralizationOracle | address |
setCache
function setCache(
uint256 protocolControlledValue,
uint256 userCirculatingFei,
int256 protocolEquity
) external
Parameters
Name | Type | Description |
---|---|---|
protocolControlledValue | uint256 | |
userCirculatingFei | uint256 | |
protocolEquity | int256 |
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
Name | Type | Description |
---|---|---|
from | address | |
protocolControlledValue | uint256 | |
userCirculatingFei | uint256 | |
protocolEquity | int256 |
CollateralizationOracleUpdate
event CollateralizationOracleUpdate(
address from,
address oldOracleAddress,
address newOracleAddress
)
Parameters
Name | Type | Description |
---|---|---|
from | address | |
oldOracleAddress | address | |
newOracleAddress | address |
DeviationThresholdUpdate
event DeviationThresholdUpdate(
address from,
uint256 oldThreshold,
uint256 newThreshold
)
Parameters
Name | Type | Description |
---|---|---|
from | address | |
oldThreshold | uint256 | |
newThreshold | uint256 |
ReadPauseOverrideUpdate
event ReadPauseOverrideUpdate(
bool readPauseOverride
)
Parameters
Name | Type | Description |
---|---|---|
readPauseOverride | bool |