AlienbaseLottery
Verified contract
Active on
Base with 225 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x1dd2…50c4
0x0000…0000
0x0bc1…1a16
Balances ($25,110.19)
Native
Value
$982.42
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
Eth | Native | 0.25124 | $3,910.30 |
$982.42 | |
ALB | ERC-20 | 58.311875K | $0.413689 |
$24,122.98 | |
AEROBUD | ERC-20 | 65 | $0.056311 |
$3.66 | |
NEWB | ERC-20 | 700 | $0.00151 |
$1.06 | |
WGC | ERC-20 | 200 | $0.00032 |
$0.06 | |
BOYS | ERC-20 | 0.4 | $0.009398 |
$0 | |
USA | ERC-20 | 2 | $0.001103 |
$0 | |
kurbi | ERC-20 | 1 | $0.000923 |
$0 | |
BREDD | ERC-20 | 42.069K | -- | -- | |
GOOSE | ERC-20 | 42.069K | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 5773437 | a year ago | | | 0 | 0.000000064228833252 | |
| 5772799 | a year ago | | | 0 | 0.000000092701264658 | |
| 5770614 | a year ago | | | 0 | 0.000000011144651223 | |
| 5770238 | a year ago | | | 0 | 0.000000007751426648 | |
| 5770108 | a year ago | | | 0 | 0.000000012786004728 | |
| 5769587 | a year ago | | | 0 | 0.00020080703 | |
| 5769585 | a year ago | | | 0 | 0.000056389008 | |
| 5769467 | a year ago | | | 0.006 | 0.000000043583744624 | |
| 5761488 | a year ago | | | 0.015 | 0.000000014094539355 | |
| 5758984 | a year ago | | | 0.003 | 0.000000003145376100 |
ABI
ABI objects
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 _discountDivisor, uint256 _priceTicket, uint256 _numberTickets) pure returns (uint256)
calculateTotalPriceForTickets(uint256 _discountDivisor, uint256 _priceTicket, uint256 _numberTickets, address _buyerAddress, bool _isBogoOn) view returns (uint256)
pendingToClaim(uint256 _lotteryId) view returns (uint256)
viewLottery(uint256 _lotteryId) view returns (struct AlienbaseLotteryLottery)
viewNumbersAndStatusesForTicketIds(uint256[] _ticketIds) view returns (uint32[], bool[])
viewRewardsForTicketId(uint256 _lotteryId, uint256 _ticketId, uint32 _bracket) view returns (uint256)
viewUserInfoForLotteryId(address _user, uint256 _lotteryId, uint256 _cursor, uint256 _size) view returns (uint256[], uint32[], bool[], uint256)
State-modifying
Events buyTickets(uint256 _lotteryId, uint32[] _ticketNumbers) payable
changeRandomGenerator(address _randomGeneratorAddress)
claimOldPendingRewards(uint256 _lotteryId)
claimTickets(uint256 _lotteryId, uint256[] _ticketIds, uint32[] _brackets)
closeLottery(uint256 _lotteryId)
drawFinalNumberAndMakeLotteryClaimable(uint256 _lotteryId, bool _autoInjection)
injectFunds(uint256 _lotteryId) payable
recoverWrongTokens(address _tokenAddress, uint256 _tokenAmount)
renounceOwnership()
setMaxNumberTicketsPerBuy(uint256 _maxNumberTicketsPerBuy)
setMinAndMaxTicketPriceInAlb(uint256 _minPriceTicketInEth, uint256 _maxPriceTicketInEth)
setOperatorAndTreasuryAndInjectorAddresses(address _operatorAddress, address _treasuryAddress, address _injectorAddress)
startLottery(uint256 _endTime, uint256 _priceTicketInEth, uint256 _discountDivisor, uint256[6] _rewardsBreakdown, uint256 _treasuryFee, uint256 _albAmountPreAllocated, uint256 _albPrizePercent, bool _isBogoOn)
transferOwnership(address newOwner)
AdminTokenRecovery(address token, uint256 amount)
LotteryClose(uint256 indexed lotteryId, uint256 firstTicketIdNextLottery)
LotteryInjection(uint256 indexed lotteryId, uint256 injectedAmount)
LotteryNumberDrawn(uint256 indexed lotteryId, uint256 finalNumber, uint256 countWinningTickets)
LotteryOpen(uint256 indexed lotteryId, uint256 startTime, uint256 endTime, uint256 priceTicketInEth, uint256 firstTicketId, uint256 injectedAmount)
NewOperatorAndTreasuryAndInjectorAddresses(address operator, address treasury, address injector)
NewRandomGenerator(address indexed randomGenerator)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
TicketsClaim(address indexed claimer, uint256 amount, uint256 indexed lotteryId, uint256 numberTickets)
TicketsPurchase(address indexed buyer, uint256 indexed lotteryId, uint256 numberTickets)
constructor(address _albTokenAddress, address _randomGeneratorAddress)
This contract contains no fallback and receive objects.
AddressEmptyCode(address target)
AddressInsufficientBalance(address account)
FailedInnerCall()
OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall()
SafeERC20FailedOperation(address token)