ERC20Comp

Verified contract

Active on Base with 11,844 txns
Deployed by via 0x2a3815c4 at 12805156
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $1,952.88
ERC-20
Value $0.33
ERC-20
Value $0.04
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
0x43cecb7d5016becddba311d92666e7df1f4aa7b5d64f879b86ee9e1e84fc96f2
0x88b907f117ef708dc5265c5fd9e02dee6405d02de9fc8440884eb8645781aa4f
0x1fcdc6d5f6102f849e25312fe7781f36a7c7484f2a2ac845d4c1dd110b588fb8
0x8664a62811cb7bd91c7ad7409cb42069162c98e6f5cd99d09666a09aadfcab98
0x65de89fdb98ec76188cfb557b815cb4e3a5a3b25cc694e944448c4db626b6966
0x3d7f163efc0b1bb99af76441172c58360de77f1d098d42e6c20c21988b2b0a94
0xd578b3f9a6d1eaa810137c20b6060ac93f6ef37726a36cc75b5ab16d7071ad63
0xffe5bd62f1a0322e5a281c63da9d25f5001a0baf6216e5e6cd6fe5474f5da143
0x1120d98d5e1181dfa605e79b966022f6a08fcbae0090c8861827d521e3e715f0
0xee2d96aefe87d7f6dd39cfe2274b5b36d5b8814e0dd00bc980e95e62c1a5d834

Functions
Getter at block 22741138
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
MINTERCONTRACT_ROLE(view returns (bytes32)
0xde5ee446972f4e39ab62c03aa34b2096680a875c3fdb3eb2f947cbb93341c058
OPERATOR_ROLE(view returns (bytes32)
0x523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c
_qrngUint256(view returns (uint256)
102112401292013383760277092650284824930578731030622563703572905671565906885321
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)
0x8d8e2e7aad445d1d75f0653528f4e5362112f936
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 amountRaised)
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
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