Lottery

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xad509626 at 16719710
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
8 additional variables

No balances found for "Lottery"

No transactions found for "Lottery"


Functions
Getter at block 21315672
WETH(view returns (address)
0x0000000000000000000000000000000000000000
admin(view returns (address)
0x0000000000000000000000000000000000000000
basisPoints(view returns (uint16)
0
burnPercent(view returns (uint16)
0
operator(view returns (address)
0x0000000000000000000000000000000000000000
profitPercent(view returns (uint16)
0
profitSplit1BP(view returns (uint16)
0
profitWallet1(view returns (address)
0x0000000000000000000000000000000000000000
profitWallet2(view returns (address)
0x0000000000000000000000000000000000000000
router(view returns (address)
0x0000000000000000000000000000000000000000
s_requestId(view returns (uint256)
0
taxBP(view returns (uint16)
0
totalBurnAmount(view returns (uint256)
0
totalRaffles(view returns (uint256)
0
totalRevenue(view returns (uint256)
0
Read-only
BurnAmountPerRaffle(uint256view returns (uint256)
Raffle(uint256view returns (uint256 numberstring raffleNameuint16 maxTicketsuint256 ticketPriceuint16 ticketCounteruint32 startTimeuint32 endTime)
Raffle1(uint256view returns (address raffleRewardTokenbool isTaxeduint256 raffleRewardTokenAmountaddress winneruint256 winningTicketuint16 rewardPercentuint16 burnPercentbool isWinnerDeclaredbool isClaimed)
checkRaffleOver(uint256 _raffleNumberview returns (bool)
checkTicketOwner(uint256 _raffleNumberuint16 _ticketNumberview returns (address)
checkYourTickets(uint256 _raffleNoaddress _ownerview returns (uint256[])
isRewardClaimed(uint256 _raffleNumberview returns (bool)
isWinnerDeclared(uint256 _raffleNumberview returns (booladdressuint256)
raffleRandomGenerated(uint256 _raffleNumberview returns (bool)
requestIdPerRaffle(uint256view returns (uint256)
State-modifying
buyTicket(uint256 _raffleNumberuint16 _noOfTicketspayable 
changeAdmin(address _newAdmin
changeOperator(address _address
claimReward(uint256 _raffleNumberreturns (bool)
collectBurnReward(address _toreturns (bool)
createRaffle(string _raffleNameuint16 _maxTicketsuint256 _ticketPriceuint32 _startTimeuint32 _endTimeaddress _rewardTokenbool _isTaxed
declareWinner(uint256 _raffleNumber
getRandomNumber(uint256 _raffleNumber
initialize(struct Lotteryinit params
rawFulfillRandomWords(uint256 requestIduint256[] randomWords
updateBurnAndProfitPercent(uint16 _burnBpuint16 _profitBp
updateProfit1Address(address _profitWallet1
updateProfit2Address(address _profitWallet2
updateProfitSplitPercent(uint16 _bp
updateRaffleEndtime(uint256 _raffleNumberuint32 _endTime
updateRewardToken(uint256 _raffleNumberaddress _rewardToken
updateTaxBP(uint16 _taxBP
Events
AdminChanged(address _newAdmin
BurnAndProfitPercentUpdated(uint16 _burnPercentuint16 _profitPercent
BurnWalletUpdated(address burnWallet
BuyTicket(uint256 raffleNumberaddress _buyeruint16 _ticketStartuint16 _ticketCounteruint256 _BurnAmountPerRaffleuint256 _totalRevenueuint256 _profitAmount
Initialized(uint8 version
OperatorChanged(address _newOperator
ProfitSplitPercentUpdated(uint16 _split1BPuint256 _split2BP
ProfitWallet1Updated(address _profitWallet1
ProfitWallet2Updated(address _profitWallet2
RaffleCreated(uint256 _raffleNumberstring _raffleNameuint16 _maxTicketsuint256 _ticketPriceuint32 _startTimeuint32 _endTimeuint16 rewardPercentaddress _rewardToken
RewardClaimed(uint256 _raffleIdaddress _toaddress _rewardTokenuint256 _amount
RewardTokenUpdate(uint256 _raffleNumberaddress _rewardToken
WinnerDeclared(uint256 _raffleIduint256 winningTicketaddress _winneruint256 _tokenAmountuint256 _rewardInEth
burnCollected(uint256 _amountaddress _to
endtimeUpdated(uint256 _raffleNumberuint32 _endtime
taxBPUpdated(uint16 _taxBP
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
OnlyCoordinatorCanFulfill(address haveaddress want