> For the complete documentation index, see [llms.txt](https://bullrunfinance.gitbook.io/bullrun-finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bullrunfinance.gitbook.io/bullrun-finance/lottery.md).

# Lottery

![](/files/-McCSEzlahwmuLCRTtH_)

## **Specifics:**

* Price per ticket: 10 BULL&#x20;
* Limits per user: There is no maximum limit but only 50 can be purchased at a time via the User Interface.&#x20;
* Each ticket will give the user a random combination of 4 digits, with each digit ranging from 1 to 14. For example: "1-9-3-14".

## **How to win:**

To win the lottery jackpot (50% 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.

### **Winning ratio:**

* Match all 4 numbers in the exact order = win 50% 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 10% of the pot.
* 15% of the pot saved for the next Lottery.
* 5% as a protocol fee.

Please note - in the event that no participants were able to match 2, 3 or 4 numbers, the pot will be carried over to the next Lottery minus the protocol fee.

For example, if the final 4 winning numbers are “1-9-3-2”:

* “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

## **Lottery phases:**

Each full lottery session is completed every 12 hours (2 per day), with the timings for each as below:

3 AM  - 2 PM (UTC)

3 PM - 2 AM (UTC)&#x20;

3 AM  - 2 PM (UTC)&#x20;

3 PM - 2 AM (UTC)&#x20;

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

### **Phase 1 - Buy tickets (3 AM to 2 PM)**

* You have 1 hour to buy tickets.&#x20;
* The lottery jackpot will accumulate at the top of the page with each ticket bought.
* Users will receive a ticket (comprised of 4 digits) for each 1 BULL paid.

### **Phase 2 - Lottery draw! (2 PM)**

* 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;

### **Phase 3 - Celebration and sharing (2 PM - 3PM)**

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

The next lottery will start 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, there is an extremely low chance that anyone is able to determine the 4 winning numbers ahead of time.

* The 1st lottery number will be determined based on the %10 remainder 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 remainder of a hash encoded by the blockhash and the total pooled bull balance at the entry deadline.
* The 3rd lottery number will be determined based on the %10 remainder 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 remainder of a hash encoded by the blockhash and the block difficulty at the entry deadline.
