Raffle

Verified contract

Active on Ethereum with 7,329 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $35,454.24
ERC-20
Value $3,341.99
 (#6707)
ERC-721
--
0x18e8bbf26d218d36b36132f0ac85da8795e61d26abb03c254ea644037418f0f4
0x11a6c8e39f7be8f5e45396a56ee962956eefcb0cce029ef19b7e155079c5e5dc
0x74ac78564f52ad33162a53179243b90c07fb2b8cd4482fa2efb13dd95244895e
0xce51ed1f5fde65841e8512a792d88de378168063cc7508e6022f11a3992a584d
0xa23a4afc02121c9a64ccb7cd397b8d79ecd920b151096299a90f46e9b0c56abe
0xe6a290f705719f490b220f0f6c7588d7d2f151185d8673882ebf75b7631ed49c
From
0x040b781ddfaea292abe2d7d28906f25a4de7498e0289dee73f787deed7e97cab
From
0xe4ca2e9ca47433e3ffdc2182175b3a8e7c0c4f34d54686085dbe888a82e1b798
0xad0493d9c225e46911840ff7e7fdfdc068af69fb1160e02bbd2d0d6092582d85
0xabdda329214e357b5068bd23e509f3ce90b151df464846984479723cea90984f

Functions
Getter at block 21388757
KEY_HASH(view returns (bytes32)
0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef
MAXIMUM_NUMBER_OF_PRIZES_PER_RAFFLE(view returns (uint256)
20
MAXIMUM_NUMBER_OF_WINNERS_PER_RAFFLE(view returns (uint40)
110
MAXIMUM_PROTOCOL_FEE_BP(view returns (uint16)
2500
ONE_DAY(view returns (uint256)
86400
ONE_HUNDRED_PERCENT_BP(view returns (uint256)
10000
ONE_WEEK(view returns (uint256)
604800
PRICING_OPTIONS_PER_RAFFLE(view returns (uint256)
5
REQUEST_CONFIRMATIONS(view returns (uint16)
3
SUBSCRIPTION_ID(view returns (uint64)
734
VRF_COORDINATOR(view returns (address)
0x271682deb8c4e0901d1a1550ad2e64d568e69909
WETH(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
owner(view returns (address)
0xb5a9e5a319c7fda551a30be592c77394bf935c6f
ownershipStatus(view returns (uint8)
0
paused(view returns (bool)
false
potentialOwner(view returns (address)
0x0000000000000000000000000000000000000000
protocolFeeBp(view returns (uint16)
0
protocolFeeRecipient(view returns (address)
0xb5a9e5a319c7fda551a30be592c77394bf935c6f
rafflesCount(view returns (uint256)
11
Read-only
getEntries(uint256 raffleIdview returns (struct IRaffleEntry[] entries)
getPricingOptions(uint256 raffleIdview returns ((uint40, uint208)[5] pricingOptions)
getPrizes(uint256 raffleIdview returns (struct IRafflePrize[] prizes)
getWinners(uint256 raffleIdview returns (struct IRaffleWinner[] winners)
isCurrencyAllowed(addressview returns (bool)
onERC1155Received(addressaddressuint256uint256bytespure returns (bytes4)
protocolFeeRecipientClaimableFees(addressview returns (uint256)
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 existsuint248 randomWorduint256 raffleId)
State-modifying
cancel(uint256 raffleId
cancelAfterRandomnessRequest(uint256 raffleId
cancelOwnershipTransfer(
claimFees(uint256 raffleId
claimPrizes(struct IRaffleClaimPrizesCalldata[] claimPrizesCalldata
claimProtocolFees(address currency
claimRefund(uint256[] raffleIds
confirmOwnershipRenouncement(
confirmOwnershipTransfer(
createRaffle(struct IRaffleCreateRaffleCalldata paramsreturns (uint256 raffleId)
depositPrizes(uint256 raffleIdpayable 
enterRaffles(struct IRaffleEntryCalldata[] entriespayable 
initiateOwnershipRenouncement(
initiateOwnershipTransfer(address newPotentialOwner
rawFulfillRandomWords(uint256 requestIduint256[] randomWords
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 buyeruint40 entriesCountuint208 price
FeesClaimed(uint256 raffleIduint256 amount
InitiateOwnershipRenouncement(
InitiateOwnershipTransfer(address previousOwneraddress potentialOwner
NewOwner(address newOwner
Paused(address account
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 _protocolFeeBp
Fallback and receive

This contract contains no fallback and receive objects.

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