RaffleV2

Verified contract

Active on Ethereum with 7,154 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $15,445.47
ERC-20
Value $533.15
 (#7498)
ERC-721
--
 (#3526)
ERC-721
--
 (#19962)
ERC-721
--
 (#19184)
ERC-721
--
 (#19041)
ERC-721
--
 (#18931)
ERC-721
--
 (#17893)
ERC-721
--
 (#16284)
ERC-721
--
0xc283ad8455231cfd3724593eba51145f91f0178e147deb11906dfb50fc9243b1
0xaecc3cf85450bb15b5380435b00618f587be14d96bd157e05fec1763e7f74381
0x63ad471068ade0a413f764e880406141b73ae45ff6441c46970c600083eb3c44
From
0x75f4818be17a1c0458030cd9d2689b1a43e44a99b22da8c4d21adf881781f577
0xd146b7ae51761bd945e102ab390b1140b438a190427efda7c2c77f90b3a1262a
0x1243c7f4d1e2b39d28376b6b10d85ddb7b8c48b4bef4aa0fb6a22be5afedde23
0x2386c596e85f412f75295a1fe89c05f2f50c6b8e11111f750d6a08819ba326e9
0xbe1fef1b03fb5e2eb086115f2d3b58b70246ec241c57288007a6ec96ec519cf9
0x99a272cc08812081b1af52aaa928a466fc96da0dc2ee355379c991bce8513c02
0x91ad93660c14a789d2be558518dd4eb1df94b40efc7afb750ea3a11d1a17fc98

Functions
Getter at block 20858714
MAXIMUM_NUMBER_OF_PRIZES_PER_RAFFLE(view returns (uint256)
200
MAXIMUM_NUMBER_OF_WINNERS_PER_RAFFLE(view returns (uint40)
200
MAXIMUM_PRICING_OPTIONS_PER_RAFFLE(view returns (uint256)
5
MAXIMUM_PROTOCOL_FEE_BP(view returns (uint16)
2500
SUBSCRIPTION_ID(view returns (uint64)
734
owner(view returns (address)
0xb5a9e5a319c7fda551a30be592c77394bf935c6f
ownershipStatus(view returns (uint8)
0
paused(view returns (bool)
false
potentialOwner(view returns (address)
0x0000000000000000000000000000000000000000
protocolFeeBp(view returns (uint16)
500
protocolFeeRecipient(view returns (address)
0xc8c57e4c73c71f72ca0a7e043e5d2d144f98ef13
rafflesCount(view returns (uint80)
336
Read-only
getEntries(uint256 raffleIdview returns (struct IRaffleV2Entry[] entries)
getPricingOptions(uint256 raffleIdview returns (struct IRaffleV2PricingOption[] pricingOptions)
getPrizes(uint256 raffleIdview returns (struct IRaffleV2Prize[] prizes)
getWinners(uint256 raffleIdview returns (struct IRaffleV2Winner[] winners)
isCurrencyAllowed(addressview returns (uint256)
onERC1155Received(addressaddressuint256uint256bytespure returns (bytes4)
raffles(uint256view returns (address owneruint8 statusbool isMinimumEntriesFixeduint40 cutoffTimeuint40 drawnAtuint40 minimumEntriesuint40 maximumEntriesPerParticipantaddress feeTokenAddressuint16 protocolFeeBpuint208 claimableFees)
rafflesParticipantsStats(uint256addressview returns (uint208 amountPaiduint40 entriesCountbool refunded)
randomnessRequests(uint256view returns (bool existsuint80 raffleIduint256 randomWord)
State-modifying
cancel(uint256 raffleId
cancelAfterRandomnessRequest(uint256 raffleId
cancelOwnershipTransfer(
claimFees(uint256 raffleId
claimPrize(uint256 raffleIduint256 winnerIndex
claimPrizes(struct IRaffleV2ClaimPrizesCalldata[] claimPrizesCalldata
claimRefund(uint256[] raffleIds
confirmOwnershipRenouncement(
confirmOwnershipTransfer(
createRaffle(struct IRaffleV2CreateRaffleCalldata paramspayable returns (uint256 raffleId)
drawWinners(uint256 raffleId
enterRaffles(struct IRaffleV2EntryCalldata[] entriespayable 
initiateOwnershipRenouncement(
initiateOwnershipTransfer(address newPotentialOwner
rawFulfillRandomWords(uint256 requestIduint256[] randomWords
rollover(uint256[] refundableRaffleIdsstruct IRaffleV2EntryCalldata[] entriespayable 
selectWinners(uint256 requestId
setProtocolFeeBp(uint16 _protocolFeeBp
setProtocolFeeRecipient(address _protocolFeeRecipient
togglePaused(
updateCurrenciesStatus(address[] currenciesbool isAllowed
withdrawPrizes(uint256 raffleId
Events
CancelOwnershipTransfer(
CurrenciesStatusUpdated(address[] currenciesbool isAllowed
EntryRefunded(uint256 raffleIdaddress buyeruint208 amount
EntrySold(uint256 raffleIdaddress buyeraddress recipientuint40 entriesCountuint208 price
FeesClaimed(uint256 raffleIduint256 amount
InitiateOwnershipRenouncement(
InitiateOwnershipTransfer(address previousOwneraddress potentialOwner
NewOwner(address newOwner
Paused(address account
PrizeClaimed(uint256 raffleIduint256 winnerIndex
PrizesClaimed(uint256 raffleIduint256[] winnerIndex
ProtocolFeeBpUpdated(uint16 protocolFeeBp
ProtocolFeeRecipientUpdated(address protocolFeeRecipient
RaffleStatusUpdated(uint256 raffleIduint8 status
RandomnessRequested(uint256 raffleIduint256 requestId
Unpaused(address account
Constructor
constructor(address _wethbytes32 _keyHashuint64 _subscriptionIdaddress _vrfCoordinatoraddress _owneraddress _protocolFeeRecipientuint16 _protocolFeeBpaddress _transferManager
Fallback and receive

This contract contains no fallback and receive objects.

Errors
CutoffTimeNotReached(
CutoffTimeReached(
DrawExpirationTimeNotReached(
ERC1155SafeTransferFromFail(
ERC20TransferFail(
ERC721TransferFromFail(
InsufficientNativeTokensSupplied(
InvalidCaller(
InvalidCount(
InvalidCurrency(
InvalidCutoffTime(
InvalidIndex(
InvalidPricingOption(
InvalidPricingOptionsCount(
InvalidPrize(
InvalidPrizesCount(
InvalidProtocolFeeBp(
InvalidProtocolFeeRecipient(
InvalidStatus(
InvalidWinnersCount(
IsPaused(
MaximumEntriesPerParticipantReached(
MaximumEntriesReached(
NoOngoingTransferInProgress(
NotAContract(
NotEnoughEntries(
NotOwner(
NotPaused(
NothingToClaim(
OnlyCoordinatorCanFulfill(address haveaddress want
RandomnessRequestAlreadyExists(
RandomnessRequestDoesNotExist(
ReentrancyFail(
RenouncementNotInProgress(
TransferAlreadyInProgress(
TransferNotInProgress(
WrongPotentialOwner(