PrizeDistributorV2
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
8
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 44 additional slots
-
variable spans 44 additional slots
-
variable spans 48 additional slots
-
variable spans 44 additional slots
Balances ($0.00)
No balances found for "PrizeDistributorV2"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "PrizeDistributorV2"
ABI
ABI objects
Getter at block 21294434 isRngCompleted() view returns (bool)
MAX_DISTRIBUTION_LENGTH() view returns (uint256)
500
MAX_DRAW_IDS_LENGTH() view returns (uint256)
256
MAX_EPOCH_IDS_LENGTH() view returns (uint256)
1000
MAX_TIMESTAMPS_LENGTH() view returns (uint256)
10000
MAX_TOKEN_IDS_LENGTH() view returns (uint256)
1000
ONE_HUNDRED_PERCENTS() view returns (uint16)
10000
getDistribution() view returns (uint16[])
[]
getDrawBuffer() view returns (address)
0x0000000000000000000000000000000000000000
getLastRngRequest() view returns (struct IPrizeDistributorV2RngRequest)
(0, 0, 0)
getLastUnpaidDrawId() view returns (uint32)
0
getNumberOfWinners() view returns (uint16)
0
getPrizeDistributionBuffer() view returns (address)
0x0000000000000000000000000000000000000000
getRngService() view returns (address)
0x0000000000000000000000000000000000000000
getRngTimeout() view returns (uint32)
0
getToken() view returns (address)
0x0000000000000000000000000000000000000000
isRngRequested() view returns (bool)
false
isRngTimedOut() view returns (bool)
false
manager() view returns (address)
0x0000000000000000000000000000000000000000
miniPoolBeaconProxyFactory() view returns (address)
0x0000000000000000000000000000000000000000
owner() view returns (address)
0x0000000000000000000000000000000000000000
pendingOwner() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
This contract contains no read-only function objects.
State-modifying
Events cancelRandomnessRequest()
claimOwnership()
initializeV2(address _miniPoolBeaconProxyFactory)
payWinners(uint32 _drawId, address[] _winners) returns (bool)
processRandomness(uint32 _drawId) returns (uint256[] _randomness)
renounceOwnership()
requestRandomness(uint32 _drawId, uint256 _picksNumber, bytes _participantsHash, bool _isEmptyDraw)
setDistribution(uint16[] _distribution)
setDrawBuffer(address _drawBuffer)
setManager(address _newManager) returns (bool)
setMiniPoolBeaconProxyFactory(address _newMiniPoolBeaconProxyFactory)
setPrizeDistributionBuffer(address _prizeDistributionBuffer)
setRngService(address _rngService)
setRngTimeout(uint32 _rngTimeout)
transferOwnership(address _newOwner)
withdrawERC20(address _erc20Token, address _to, uint256 _amount) returns (bool)
DistributionSet(uint16[] distribution)
DrawBufferSet(address drawBuffer)
DrawPaid(uint32 indexed drawId, uint256 totalPayout, address[] winners, uint256[] winningPicks, uint256[] payouts, uint64 indexed timestamp)
ERC20Withdrawn(address indexed token, address indexed to, uint256 amount)
Initialized(uint8 version)
ManagerTransferred(address indexed previousManager, address indexed newManager)
OwnershipOffered(address indexed pendingOwner)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PrizeDistributionBufferSet(address prizeDistributionBuffer)
RandomnessProcessed(uint32 indexed drawId, uint256[] randomness)
RandomnessRequestCancelled(uint32 indexed rngRequestId, uint32 rngLockBlock)
RandomnessRequested(uint32 indexed drawId, uint32 indexed requestId, uint32 indexed lockBlock, uint32 numbersCount)
RngServiceSet(address indexed rngService)
RngTimeoutSet(uint32 rngTimeout)
constructor()
This contract contains no fallback and receive objects.
DistributionShouldBeEqualTo100Percents()
DrawIdShouldBeEqualToLastUnpaidDrawId()
DrawIsPaid()
LengthsMismatch()
NotContract()
NotFinishedDraw()
ParticipantsHashLengthIsZero()
PrizesAmountIsZero()
RNGTimeoutLTE60Seconds()
RandomnessAlreadyRequested()
RandomnessIsNotRequested()
RandomnessRequestIsNotCompleted()
RandomnessRequestNotTimedout()
WrongArrayLength()
ZeroAddress()