Lootbox

Verified contract

Active on Base with 29,897 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $1,064.44
0x14afb645371de10c1d2d09e63b95dd7af87edad006715b2815e8514544e5f9c5
0x31355ebf40a734bc858980734b1e65e28108b31b1aaaa7a6f7c42ff86ff6d70f
0x3042f41d3a35ca9401a7e98fd194d9d14a5c75d7d352e4058b8b119a049d8e6f
0x63f839d1e75f01d3309acee8ed0765bf9941447a2c820fe7613e86e7df7fd1ca
0xb71bd8d43fbeb5eeda690c1616d33b0e7a18c51736fb5940783dd28adcc99d60
0x925823dad3adefc83f85ad874048f1fefe1f8c7116e498f52c33b56401683d48
0x9c70632bd6db71a1941bdea39d439a5f71d240238a97b16e34459e59ff8560d4
0xc4dd0d9e639b6edcd57a1878481175d4221cde3f4f9ab0ac84f02b522d42f6fe
0x1a7f1fd9e964cc0a85dc3f55cf111821d2dbec846f988495b3e20087328fc2e4
0xfa94292f625a6c53edb0b4ff9235a5b12aa2bfc6786731fb3cb032307a0078fb

Functions
Getter at block 22741092
MULTI_ITEM_PRECISION(view returns (uint16)
100
RARITY_PRECISION(view returns (uint16)
10000
backupItemId(view returns (uint256)
1
itemsContract(view returns (address)
0xad574f7f4eb563b0ccdcca0d7d7628aeaf071d65
manaMintingEnabled(view returns (bool)
false
manaSystem(view returns (address)
0x901a60c22ebf6b3799bb0d14d97a1908bbc0e7a9
nextLootboxPackId(view returns (uint256)
9
oracle(view returns (address)
0xfb63ff06b4203e450a626e264f7702be9d148fd7
owner(view returns (address)
0x12d0f29642ebf73ab1b636222fd3eb48eb9b4a03
randomnessHandler(view returns (address)
0x1b2233fc66501fd686ec9e5b51ac92201995a1eb
tokiemonNFT(view returns (address)
0x802187c392b15cdc8df8aa05bfef314df1f65c62
Read-only
calculateTokenAmount(address paymentTokenuint256 packIdview returns (uint256 tokenPriceNativeuint256 tokenAmount)
canOpenLootbox(uint256 _tokenIdview returns (bool)
getItemRarity(uint256 _itemIdview returns (uint8)
getItemsByRarity(uint8 _rarityview returns (uint256[])
getNextOpenTimestamp(uint256 _tokenIdview returns (uint256)
getRarityWeightFromTier(uint256 _tieruint8 _rarityview returns (uint256)
isRandomnessFulfilled(address userview returns (bool)
itemRarities(uint256view returns (uint8)
lastOpenTimestamp(uint256view returns (uint256)
lootboxPacks(uint256view returns (uint256 tieruint256 quantityuint256 pricebool active)
pendingLootboxes(addressview returns (bool)
pendingTiers(addressview returns (uint256)
supportsPermissionedCallSelector(bytes4pure returns (bool)
State-modifying
addLootboxPack(uint256 tieruint256 quantityuint256 price
bulkSetItemRarities(uint256[] _itemIdsuint8[] _rarities
buyLootboxPack(uint256 packIdpayable 
buyLootboxPackWithERC20(uint256 packIdaddress paymentTokenuint256 maxPaymentTokenAmount
claimLootbox(
permissionedCall(bytes callpayable returns (bytes res)
removeItemFromRarity(uint256 _itemIduint8 _rarity
removeLootboxPack(uint256 packId
renounceOwnership(
setBackupItemId(uint256 _itemId
setItemRarity(uint256 _itemIduint8 _rarity
setManaMintingEnabled(bool _enabled
setManaSystem(address _manaSystem
setMaxManaTier(uint256 _tieruint256 _maxMana
setRandomnessHandler(address _randomnessHandler
startFreeLootbox(uint256 tokenId
startLootboxWithKey(uint256 tier
transferOwnership(address newOwner
updateLootboxPack(uint256 packIduint256 tieruint256 quantityuint256 pricebool active
updateRarityTierWeights(uint256 _tierstruct LootboxRarityProbabilities _probabilitiesuint256 _maxMana
withdrawFunds(
Events
ItemRarityRemoved(uint256 indexed itemIduint8 indexed rarity
ItemRaritySet(uint256 indexed itemIduint8 indexed rarity
LootboxOpened(address indexed useruint256[] itemIdsuint256 tier
LootboxPackPurchased(address indexed buyeruint256 packIduint256 tieruint256 quantity
LootboxStarted(address indexed useruint256 indexed tokenIduint256 tier
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
RarityWeightsUpdated(uint256 tierstruct LootboxRarityProbabilities probabilitiesuint256 maxMana
Constructor
constructor(address _itemsContractaddress _tokiemonNFTaddress _randomnessHandleraddress _oracleaddress _manaSystem
Fallback and receive
receive(
Errors
AddressEmptyCode(address target
AddressInsufficientBalance(address account
FailedInnerCall(
NotPermissionCallable(bytes4 selector
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token