ERC20Lean

Verified contract

Active on Ethereum with 11,868 txns
Deployed by via 0xa4bc2753 at 18084275
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $153.02
ERC-20
Value $200.2
0x7dd633899790785cc165302126bb717b9e0cefbbc632d1799d173b9b596e2ad6
0xc43c9e92d3800a9735aa2062638ed20df24a5ea18ceda8dd5d4ab860cfaf9c31
0x7ec13a18b41a61c95f1d668615e65ac76f3f6d19cea859873011092eb3ba6239
0x06261ba180cb8fba54a78c87915f9e91ca5eea19715a1bee7fd13866eab7ffd3
0x694d9ec2c2a6d96a1b282542d3a994e22da487343305df3ef0624ab7c52e1d06
0x66b9fa6de0cd85595de50f3b5f33b15c588c61cbc5d85da492c01ec540d9be30
0x45597fab4e30e5b35ba01162f26a9f0ccbecfe602af7b55992d16bbec553f800
0x9127a76632fb26ad1eeb3c3dcc2d89d1d8d10c09f58125961d4189682a797dd6
0x8a08769b478560439786807e64971601b0193156f8fa7b0388e29063bded7b03
0x8557325997e551ac6b0f87112f8eee1c03c90eb5e7fa1fd60256967cd35d69c2

Functions
Getter at block 21160806
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
MINTERCONTRACT_ROLE(view returns (bytes32)
0xde5ee446972f4e39ab62c03aa34b2096680a875c3fdb3eb2f947cbb93341c058
OPERATOR_ROLE(view returns (bytes32)
0x523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c
destinationWallet(view returns (address)
0x52a032cf59ea274f9d745f29b6d514fe95ba192d
Read-only
chainlinkRaffleInfo(bytes32view returns (uint256 iduint256 size)
entriesList(uint256uint256view returns (uint48 currentEntriesLengthaddress player)
freeEntriesPerWallet(bytes32view returns (bool)
fundingList(uint256view returns (uint128 minimumFundsInWeisuint128 desiredFundsInWeis)
getEntriesBought(uint256 _raffleIdview returns (struct ERC20LeanEntriesBought[])
getRafflesEntryInfo(uint256 _raffleIdview returns (struct ERC20LeanEntryInfoStruct)
getRoleAdmin(bytes32 roleview returns (bytes32)
getWinnerAddressFromRandom(uint256 _raffleIduint256 _normalizedRandomNumberview returns (address)
hasRole(bytes32 roleaddress accountview returns (bool)
pricesList(uint256view returns (uint256 iduint48 numEntriesuint256 price)
raffles(uint256view returns (uint48 platformPercentageuint48 cancellingDateuint256 prizeNumberaddress prizeAddressaddress winneraddress selleruint256 randomNumber)
rafflesEntryInfo(uint256view returns (uint8 statusuint8 entryTypeuint48 entriesLengthuint128 amountRaised)
requests(uint256view returns (uint256 randomNumberuint256 nomalizedRandomNumber)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
buyEntry(uint256 _raffleIduint256 _idpayable 
cancelEntry(uint256 _raffleIduint256[] entriesToCanceladdress _player
cancelRaffle(uint256 _raffleId
createRaffle(uint128 _desiredFundsInWeisaddress _prizeAddressuint256 _prizeNumberuint128 _minimumFundsInWeisstruct ERC20LeanPriceStructure[] _pricesuint48 _commissionInBasicPointsuint8 _entryTypereturns (uint256)
earlyCashOut(uint256 _raffleId
giveBatchEntriesForFree(uint256 _raffleIdaddress[] _freePlayers
grantRole(bytes32 roleaddress account
rawFulfillRandomness(bytes32 requestIduint256 randomness
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setDestinationAddress(address _newAddress
setWinner(uint256 _raffleId
stake(uint256 _raffleId
transferRemainingFunds(uint256 _raffleId
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
RandomNumberCreated(uint256 indexed idFromMetawinuint256 randomNumberuint256 normalizedRandomNumber
Refund(uint256 indexed raffleIduint256 amountInWeisaddress indexed player
RemainingFundsTransferred(uint256 indexed raffleIduint256 amountInWeis
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
StatusChangedInEmergency(uint256 indexed raffleIduint256 newStatus
Constructor
constructor(address _vrfCoordinatoraddress _linkTokenbytes32 _keyHashbool _mainetFee
Fallback and receive

This contract contains no fallback and receive objects.

Errors
CreateRaffleError(string errorType
EntryNotAllowed(string errorType