PricePrediction

Verified contract

Active on Ethereum with 132 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
--
ERC-20
--
0x3f5454ebc1b49b51ecafb6292e04928d3958333d0e4cb1cb2271e85bb5f2c4ac
0x45ee6e5630fd1dcc115f6085a2416b7cacd1cee1c1534ec9a073601f363bee75
0x0622f86a2203e4038115d938e2dfd2c81697a4c4b2aa1491d76ffe2f12ba4989
0x460fce3f32688f4fe7866e0d44cbdccbf8c57476e219c44f07a1074bcfdd3249
0x08118fa6546dbb66439462f2d02d695d8742b80106159880bd038c5980f8424c
0xa07d2c3ef618818d8247cb60f2179e480c2ca7f1e3d5bb8aa30a6447712ad008
0x11a6d3948d243b2fa380bf24c6469ba7f4b90eeb3dd653b0c65507988453e961
0xae5ed48e14d7363061ec26416dbcb3591751f5f2ec4107b75dc4f3e42f196cf6
0x2c10c4b00fc3a4f6c0353f752ebb41ebe6985c546236c4d1d60b5b357c675a4f
0x5831b2b6ed5c8d47a525de33d16762b4247a938a4a35d8193a6980130118ff97

Functions
Getter at block 20987073
getAllPredictionOptions(view returns (struct PricePredictionPredictionConfig[])
[(3900, 950), (7500, 950)]
getAllValidPriceFeeds(view returns (address[])
[0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c, 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419]
maxWagerAbsolute(view returns (uint256)
0
minBalancePerc(view returns (uint256)
350
minWagerAbsolute(view returns (uint256)
0
owner(view returns (address)
0x98c574473313eac3fc6af9740245949380ec166e
roundIdStartOffset(view returns (uint80)
1
serviceFeeWei(view returns (uint256)
3500000000000000
smol(view returns (address)
0x2bf6267c4997548d8de56087e5d48bdccb877e77
totalPredictionsAmountLost(view returns (uint256)
28393117620242489614000
totalPredictionsAmountWon(view returns (uint256)
18979338703944386691450
totalPredictionsDraw(view returns (uint256)
1
totalPredictionsLost(view returns (uint256)
27
totalPredictionsMade(view returns (uint256)
57
totalPredictionsWon(view returns (uint256)
26
treasury(view returns (address)
0x9ed7c36dc9773d8e04c87321502f062b493dd32a
Read-only
getAggregatorPhaseAndRoundId(uint256 _proxyRoundIdpure returns (uint16uint64)
getHistoricalPriceFromAggregatorInfo(address _proxyuint16 _phaseIduint80 _aggRoundIdbool _requireCompletionview returns (uint80uint256uint256uint80)
getLatestUserPrediction(address _userview returns (struct PricePredictionPrediction)
getNumberUserPredictions(address _userview returns (uint256)
getPriceUSDAtRound(address _proxyuint80 _roundIdview returns (uint256)
getRoundInfoAndPriceUSD(address _proxyview returns (uint16uint80uint256)
isValidPriceFeedProxy(addressview returns (bool)
predictionOptions(uint256view returns (uint256 timePeriodSecondsuint256 payoutPercentage)
predictions(addressuint256view returns (address priceFeedProxyuint256 configTimePeriodSecondsuint256 configPayoutPercentagebool isLonguint256 amountWagereduint16 startPhaseIduint80 startRoundIduint16 endPhaseIduint80 endRoundIdbool isDrawbool isWinner)
predictionsAmountUserLost(addressview returns (uint256)
predictionsAmountUserWon(addressview returns (uint256)
predictionsUserDraw(addressview returns (uint256)
predictionsUserLost(addressview returns (uint256)
predictionsUserWon(addressview returns (uint256)
validPriceFeedProxies(uint256view returns (address)
State-modifying
addPredictionOption(uint256 _secondsuint256 _percentage
addPriceFeed(address _proxy
predict(uint256 _configIndexaddress _priceFeedProxyuint256 _amountWagerbool _isLongpayable 
removePredictionOption(uint256 _index
removePriceFeed(address _proxy
renounceOwnership(
setMaxWagerAbsolute(uint256 _amount
setMinBalancePerc(uint256 _perc
setMinWagerAbsolute(uint256 _amount
setRoundIdStartOffset(uint80 _offset
setServiceFeeWei(uint256 _feeWei
setTreasury(address _treasury
setWagerToken(address _token
settleMultiplePredictions(address[] _usersuint16[] _phaseIdsuint80[] _aggRoundIds
settlePrediction(address _useruint16 _answeredPhaseIduint80 _answeredAggRoundId
settlePredictionShortCircuitLoss(
transferOwnership(address newOwner
updatePredictionOption(uint256 _indexuint256 _secondsuint256 _percentage
withdrawETH(uint256 _amountWei
withdrawTokens(address _tokenAddyuint256 _amount
Events
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Predict(address indexed useraddress indexed proxyuint16 startPhaseuint80 startRounduint256 amountWager
Settle(address indexed useraddress indexed proxybool isWinnerbool isDrawuint256 amountWon
Constructor

This contract contains no constructor objects.

Fallback and receive
receive(
Errors

This contract contains no error objects.