ERC20Comp

Verified contract

Active on Base with 3,031 txns
Deployed by via 0xa2648537 at 13962335
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $1,836.37
ERC-20
Value $0.03
ERC-20
Value $0.02
ERC-20
Value $0.02
ERC-20
Value $0.01
ERC-20
Value $0.01
ERC-20
Value $0.01
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
0x1c1833232cba907e791140c712ee6b82288c7f5f674c61814137d02a7494a1b1
0x22d245ec114499e48edd329077ed62ca83da7f5f5de4cf17f9bca2746fa76c8d
0x3e6b17fe8c35444f98cafb17a7750862af16c9e3168aea1d9d997f03340926a2
0xa52df03ffe998d7fd6b3bf3bd296376c3e6928e24e65b9964195e2732d04ed2c
0xb6980e04b54be6ce1fe8548d417433f83de6f0a9fd3013acf5bd7cfa3f9c6a1a
0xe47913b0aad80679aa1d869f7c239d6170450e60e3ba84f808b170cf4d414ca4
0x694ce7b395fd1001ea65e44ad074021c482c33135ab7857f0109088e22c4a742
0xd3d404d9e737a6a6a86248077b1a5f3c958f14da309a3086923b1f44dabc8960
0x7b02d57bff386d4365a427521487afaaeb0574b4c2e14a9d4b178cfbe438243f
0x75627a9c4f230bec321db6314dbdf7dce41c6bf8f2e0f24aee1fb8953b566e5f

Functions
Getter at block 21750517
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
MINTERCONTRACT_ROLE(view returns (bytes32)
0xde5ee446972f4e39ab62c03aa34b2096680a875c3fdb3eb2f947cbb93341c058
OPERATOR_ROLE(view returns (bytes32)
0x523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c
_qrngUint256(view returns (uint256)
82399667403018285202755238938950237488099181571963703235161194860072659652392
airnode(view returns (address)
0x224e030f03cd3440d88bd78c9bf5ed36458a1a25
airnodeRrp(view returns (address)
0xa0ad79d995ddeeb18a14eaef56a549a04e3aa1bd
destinationWallet(view returns (address)
0x52a032cf59ea274f9d745f29b6d514fe95ba192d
endpointIdUint256(view returns (bytes32)
0xffd1bbe880e7b2c662f6c8511b15ff22d12a4a35d5c8c17202893a5f10e25284
endpointIdUint256Array(view returns (bytes32)
0x4554e958a68d68de6a4f6365ff868836780e84ac3cba75ce3f4c78a85faa8047
sponsorWallet(view returns (address)
0xc084b520651e46052d3b4386aa7f9d0649364788
usdcTokenContract(view returns (address)
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
Read-only
_qrngUint256Array(uint256view returns (uint256)
api3RaffleInfo(bytes32view returns (uint256 iduint256 size)
entriesList(uint256uint256view returns (uint48 currentEntriesLengthaddress player)
expectingRequestWithIdToBeFulfilled(bytes32view returns (bool)
freeEntriesPerWallet(bytes32view returns (bool)
fundingList(uint256view returns (uint128 minimumFundsInWeisuint128 desiredFundsInWeis)
getEntriesBought(uint256 _raffleIdview returns (struct MinimalConstantsEntriesBought[])
getRafflesEntryInfo(uint256 _raffleIdview returns (struct ConstantsEntryInfoStruct)
getRoleAdmin(bytes32 roleview returns (bytes32)
getWinnerAddressFromRandom(uint256 _raffleIduint256 _normalizedRandomNumberview returns (address)
hasRole(bytes32 roleaddress accountview returns (bool)
pricesList(uint256view returns (uint48 iduint48 numEntriesuint168 price)
raffles(uint256view returns (uint256 prizeNumberuint48 platformPercentageaddress prizeAddressaddress winneraddress selleruint256 randomNumber)
rafflesEntryInfo(uint256view returns (bool requireWhitelistinguint8 statusuint48 walletsCapuint48 entriesLengthuint128 amountRaisedaddress requiredTokenAddressuint256 requiredTokenBalance)
requests(uint256view returns (uint256 randomNumberuint256 nomalizedRandomNumber)
requiredNFTWallets(bytes32view returns (address)
supportsInterface(bytes4 interfaceIdview returns (bool)
walletsCap(bytes32view returns (uint48)
whitelistCollections(bytes32view returns (bool)
State-modifying
buyEntry(uint256 _raffleIduint256 _idpayable 
cancelRaffle(uint256 _raffleId
createRaffle(uint128 _desiredFundsInWeisaddress _prizeAddressuint256 _prizeNumberuint128 _minimumFundsInWeisstruct MinimalConstantsPriceStructure[] _pricesuint48 _commissionInBasicPointsuint8 _entryTypereturns (uint256)
fulfillUint256(bytes32 requestIdbytes data
giveBatchEntriesForFree(uint256 _raffleIdaddress[] _freePlayers
grantRole(bytes32 roleaddress account
renounceRole(bytes32 roleaddress callerConfirmation
requestWithdraw(
revertCloseRequested(uint256 raffleId
revokeRole(bytes32 roleaddress account
setDestinationAddress(address _newAddress
setRequestParameters(address _airnodebytes32 _endpointIdUint256bytes32 _endpointIdUint256Arrayaddress _sponsorWallet
setRequiredTokenAddress(address _tokenAddress
setRequiredTokenAmount(uint256 _tokenAmount
setWinner(uint256 _raffleId
stake(uint256 _raffleIdpayable 
transferRemainingFunds(uint256 _raffleId
withdraw(
Events
EarlyCashoutTriggered(uint256 indexed raffleIduint256 amountRaised
EntryCancelled(uint256 indexed raffleIduint256 amountOfEntriesCanceledaddress player
EntrySold(uint256 indexed raffleIdaddress indexed buyeruint256 currentSizeuint256 priceStructureId
FeeTransferredToPlatform(uint256 indexed raffleIduint256 amountTransferred
FreeEntry(uint256 indexed raffleIdaddress[] buyeruint256 amountuint256 currentSize
RaffleCancelled(uint256 indexed raffleIduint256 amountRaised
RaffleCreated(uint256 indexed raffleIdaddress indexed nftAddressuint256 indexed nftId
RaffleEnded(uint256 indexed raffleIdaddress indexed winneruint256 amountRaiseduint256 randomNumber
RaffleStarted(uint256 indexed raffleIdaddress indexed seller
RaffleStatusUpdated(uint256 indexed raffleIduint8 newStatus
RandomNumberCreated(uint256 indexed idFromMetawinuint256 randomNumberuint256 normalizedRandomNumber
ReceivedUint256(bytes32 indexed requestIduint256 response
ReceivedUint256Array(bytes32 indexed requestIduint256[] response
Refund(uint256 indexed raffleIduint256 amountInWeisaddress indexed player
RemainingFundsTransferred(uint256 indexed raffleIduint256 amountInWeis
RequestedUint256(bytes32 indexed requestId
RequestedUint256Array(bytes32 indexed requestIduint256 size
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
SetWinnerTriggered(uint256 indexed raffleIduint256 amountRaised
WithdrawalRequested(address indexed airnodeaddress indexed sponsorWallet
Constructor
constructor(address _airnodeRrpaddress _usdcAddress
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AccessControlBadConfirmation(
AccessControlUnauthorizedAccount(address accountbytes32 neededRole
CreateRaffleError(string errorType
EntryNotAllowed(string errorType