# Lottery

![BenSwap Lottery](/files/l9uBLoRl0p7cqre0zdNy)

### **Specifics**

* Lottery Ticket Fee for 1 ticket: 10 EBEN
* Single User Lottery Entry Limit: No overall limit, but only 10 tickets with random numbers or 5 tickets with custom numbers can be bought at one time through the UI
* One ticket with a 4-digit combination is generated after the payment. Each digit ranges from 1 to 14, e.g. **"**&#x31;-9-3-2"

### **How to win**

To win the lottery jackpot (70% of the entire lottery pool), users need to match all 4 numbers on their ticket in the **exact same order** as the 4 winning numbers.

If you don’t match all 4, no need to worry. As long as you match 2 or more numbers in the correct order, you are guaranteed to win a prize.

For example, if the final 4 winning numbers are "1-9-3-&#x32;**"**

* "2-3-9-1" = match 0
* **"1-9-3-2" = match all 4**
* "1-9-2-2" = match 3
* "2-3-3-2" = match 2
* "1-2-1-2" = match 2

### **Winning Ratio**

* Match all 4 numbers in the exact order = win 70% of the pot (or split the pot if more than 1 winner).&#x20;
* Match 3 numbers in the exact order = win or split 20% of the pot.
* Match 2 numbers in the exact order = win or split 7% of the pot.
* Burn the remaining 3% of the pot.

Please note - in the event that no participants were able to win a price pot on any draw, the amount allocated to winners will then be passed to the next round.

### **Lottery phases**

Each full lottery session is completed every 3 days, with the timings as below:

Day 0, 3 AM  - Day 3, 2 AM (UTC)

An example of a lottery session starting at Day 0, 3 AM (UTC) is as below:

**Phase 1 - Buy Tickets (Day 0, 3 AM to Day 3, 2 AM)**

* You have 71 hours to buy tickets.&#x20;
* The lottery total price pot will accumulate at the top of the page with each ticket bought.
* Users will receive a ticket (comprised of 4 digits) for each 10 EBEN paid.

**Phase 2 - Lottery Draw! (Day 3, 2 AM)**

* The 4 winning lottery numbers are drawn and will appear on the page.&#x20;
* Each participant’s winnings will be automatically calculated based on their ticket numbers and shown on the page.
* Users can claim winnings if they have any.
* Users will also be able to see the lottery results: How many users matched all 4 numbers, 3 numbers, and 2 numbers.&#x20;

Please note - Users don't have to claim winnings before the next round starts. They can claim winnings of the past rounds at any time.

**Phase 3 - Celebration and Sharing (Day 3, 2 AM - Day 3, 3 AM)**

If you won, congrats! Share with your friends or in our community groups.

The next lottery starts in 1 hour!

### **How are ticket numbers drawn**

The lottery aims to be completely random. Even though the ticket numbers given out are determined by a front-end logic, it is almost impossible that anyone is able to determine the 4 winning numbers ahead of time.<br>

* The 1st lottery number will be determined based on the %10 remainders of a hash encoded by the blockhash and the number of participating users at the entry deadline.
* The 2nd lottery number will be determined based on the %10 remainders of a hash encoded by the blockhash and the total pooled EBEN balance at the entry deadline.
* The 3rd lottery number will be determined based on the %10 remainders of a hash encoded by the blockhash and the timestamp of the last lottery participant at the entry deadline.
* The 4th lottery number will be determined based on the %10 remainders of a hash encoded by the blockhash and the block difficulty at the entry deadline.

### Lottery Ticket Recycling

You can use claimed or unwon lottery tickets to participate in the [PokéBen Hunt](/features/pokeben/hunt.md).

### Contracts

Lottery Ticket: 0xFc82061Fe93C1DeF8D6dD5D6865B383C543a1315

Lottery: 0xd24d70B77db78bF8Bb7017a94be575Fb172C6C15


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.benswap.cash/features/lottery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
