Wenwin Lottery Ticket
Verified contract
Active on
Base with 716 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x79ec…0f9a
3 additional
variables
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
TT | ERC-20 | 20.013371M | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 14447531 | 6 months ago | | | 0 | 0.00017343301 | |
| 14445731 | 6 months ago | | | 0 | 0.00017343301 | |
| 14443934 | 6 months ago | | | 0 | 0.00017343301 | |
| 14442156 | 6 months ago | | | 0 | 0.00017343301 | |
| 14440331 | 6 months ago | | | 0 | 0.00017343301 | |
| 14438532 | 6 months ago | | | 0 | 0.00017343301 | |
| 14436734 | 6 months ago | | | 0 | 0.00017343301 | |
| 14434933 | 6 months ago | | | 0 | 0.00017343301 | |
| 14433159 | 6 months ago | | | 0 | 0.00017343301 | |
| 14431332 | 6 months ago | | | 0 | 0.00017343301 |
ABI
ABI objects
Getter at block 21855501
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 owner) view returns (uint256)
claimable(uint256 ticketId) view returns (uint256 claimableAmount, uint8 winTier)
currentRewardSize(uint8 winTier) view returns (uint256 rewardSize)
drawScheduledAt(uint128 drawId) view returns (uint256 time)
fixedReward(uint8 winTier) view returns (uint256 amount)
getApproved(uint256 tokenId) view returns (address)
isApprovedForAll(address owner, address operator) view returns (bool)
ownerOf(uint256 tokenId) view returns (address)
supportsInterface(bytes4 interfaceId) view returns (bool)
ticketRegistrationDeadline(uint128 drawId) view returns (uint256 time)
ticketsInfo(uint256) view returns (uint128 drawId, uint120 combination, bool claimed)
ticketsSold(uint128) view returns (uint256)
tokenURI(uint256 tokenId) view returns (string)
unclaimedRewards(uint8 rewardType) view returns (uint256 rewards)
winAmount(uint128, uint8) view returns (uint256)
winningTicket(uint128) view returns (uint120)
State-modifying
Events acceptOwnership()
approve(address to, uint256 tokenId)
buyTickets(uint128[] drawIds, uint120[] tickets, address frontend, address referrer) returns (uint256[] ticketIds)
changeFeeRecipient(address newFeeRecipient)
claimRewards(uint8 rewardType) returns (uint256 claimedAmount)
claimWinningTickets(uint256[] ticketIds) returns (uint256 claimedAmount)
executeDraw()
finalizeInitialPotRaise()
initSource(address rnSource)
onRandomNumberFulfilled(uint256 randomNumber)
renounceOwnership()
retry()
safeTransferFrom(address from, address to, uint256 tokenId)
safeTransferFrom(address from, address to, uint256 tokenId, bytes data)
setApprovalForAll(address operator, bool approved)
swapSource(address newSource)
transferFrom(address from, address to, uint256 tokenId)
transferOwnership(address newOwner)
Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
ApprovalForAll(address indexed owner, address indexed operator, bool approved)
ClaimedRewards(address indexed rewardRecipient, uint256 indexed amount, uint8 indexed rewardType)
ClaimedTicket(address indexed user, uint256 indexed ticketId, uint256 indexed amount)
FailedRNRequest(address indexed source, bytes indexed reason)
FinishedExecutingDraw(uint128 indexed drawId, uint256 indexed randomNumber, uint120 indexed winningTicket)
InitialPotPeriodFinalized(uint256 indexed amountRaised)
LotteryDeployed(address token, struct LotteryDrawSchedule indexed drawSchedule, uint256 ticketPrice, uint8 indexed selectionSize, uint8 indexed selectionMax, uint256 expectedPayout, uint256[] fixedRewards)
NewTicket(uint128 currentDraw, uint256 ticketId, uint128 drawId, address indexed user, uint120 combination, address indexed frontend, address indexed referrer)
OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Retry(address indexed failedSource, uint256 indexed numberOfFailedAttempts)
SourceSet(address indexed source)
StartedExecutingDraw(uint128 indexed drawId)
SuccessfulRNRequest(address indexed source)
Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
constructor(struct LotterySetupParams lotterySetupParams, address feeRecipient_, uint256 maxRNFailedAttempts, uint256 maxRNRequestDelay)
This contract contains no fallback and receive objects.
AlreadyInitialized()
CannotRetrySuccessfulRequest()
CurrentRequestStillActive()
DrawAlreadyInProgress()
DrawNotInProgress()
DrawPeriodInvalidSetup()
DrawsAndTicketsLenMismatch(uint256 drawIdsLen, uint256 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 ticketId, address claimer)
ZeroAddressProvided()