This contract is being backfilled. You may encounter incomplete storage history.

Wenwin Lottery Ticket

Verified contract

Active on Base with 716 txns
Deployed by via 0xb98fa174 at 13286435
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
3 additional variables
ERC-20
--
0x7d71b3955e18ca8516769cbfdc0afa86b4acbeaad11fbb48e99ee0bb19f22da1
0xf764a40610df7ccb40c1fd08d55952765fa3b138659a68a6c4378c6f5371923b
0xd106f5e210230e089e379422c8e6e83fe169303a334f33bc6234e4c0f1128a24
0x8c234be2da0902edb32e788080271128e0e8b1f668f8ea11a24f5b0ca6f6d841
0xa4194d7494cd3b244e74263ff60584b1d548581b411f0e716f9100a515550f83
0x3ac4fb4eb327a99fc15a32f70a6be74dc9b2dd752e0bb2e7c5e84d609633894d
0xb496d9b6a42f3d4d36d2be94451925000afe3798085799225376f5c9cb6f2db1
0x5fbc76da27ff42e1b80366e4722a6886a1216a53ae053d89db28355534250fd4
0x107b39b0b1a08d66e5e2dcfde6a5b2393e281192cf28ab619acbd89b9709b5b0
0x5a649d93d67014d1f1f8f57aaa554fbbac9ddb9291bd2ce984d42ea140bd8aa9

Functions
Getter at block 22744434
currentDraw(view returns (uint128)
642
currentNetProfit(view returns (int256)
-237531436450000000000000000
drawCoolDownPeriod(view returns (uint256)
180
drawExecutionInProgress(view returns (bool)
true
drawPeriod(view returns (uint256)
3600
expectedPayout(view returns (uint256)
380000000000000000
failedSequentialAttempts(view returns (uint256)
0
feeRecipient(view returns (address)
0x8c33dac8e20fc672eeb79fd3b6c63f1103697267
initialPot(view returns (uint256)
20000000000000000000000000
initialPotDeadline(view returns (uint256)
1713369600
jackpotBound(view returns (uint256)
2000000000000000000000000
lastDrawFinalTicketId(view returns (uint256)
9632
lastRequestFulfilled(view returns (bool)
false
lastRequestTimestamp(view returns (uint256)
1715684409
maxFailedAttempts(view returns (uint256)
1
maxFailedAttemptsReachedAt(view returns (uint256)
0
maxRequestDelay(view returns (uint256)
900
minInitialPot(view returns (uint256)
4000000000000000000
name(view returns (string)
Wenwin Lottery Ticket
nextTicketId(view returns (uint256)
9632
owner(view returns (address)
0xd71f42cfff1ad7e722f0785afee8da9ad902eb29
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
rewardToken(view returns (address)
0x38a89e90800e5945658e2c706f636d5a4ab92ae5
selectionMax(view returns (uint8)
35
selectionSize(view returns (uint8)
7
source(view returns (address)
0x79ec3658935e3265583cfabafbb10896509a0f9a
symbol(view returns (string)
WLT
ticketPrice(view returns (uint256)
1500000000000000000
Read-only
balanceOf(address ownerview returns (uint256)
claimable(uint256 ticketIdview returns (uint256 claimableAmountuint8 winTier)
currentRewardSize(uint8 winTierview returns (uint256 rewardSize)
drawScheduledAt(uint128 drawIdview returns (uint256 time)
fixedReward(uint8 winTierview returns (uint256 amount)
getApproved(uint256 tokenIdview returns (address)
isApprovedForAll(address owneraddress operatorview returns (bool)
ownerOf(uint256 tokenIdview returns (address)
supportsInterface(bytes4 interfaceIdview returns (bool)
ticketRegistrationDeadline(uint128 drawIdview returns (uint256 time)
ticketsInfo(uint256view returns (uint128 drawIduint120 combinationbool claimed)
ticketsSold(uint128view returns (uint256)
tokenURI(uint256 tokenIdview returns (string)
unclaimedRewards(uint8 rewardTypeview returns (uint256 rewards)
winAmount(uint128uint8view returns (uint256)
winningTicket(uint128view returns (uint120)
State-modifying
acceptOwnership(
approve(address touint256 tokenId
buyTickets(uint128[] drawIdsuint120[] ticketsaddress frontendaddress referrerreturns (uint256[] ticketIds)
changeFeeRecipient(address newFeeRecipient
claimRewards(uint8 rewardTypereturns (uint256 claimedAmount)
claimWinningTickets(uint256[] ticketIdsreturns (uint256 claimedAmount)
executeDraw(
finalizeInitialPotRaise(
initSource(address rnSource
onRandomNumberFulfilled(uint256 randomNumber
renounceOwnership(
retry(
safeTransferFrom(address fromaddress touint256 tokenId
safeTransferFrom(address fromaddress touint256 tokenIdbytes data
setApprovalForAll(address operatorbool approved
swapSource(address newSource
transferFrom(address fromaddress touint256 tokenId
transferOwnership(address newOwner
Events
Approval(address indexed owneraddress indexed approveduint256 indexed tokenId
ApprovalForAll(address indexed owneraddress indexed operatorbool approved
ClaimedRewards(address indexed rewardRecipientuint256 indexed amountuint8 indexed rewardType
ClaimedTicket(address indexed useruint256 indexed ticketIduint256 indexed amount
FailedRNRequest(address indexed sourcebytes indexed reason
FinishedExecutingDraw(uint128 indexed drawIduint256 indexed randomNumberuint120 indexed winningTicket
InitialPotPeriodFinalized(uint256 indexed amountRaised
LotteryDeployed(address tokenstruct LotteryDrawSchedule indexed drawScheduleuint256 ticketPriceuint8 indexed selectionSizeuint8 indexed selectionMaxuint256 expectedPayoutuint256[] fixedRewards
NewTicket(uint128 currentDrawuint256 ticketIduint128 drawIdaddress indexed useruint120 combinationaddress indexed frontendaddress indexed referrer
OwnershipTransferStarted(address indexed previousOwneraddress indexed newOwner
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Retry(address indexed failedSourceuint256 indexed numberOfFailedAttempts
SourceSet(address indexed source
StartedExecutingDraw(uint128 indexed drawId
SuccessfulRNRequest(address indexed source
Transfer(address indexed fromaddress indexed touint256 indexed tokenId
Constructor
constructor(struct LotterySetupParams lotterySetupParamsaddress feeRecipient_uint256 maxRNFailedAttemptsuint256 maxRNRequestDelay
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AlreadyInitialized(
CannotRetrySuccessfulRequest(
CurrentRequestStillActive(
DrawAlreadyInProgress(
DrawNotInProgress(
DrawPeriodInvalidSetup(
DrawsAndTicketsLenMismatch(uint256 drawIdsLenuint256 ticketsLen
ExecutingDrawTooEarly(
FinalizingInitialPotBeforeDeadline(
InitialPotPeriodTooShort(
InvalidExpectedPayout(
InvalidFixedRewardSetup(
InvalidTicket(
JackpotAlreadyInitialized(
JackpotNotInitialized(
MaxFailedAttemptsTooBig(
MaxRequestDelayTooBig(
NotEnoughFailedAttempts(
NothingToClaim(uint256 ticketId
PreviousRequestNotFulfilled(
RNSourceZeroAddress(
RaisedInsufficientFunds(uint256 potSize
RandomNumberFulfillmentUnauthorized(
RewardTokenZero(
SelectionSizeMaxTooBig(
SelectionSizeTooBig(
SelectionSizeZero(
TicketPriceZero(
TicketRegistrationClosed(uint128 drawId
Unauthorized(
UnauthorizedClaim(uint256 ticketIdaddress claimer
ZeroAddressProvided(