PriceOracle.sol
OracleError
enum OracleError {
NO_ERROR,
UNAUTHORIZED,
FAILED_TO_SET_PRICE
}OracleFailureInfo
enum OracleFailureInfo {
ACCEPT_ANCHOR_ADMIN_PENDING_ANCHOR_ADMIN_CHECK,
SET_PAUSED_OWNER_CHECK,
SET_PENDING_ANCHOR_ADMIN_OWNER_CHECK,
SET_PENDING_ANCHOR_PERMISSION_CHECK,
SET_PRICE_CALCULATE_SWING,
SET_PRICE_CAP_TO_MAX,
SET_PRICE_MAX_SWING_CHECK,
SET_PRICE_NO_ANCHOR_PRICE_OR_INITIAL_PRICE_ZERO,
SET_PRICE_PERMISSION_CHECK,
SET_PRICE_ZERO_PRICE,
SET_PRICES_PARAM_VALIDATION,
SET_PRICE_IS_READER_ASSET
}Structs
ExchangeRateInfo
Anchor
SetPriceLocalVars
Contract Members
Functions
scale
getExchangeRate
getMaxSwingRate
getFixedInterestRate
getFixedExchangeRate
failOracle
failOracleWithDetails
_setPendingAnchor
_setPaused
_setPendingAnchorAdmin
_acceptAnchorAdmin
_setPoster
setExchangeRate
setMaxSwingRate
assetPrices
getPrice
setPrice
setPriceInternal
setPriceStorageInternal
calculateSwing
capToMax
setPrices
Last updated
Was this helpful?