RaffleV2

Verified contract

Active on Ethereum with 7,180 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $18,079.77
ERC-20
Value $587.03
 (#7498)
ERC-721
--
 (#3526)
ERC-721
--
 (#19962)
ERC-721
--
 (#19184)
ERC-721
--
 (#19041)
ERC-721
--
 (#18931)
ERC-721
--
 (#17893)
ERC-721
--
 (#16284)
ERC-721
--
0xa606c2c4faaf197fbd6f56a7efb824a65b8e90e2c06b78b94835911fbfe6b4ed
0xe381ec1dfb5f432667ef1ea944e999f8311924cdc48d446df9a5b03fba36f56e
0x2293bde2f3a0692f8a7392de98a09db015ce3aa9a7f6eed32e1e5625812c7777
0x03ad586f90e97ce4e8ebd9ca90e478f805e2e1e5c8bd97ba0a9621f61cb1be54
0x2bf6afc7e2342f191d8615e79f28868bcf754f21978d5ddc3fadec4a5d5548ae
0xebadd393f0d8aebfee254ecf87f0f934bd42ed2dd2591d014718034f7cd2bbb0
0xb23682a03eb146c6633edc08e756397c70afa6b8a3814bbd02322dad4fb69cb5
0xc321a7a011afb122a7b39d6cf24780b3a540e5af7bc7cae6b84b366b8e1b36b3
From
0x2c4b40a64038a5731bca7d94e4d8919bc25be29a1eeb0d8b97b4dd678fe228a6
0xbe0f576e3f630567f858c49edb0d7396d3d5a5f65b6dd0b08ad2f7faa8c97e71
From

Functions
Getter at block 21265392
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)
338
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(