PowerOracle
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
182
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
Balances ($0.00)
No balances found for "PowerOracle"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "PowerOracle"
ABI
ABI objects
Getter at block 21160103
HUNDRED_PCT() view returns (uint256)
100000000000000000000
anchorPeriod() view returns (uint256)
1800
cvpReportAPY() view returns (uint256)
0
cvpSlasherUpdateAPY() view returns (uint256)
0
cvpToken() view returns (address)
0x38e4adb44ef08f22f5b5b76a8f0c2d0dcbe7dca1
ethBaseUnit() view returns (uint256)
1000000000000000000
expScale() view returns (uint256)
1000000000000000000
gasExpensesForSlasherStatusUpdate() view returns (uint256)
0
gasExpensesPerAssetReport() view returns (uint256)
0
gasPriceLimit() view returns (uint256)
0
maxReportInterval() view returns (uint256)
0
maxTokens() view returns (uint256)
21
minReportInterval() view returns (uint256)
0
numTokens() view returns (uint256)
20
owner() view returns (address)
0x29bff390fc12c900aaf0f2e51c06675df691337a
paused() view returns (bool)
false
powerOracleStaking() view returns (address)
0x0000000000000000000000000000000000000000
reservoir() view returns (address)
0x8ebc56a13ae7e3ce27b960b16aa57efed3f4e79e
totalReportsPerYear() view returns (uint256)
0
totalSlasherUpdatesPerYear() view returns (uint256)
0
Read-only
assetPrices(address token_) view returns (uint256)
calculateGasCompensation(uint256 ethPrice_, uint256 cvpPrice_, uint256 gasExpenses_) view returns (uint256)
calculateReportReward(uint256 count_, uint256 deposit_, uint256 ethPrice_, uint256 cvpPrice_) view returns (uint256)
calculateReporterFixedReward(uint256 deposit_) view returns (uint256)
calculateSlasherFixedReward(uint256 deposit_) view returns (uint256)
calculateSlasherUpdateReward(uint256 deposit_, uint256 ethPrice_, uint256 cvpPrice_) view returns (uint256)
getIntervalStatus(bytes32 _symbolHash) view returns (uint8)
getPriceByAsset(address token_) view returns (uint256)
getPriceBySymbol(string symbol_) view returns (uint256)
getPriceBySymbolHash(bytes32 symbolHash_) view returns (uint256)
getTokenConfig(uint256 i) view returns (struct UniswapConfigTokenConfig)
getTokenConfigByCToken(address cToken) view returns (struct UniswapConfigTokenConfig)
getTokenConfigBySymbol(string symbol) view returns (struct UniswapConfigTokenConfig)
getTokenConfigBySymbolHash(bytes32 symbolHash) view returns (struct UniswapConfigTokenConfig)
getTokenConfigByUnderlying(address underlying) view returns (struct UniswapConfigTokenConfig)
getUnderlyingPrice(address cToken_) view returns (uint256)
lastSlasherUpdates(uint256) view returns (uint256)
newObservations(bytes32) view returns (uint256 timestamp, uint256 acc)
oldObservations(bytes32) view returns (uint256 timestamp, uint256 acc)
prices(bytes32) view returns (uint128 timestamp, uint128 value)
rewards(uint256) view returns (uint256)
State-modifying
Events initialize(address owner_, address powerOracleStaking_, uint256 cvpReportAPY_, uint256 cvpSlasherUpdateAPY_, uint256 totalReportsPerYear_, uint256 totalSlasherUpdatesPerYear_, uint256 gasExpensesPerAssetReport_, uint256 gasExpensesForSlasherStatusUpdate_, uint256 gasPriceLimit_, uint256 minReportInterval_, uint256 maxReportInterval_)
pause()
poke(string[] symbols_)
pokeFromReporter(uint256 reporterId_, string[] symbols_)
pokeFromSlasher(uint256 slasherId_, string[] symbols_)
renounceOwnership()
setCvpAPY(uint256 cvpReportAPY_, uint256 cvpSlasherUpdateAPY_)
setGasExpenses(uint256 gasExpensesPerAssetReport_, uint256 gasExpensesForSlasherStatusUpdate_)
setGasPriceLimit(uint256 gasPriceLimit_)
setPowerOracleStaking(address powerOracleStaking_)
setReportIntervals(uint256 minReportInterval_, uint256 maxReportInterval_)
setTotalPerYear(uint256 totalReportsPerYear_, uint256 totalSlasherUpdatesPerYear_)
slasherUpdate(uint256 slasherId_)
transferOwnership(address newOwner)
unpause()
withdrawRewards(uint256 userId_, address to_)
AnchorPriceUpdated(string symbol, uint256 anchorPrice, uint256 oldTimestamp, uint256 newTimestamp)
NothingToReward(uint256 indexed userId, uint256 ethPrice)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Paused(address account)
Poke(address indexed poker, uint256 tokenCount)
PokeFromReporter(uint256 indexed reporterId, uint256 tokenCount, uint256 rewardCount)
PokeFromSlasher(uint256 indexed slasherId, uint256 tokenCount, uint256 overdueCount)
PriceUpdated(string symbol, uint256 price)
RewardIgnored(uint256 indexed userId, uint256 count, uint256 deposit, uint256 ethPrice, uint256 cvpPrice, uint256 calculatedReward)
RewardUserReport(uint256 indexed userId, uint256 count, uint256 deposit, uint256 ethPrice, uint256 cvpPrice, uint256 calculatedReward)
RewardUserSlasherUpdate(uint256 indexed slasherId, uint256 deposit, uint256 ethPrice, uint256 cvpPrice, uint256 calculatedReward)
RewardUserSlasherUpdateIgnored(uint256 indexed slasherId, uint256 deposit, uint256 ethPrice, uint256 cvpPrice, uint256 calculatedReward)
SetCvpApy(uint256 cvpReportAPY, uint256 cvpSlasherUpdateAPY)
SetGasExpenses(uint256 gasExpensesPerAssetReport, uint256 gasExpensesForSlasherStatusUpdate)
SetGasPriceLimit(uint256 gasPriceLimit)
SetPowerOracleStaking(address powerOracleStaking)
SetReportIntervals(uint256 minReportInterval, uint256 maxReportInterval)
SetTotalReportsPerYear(uint256 totalReportsPerYear, uint256 totalSlasherUpdatePerYear)
UniswapWindowUpdated(bytes32 indexed symbolHash, uint256 oldTimestamp, uint256 newTimestamp, uint256 oldPrice, uint256 newPrice)
Unpaused(address account)
UpdateSlasher(uint256 indexed slasherId, uint256 prevSlasherTimestamp, uint256 newSlasherTimestamp)
constructor(address cvpToken_, address reservoir_, uint256 anchorPeriod_, struct UniswapConfigTokenConfig[] configs)
This contract contains no fallback and receive objects.
This contract contains no error objects.