PythPriceProvider
Verified contract
Implementation
Active on
Ethereum with 1 txns
Storage
Map
Table
Raw
Constants and immutables
4
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
Balances ($0.00)
No balances found for "PythPriceProvider"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20794804 | 2 months ago | | | 0 | 0.0041758109 |
ABI
ABI objects
Getter at block 21271397
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DESCRIPTION() view returns (string)
Price provider that uses pyth
MAX_LENGTH_PRICE_ID_PATH() view returns (uint8)
5
MODERATOR_ROLE() view returns (bytes32)
0x71f3d55856e4058ed06ee057d79ada615f65cdf5f9ee88181b914225088f834f
getPriceDecimals() view returns (uint8)
10
pythOracle() view returns (address)
0x0000000000000000000000000000000000000000
tokenDecimals() view returns (uint8)
10
validTimePeriod() view returns (uint256)
60
Read-only
getExpiredPriceFeeds(address[] token, uint256 timeBeforeExpiration) view returns (bytes32[] priceIds, uint256 updateFee)
getPrice(address token) view returns (uint256 priceMantissa, uint8 priceDecimals)
getPythMetadata(address token) view returns (struct PythPriceProviderPythMetadata)
getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
isActive(address token) view returns (bool)
isListed(address token) view returns (bool)
pythMetadata(address) view returns (bool isActive)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events changeActive(address token, bool active)
grantRole(bytes32 role, address account)
initialize()
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setPythOracle(address newPythOracle)
setTokenAndPriceIdPath(address token, bytes32[] newPriceIdPath)
setTokenDecimals(uint8 newTokenDecimals)
setValidTimePeriod(uint256 newValidTimePeriod)
updatePrices(bytes32[] priceIds, bytes[] updateData) payable
ChangeActive(address indexed token, bool active)
Initialized(uint8 version)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
SetPythOracle(address indexed newPythOracle)
SetTokenAndPriceIdPath(address indexed token, bytes32[] priceIdPath)
SetTokenDecimals(uint8 newTokenDecimals)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
This contract contains no error objects.