RootPriceOracle

Verified contract

Active on Ethereum with 73 txns
Deployed by via 0x9d15be55 at 20638432
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "RootPriceOracle"

0x2944b180df7de43b72f442934b19094a36476024914852d1e38cfccbe7e7ceb9
0xec1ddfe821cdb3d956d4df8d06c9078ce9099872fbfd4cdbac36bc13f495229c
0x1cf1d511e3acb79e1135db2f3d1b065edb358d59cb2a6ea1dcbc8e06bb858dc2
0x453ed7fba623018a81219989c05aaf0a4478e627cddeb262303ea466fb99116c
0xd2925ceae09b99107f0b6cc0d763d8201e03cf8769273f9d7795010e53e1636a
0x2e75a97f484ceae7b158212dc0ab21bca38ee37737075019b158f55ac53f74fe
0x9769d6c246c2e5bdeb4e590c870df9bba818549ef06a2334e1d644abf77d83f2
0x3b0e43803adb74ea7a6139b7622ded57c7c44d859affcf78c7fc4320e147142f
0xf3810fdaac772fe9393968fd9258daf9d3167e62986de30828781113c895c163
0x00a84ea4eb7ee8957e03c16bfaaff9749071720af618b141395d83ebc6b43af1

Functions
Getter at block 21295553
accessController(view returns (address)
0x37767cbff88cb623e9404e959560984f7d742df6
getSystemRegistry(view returns (address)
0x2218f90a98b0c070676f249ef44834686daa4285
Read-only
poolMappings(addressview returns (address)
safeSpotPriceThresholds(addressview returns (uint256)
tokenMappings(addressview returns (address)
State-modifying
getCeilingPrice(address lpTokenaddress pooladdress quotereturns (uint256 price)
getFloorCeilingPrice(address pooladdress lpTokenaddress inQuotebool ceilingreturns (uint256 floorOrCeilingPerLpToken)
getFloorPrice(address lpTokenaddress pooladdress quotereturns (uint256 price)
getPriceInEth(address tokenreturns (uint256 price)
getPriceInQuote(address baseaddress quotereturns (uint256)
getRangePricesLP(address lpTokenaddress pooladdress quoteTokenreturns (uint256 spotPriceInQuoteuint256 safePriceInQuotebool isSpotSafe)
getSpotPriceInEth(address tokenaddress poolreturns (uint256 price)
registerMapping(address tokenaddress oracle
registerPoolMapping(address pooladdress oracle
removeMapping(address token
removePoolMapping(address pool
replaceMapping(address tokenaddress oldOracleaddress newOracle
replacePoolMapping(address pooladdress oldOracleaddress newOracle
setSafeSpotPriceThreshold(address tokenuint256 threshold
Events
PoolRegistered(address indexed pooladdress indexed oracle
PoolRegistrationReplaced(address indexed pooladdress indexed oldOracleaddress indexed newOracle
PoolRemoved(address indexed pool
SafeSpotPriceThresholdUpdated(address tokenuint256 threshold
TokenRegistered(address tokenaddress oracle
TokenRegistrationReplaced(address tokenaddress oldOracleaddress newOracle
TokenRemoved(address token
Constructor
constructor(address _systemRegistry
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AccessDenied(
AlreadyRegistered(address token
InvalidParam(string paramName
MappingDoesNotExist(address token
MissingSpotPriceOracle(address token
MissingTokenOracle(address token
NoThresholdFound(address token
ReplaceAlreadyMatches(address tokenaddress newOracle
ReplaceOldMismatch(address tokenaddress oldExpectedaddress oldActual
SystemMismatch(address source1address source2
UndefinedAddress(
ZeroAddress(string paramName