Claimable, that determine which actions can and cannot be taken at a given time.
ticketIdsarray of tickets defined by their
ticketStatusesof a user for a given Lottery (defined by
OpenLottery round (between 1 and 100 per purchase). Calculates the price per ticket using
ClaimableLottery round. Checks
lotteryIdto determine if round is claimable, ownership of
ticketId, eligibility of ticket (
firstTicketIdNextLottery), and whether
ticketIdfalls within eligible prize
bracket(between 0 and 5).
Closestate. Draws the final Lottery number for results from
randomResult, calculates the rewards for brackets after accounting for treasury fee, makes Lottery state
Claimable, and transfers treasury fee to treasury address.
Openstate. Status must be
firstTicketIdNextLotteryis determined by
firstTicketIdis set from