PriceOracle
Overview
License: MIT
contract PriceOracle is Initializable, AccessControlUpgradeableStructs info
GovernedPrice
struct GovernedPrice {
uint64 timestamp;
uint256 collateralPrice;
uint256 capitalPrice;
}PriceInfo
struct PriceInfo {
uint64 timestamp;
uint256 collateralPrice;
uint256 capitalPrice;
}Events info
PriceUpdated
Name
Type
Description
GrantModeratorRole
Name
Type
Description
RevokeModeratorRole
Name
Type
Description
SetVolatilityCapFixedPercent
Name
Type
Description
SetPriceProviderAggregator
Name
Type
Description
Constants info
MODERATOR_ROLE (0x797669c9)
PERCENTAGE_DECIMALS (0x90706425)
SECONDS_PER_HOUR (0x4df86126)
State variables info
priceProviderAggregator (0x407e906e)
tokenPriceDecimals (0x7420b62b)
tvcUp (0x465d98a3)
tvcDown (0x8e8a4131)
mostGovernedPrice (0x086dc126)
priceInfo (0x6d048d53)
Modifiers info
onlyAdmin
onlyModerator
Functions info
initialize (0x1c4b995a)
Name
Type
Description
grantModerator (0x6981c7ae)
Name
Type
Description
revokeModerator (0x36445636)
Name
Type
Description
setPriceProviderAggregator (0x5ff22c42)
Name
Type
Description
setVolatilityCapFixedPercent (0x079957a9)
Name
Type
Description
updateFinalPrices (0x8bb6b7f9)
Name
Type
Description
getUpdatedReportedPrice (0x41f2231a)
Name
Type
Description
getMostTWAPprice (0xbc124cfd)
Name
Type
Description
Name
Type
Description
getEstimatedTWAPprice (0x29f839b2)
Name
Type
Description
Name
Type
Description
getEvaluation (0x81fd01ea)
Name
Type
Description
Name
Type
Description
getEstimatedEvaluation (0xebb19c1a)
Name
Type
Description
Name
Type
Description
getReportedPrice (0xdbd57337)
Name
Type
Description
Last updated