XOracle

Verified contract

Active on Ethereum with 186 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "XOracle"

0x80e9149dfdb8ad48a0c0d2590eafab6d756b0d80d2e810e9b541d6b5d9c3b85c
0x229c8481c48ba5aff6e0687f566588af9f5ce15d1877041e57de19c03f5a370d
0xd9fc0b53856e73338cbdcf0abcd5a8e407a8b634bcbf1be919836fb73a75c6bb
0x5409abb0d8361c31a6a709b9f26818fa35c4b6851dcd9bcb36d9d6851e6b8467
0xfcd5cacfbcfe2508ef25288c6780f2f59f0c16e745eb1fa23b87cf7c9b6e8919
0xc3d86cc9efe20f3314830f96813c2ddf4d8e2b74ce9b4a5c288e479065f17e16
0xca466d70fc1174e5395e32ae3312307c520c350171ed0d07fa2fdd81b7ecdad9
0xd00e7567583f9eb59d699c65fffc7bbb8ddf8cf072c2da53571a254d47a7b0cd
0x5875848f2aa3ba4803e8cfe3869bef1ed9d6f2871670819e570c42f75435febf
0x1c3b728af9d16aec19cabc4f21da45c49ae098d7afc6b0608cd7a8cccc6d777d

Functions
Getter at block 21245064
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
FEEDER_ROLE(view returns (bytes32)
0x80a586cc4ecf40a390b370be075aa38ab3cc512c5c1a7bc1007974dbdf2663c7
GUARDIAN_ROLE(view returns (bytes32)
0x55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a5041
STALENESS_DEFAULT_THRESHOLD(view returns (uint32)
86400
baseToken(view returns (address)
0x0e1f78ea866f9185ad5b9e8f9fb158430a7c4c63
decimals(pure returns (uint8)
18
Read-only
getLatestPrice(address quoteTokenview returns (uint256 price)
getPrice(address assetview returns (uint64uint64uint256uint256)
getPriceTolerance(address quoteTokenview returns (uint256 minPriceuint256 maxPrice)
getPrices(address[] assetsview returns (struct IOraclePrice[])
getQuoteToken(address tokenXaddress tokenYview returns (address quoteToken)
getQuoteTokenAndPrice(address tokenXaddress tokenYview returns (address quoteTokenuint256 price)
getRoleAdmin(bytes32 roleview returns (bytes32)
getStalenessThreshold(address quoteTokenview returns (uint32)
hasRole(bytes32 roleaddress accountview returns (bool)
prices(addressview returns (address assetuint64 timestampuint64 prev_timestampuint256 priceuint256 prev_price)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
grantRole(bytes32 roleaddress account
putPrice(address assetuint64 timestampuint256 price
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setPriceTolerance(address quoteTokenuint256 minPriceuint256 maxPrice
setStalenessThresholds(address[] quoteTokensuint32[] thresholds
updatePrices(struct IOracleNewPrice[] _array
Events
PriceToleranceUpdated(address indexed quoteTokenuint256 minPriceuint256 maxPrice
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
StalenessThresholdUpdated(address indexed quoteTokenuint32 threshold
newPrice(address indexed _assetuint64 _timestampuint256 _price
Constructor
constructor(address baseToken_
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AddressCodeSizeZero(
AddressZero(
LengthMismatched(
PriceNotInTolerance(
PriceStale(
PriceToleranceInvalid(
PriceZero(
TimestampInvalid(
TokensInvalid(