AlienbaseLottery

Verified contract

Active on Base with 225 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $982.42
ERC-20
Value $24,122.98
ERC-20
Value $3.66
ERC-20
Value $1.06
ERC-20
Value $0.06
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
0xad6d1cfccba4d2d6aea3726a6751932b52747cc756dceed32f17d1b0d456d1bb
0x3a02a27426631ecfc9e9dd8c41d2f171a3486d696bbeed4f621f75936bc75397
0xfe199608449695a1f6420da29137d813a26bb7e01bc44b489142b01a09efe6d9
0x25ce70ad20bf40f4ea6227999844dcb2b5524f9a530ddbb1e7dc74c7ec1e89f5
0x2ccfccda54156addae35ec81764026a7edf3e34b5ff8ef11977e5bde92f527c2
0x9996ef43accbe934dbcaf4d626ac5b896e654bf339d8afa0974ef6aac3013c24
0xe4e09222b085b9bc9635b0613e8269837f531833a4fb5f889c536e36cf2611bf
0x0470d7be001822d02071569cf8d6e93c9676bac78b061fa1e2378cada8b590a8
0x7b2fb69f85e901eb8a011b7e6eb4cfcbb68c4e8a4c898d3aea319c48e7251bed
0x9397c6fce1d3a68976190dfd797e2e84dd1b6cea6914e2904b87db6baa06e75d

Functions
Getter at block 23621022
MAX_LENGTH_LOTTERY(view returns (uint256)
345900
MAX_TREASURY_FEE(view returns (uint256)
3000
MIN_DISCOUNT_DIVISOR(view returns (uint256)
300
MIN_LENGTH_LOTTERY(view returns (uint256)
14100
albToken(view returns (address)
0x1dd2d631c92b1acdfcdd51a0f7145a50130050c4
alienbaseReferralSystem(view returns (address)
0x0000000000000000000000000000000000000000
currentLotteryId(view returns (uint256)
7
currentTicketId(view returns (uint256)
957
injectorAddress(view returns (address)
0xdd8bb6779d6d7a2540c38cae1e95c2a1c350a390
maxNumberTicketsPerBuyOrClaim(view returns (uint256)
100
maxPriceTicketInEth(view returns (uint256)
10000000000000000
minPriceTicketInEth(view returns (uint256)
1000000000000000
operatorAddress(view returns (address)
0x0da0e618d98ed16f40fab08da7906171319df571
owner(view returns (address)
0x845e2f1336d686794f791203ca6733d51672f543
pendingInjectionNextLottery(view returns (uint256)
0
randomGenerator(view returns (address)
0x0bc1a70875d109e3ad07e21ffd3412cd402a1a16
treasuryAddress(view returns (address)
0xdd8bb6779d6d7a2540c38cae1e95c2a1c350a390
viewCurrentLotteryId(view returns (uint256)
7
Read-only
calculateTotalPriceForBulkTickets(uint256 _discountDivisoruint256 _priceTicketuint256 _numberTicketspure returns (uint256)
calculateTotalPriceForTickets(uint256 _discountDivisoruint256 _priceTicketuint256 _numberTicketsaddress _buyerAddressbool _isBogoOnview returns (uint256)
pendingToClaim(uint256 _lotteryIdview returns (uint256)
viewLottery(uint256 _lotteryIdview returns (struct AlienbaseLotteryLottery)
viewNumbersAndStatusesForTicketIds(uint256[] _ticketIdsview returns (uint32[]bool[])
viewRewardsForTicketId(uint256 _lotteryIduint256 _ticketIduint32 _bracketview returns (uint256)
viewUserInfoForLotteryId(address _useruint256 _lotteryIduint256 _cursoruint256 _sizeview returns (uint256[]uint32[]bool[]uint256)
State-modifying
buyTickets(uint256 _lotteryIduint32[] _ticketNumberspayable 
changeRandomGenerator(address _randomGeneratorAddress
claimOldPendingRewards(uint256 _lotteryId
claimTickets(uint256 _lotteryIduint256[] _ticketIdsuint32[] _brackets
closeLottery(uint256 _lotteryId
drawFinalNumberAndMakeLotteryClaimable(uint256 _lotteryIdbool _autoInjection
injectFunds(uint256 _lotteryIdpayable 
recoverWrongTokens(address _tokenAddressuint256 _tokenAmount
renounceOwnership(
setMaxNumberTicketsPerBuy(uint256 _maxNumberTicketsPerBuy
setMinAndMaxTicketPriceInAlb(uint256 _minPriceTicketInEthuint256 _maxPriceTicketInEth
setOperatorAndTreasuryAndInjectorAddresses(address _operatorAddressaddress _treasuryAddressaddress _injectorAddress
startLottery(uint256 _endTimeuint256 _priceTicketInEthuint256 _discountDivisoruint256[6] _rewardsBreakdownuint256 _treasuryFeeuint256 _albAmountPreAllocateduint256 _albPrizePercentbool _isBogoOn
transferOwnership(address newOwner
Events
AdminTokenRecovery(address tokenuint256 amount
LotteryClose(uint256 indexed lotteryIduint256 firstTicketIdNextLottery
LotteryInjection(uint256 indexed lotteryIduint256 injectedAmount
LotteryNumberDrawn(uint256 indexed lotteryIduint256 finalNumberuint256 countWinningTickets
LotteryOpen(uint256 indexed lotteryIduint256 startTimeuint256 endTimeuint256 priceTicketInEthuint256 firstTicketIduint256 injectedAmount
NewOperatorAndTreasuryAndInjectorAddresses(address operatoraddress treasuryaddress injector
NewRandomGenerator(address indexed randomGenerator
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
TicketsClaim(address indexed claimeruint256 amountuint256 indexed lotteryIduint256 numberTickets
TicketsPurchase(address indexed buyeruint256 indexed lotteryIduint256 numberTickets
Constructor
constructor(address _albTokenAddressaddress _randomGeneratorAddress
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AddressEmptyCode(address target
AddressInsufficientBalance(address account
FailedInnerCall(
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token