Eesee
Eesee
lots
An array of all existing lots.
ESE
ESE token this contract uses.
staking
Eesee staking contract. Tracks volume for this contract.
random
Contract that provides random.
feeSplitter
Address the {fee}s are sent to.
nonceUsed
True if lot nonce has already been used.
minDuration
Min and max durations for a lot.
maxDuration
RETURN_INTERVAL
In case random request fails to get delivered 24 hours after the lot was closed, unlock Reclaim functions.
fee
Fee that is collected to {feeSplitter} from each fulfilled lot. [10000 == 100%]
createLotsAndBuyTickets
Creates lots and buys tickets in them. Emits {CreateLot} for each lot created and {BuyTicket} event for each ticket bought. Note: Because of how nonPayable check in buyTickets works, users can create Native type lots with this function only by calling it with multicall.
Parameters
Return Values
receiveAssets
Receive assets the sender won from lots. Emits {ReceiveAsset} event for each of the asset received.
Parameters
Return Values
receiveTokens
Receive ESE the sender has earned from lots. Emits {ReceiveTokens} event for each of the claimed lot. Note: If the lot has expired, it takes 24 hours before {reclaimTokens} becomes available. If a random number is received in this timeframe, a winner is chosen and {receiveTokens} becomes avaliable for the winner to be called instead. In such case, a winner wins all collected ESE tokens instead of asset.
Parameters
Return Values
reclaimAssets
Reclaim assets from expired lots. Emits {ReclaimAsset} event for each lot ID.
Parameters
Return Values
reclaimTokens
Reclaim ESE from expired lots. Emits {ReclaimTokens} event for each lot ID.
Parameters
Return Values
callExternal
Call any external contract function. Is intended to be used with multicall.
Parameters
Return Values
changeMinDuration
Changes minDuration. Emits {ChangeMinDuration} event.
Parameters
changeMaxDuration
Changes maxDuration. Emits {ChangeMaxDuration} event.
Parameters
changeFee
Changes fee. Emits {ChangeFee} event.
Parameters
changeFeeSplitter
Changes feeSplitter. Emits {ChangeFeeSplitter} event.
Parameters
getLotsLength
Get length of the lots array.
Return Values
getLotTicketHolder
Get the holder of the specified ticket in lot.
Parameters
Return Values
getLotTicketsHeldByAddress
Get amount of tickets held by address in a lot.
Parameters
Return Values
getLotBonusTicketsHeldByAddress
Get amount of bonus tickets held by address in a lot.
Parameters
Return Values
getBuyTicketsRecipient
Get the recipient of tickets in specified {transaction}.
Parameters
Return Values
createLots
Creates lots with assets from sender's balance. Emits {CreateLot} events for each created lot.
Parameters
Return Values
buyTickets
Buys tickets to participate in a lot. Emits {BuyTicket} event for each ticket bought.
Parameters
Return Values
Inherited from EeseeRoleHandler
Inherited from MulticallPayable
multicall
Allows calling multiple contract functions in a single call:
Parameters
Inherited from EIP712
eip712Domain
_See {EIP-5267}.
Available since v4.9._
Inherited from IERC5267
EIP712DomainChanged
MAY be emitted to signal that the domain could have changed.
Inherited from ERC1155Holder
onERC1155Received
onERC1155BatchReceived
Inherited from ERC1155Receiver
supportsInterface
See {IERC165-supportsInterface}.
Inherited from ERC721Holder
onERC721Received
_See {IERC721Receiver-onERC721Received}.
Always returns IERC721Receiver.onERC721Received.selector
._
Inherited from ERC2771Context
isTrustedForwarder
Inherited from IEesee
lots
ESE
staking
random
minDuration
maxDuration
fee
feeSplitter
nonceUsed
RETURN_INTERVAL
CreateLot
ConsumeNonce
BuyTickets
AddVolumeReverted
ReceiveAsset
ReceiveTokens
ReclaimAsset
ReclaimTokens
CollectRoyalty
CollectFee
ChangeMinDuration
ChangeMaxDuration
ChangeFee
ChangeFeeSplitter
Last updated