PrizeDistributorV2

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xb7b8f425 at 18990919
Slot
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

No balances found for "PrizeDistributorV2"

No transactions found for "PrizeDistributorV2"


Functions
Getter at block 21294434
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
 
isRngCompleted(view returns (bool)
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
cancelRandomnessRequest(
claimOwnership(
initializeV2(address _miniPoolBeaconProxyFactory
payWinners(uint32 _drawIdaddress[] _winnersreturns (bool)
processRandomness(uint32 _drawIdreturns (uint256[] _randomness)
renounceOwnership(
requestRandomness(uint32 _drawIduint256 _picksNumberbytes _participantsHashbool _isEmptyDraw
setDistribution(uint16[] _distribution
setDrawBuffer(address _drawBuffer
setManager(address _newManagerreturns (bool)
setMiniPoolBeaconProxyFactory(address _newMiniPoolBeaconProxyFactory
setPrizeDistributionBuffer(address _prizeDistributionBuffer
setRngService(address _rngService
setRngTimeout(uint32 _rngTimeout
transferOwnership(address _newOwner
withdrawERC20(address _erc20Tokenaddress _touint256 _amountreturns (bool)
Events
DistributionSet(uint16[] distribution
DrawBufferSet(address drawBuffer
DrawPaid(uint32 indexed drawIduint256 totalPayoutaddress[] winnersuint256[] winningPicksuint256[] payoutsuint64 indexed timestamp
ERC20Withdrawn(address indexed tokenaddress indexed touint256 amount
Initialized(uint8 version
ManagerTransferred(address indexed previousManageraddress indexed newManager
OwnershipOffered(address indexed pendingOwner
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PrizeDistributionBufferSet(address prizeDistributionBuffer
RandomnessProcessed(uint32 indexed drawIduint256[] randomness
RandomnessRequestCancelled(uint32 indexed rngRequestIduint32 rngLockBlock
RandomnessRequested(uint32 indexed drawIduint32 indexed requestIduint32 indexed lockBlockuint32 numbersCount
RngServiceSet(address indexed rngService
RngTimeoutSet(uint32 rngTimeout
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
DistributionShouldBeEqualTo100Percents(
DrawIdShouldBeEqualToLastUnpaidDrawId(
DrawIsPaid(
LengthsMismatch(
NotContract(
NotFinishedDraw(
ParticipantsHashLengthIsZero(
PrizesAmountIsZero(
RNGTimeoutLTE60Seconds(
RandomnessAlreadyRequested(
RandomnessIsNotRequested(
RandomnessRequestIsNotCompleted(
RandomnessRequestNotTimedout(
WrongArrayLength(
ZeroAddress(