# Lottery Game

> Inspired by <https://www.powerball.com/>

### Basic Concept

**Ticket：**&#x20;

You need to participate by purchasing a Lottery Ticket.

**Balls：**

Each ticket contains 5 white balls and 1 red ball. They are all numbers, and the range of numbers:

* White Balls: **1 \~ 33**
* Red Ball: <mark style="color:red;">**1 \~ 16**</mark>

When your tickets matches the winning result according to the rules, you will receive the corresponding prize.

**Prizes and Jackpot:**

The jackpot grows until it is won. Players win a prize by matching one of the 9 ways to win. The jackpot is won by matching all five white balls in any order and the red ball.&#x20;

**PowerUp:**

You can choose to pay more when buying lottery tickets as **PowerUp** to increase the multiplier after winning.&#x20;

Note: The Jackpot is not affected by Powerup and only depends on the current accumulated Jackpot and the number of Jackpot winners.

### Game Pools

Currently, two prize pools are available.

* ID: FIXES\_MINTING\_LOTTERY\_POOL
  * The Prize Token is **$FLOW**.
  * Each ticket price is **0.1352 $FLOW (**&#x41;nd also you can take **1 $FLOW** to purchase **1 Ticket** and **mint 4000 $fixes** before **$fixes** are minted ou&#x74;**)**
  * The lottery will be drawn automatically every three days.
* ID: FIXES\_BASIS\_LOTTERY\_POOL
  * The Prize Token is **$fixes**
  * Each ticket price is **2000 $fixes**
  * The lottery will be drawn automatically every three days.

Note: customized numbers choosing is still WIP, current the number of tickets are generated randomly when purchasing.

For on-chain randomness on Flow, please refer to: <https://flow.com/post/on-chain-randomness-on-flow>

### Winning rules

<table><thead><tr><th width="137">PrizeRank</th><th width="223">Match Rule</th><th width="212">Estimated Prize</th><th>Service fee</th></tr></thead><tbody><tr><td>JACKPOT</td><td>5 <strong>White</strong> + 1 <mark style="color:red;"><strong>Red</strong></mark></td><td><strong>Grant Prize</strong></td><td><mark style="color:blue;"><strong>16%</strong></mark></td></tr><tr><td>SECOND</td><td>5 <strong>White</strong></td><td><mark style="color:green;"><strong>50000</strong></mark> x <strong>TicketPrice</strong></td><td><mark style="color:blue;"><strong>16%</strong></mark></td></tr><tr><td>THIRD</td><td>4 <strong>White</strong> + 1 <mark style="color:red;"><strong>Red</strong></mark></td><td><mark style="color:green;"><strong>5000</strong></mark> x <strong>TicketPrice</strong></td><td><mark style="color:blue;"><strong>16%</strong></mark></td></tr><tr><td>FOURTH</td><td>4 <strong>White</strong> / 3 <strong>White</strong> + 1 <mark style="color:red;"><strong>Red</strong></mark></td><td><mark style="color:green;"><strong>25</strong></mark> x <strong>TicketPrice</strong></td><td><mark style="color:blue;"><strong>0%</strong></mark></td></tr><tr><td>FIFTH</td><td>3 <strong>White</strong> / 2 <strong>White</strong> + 1 <mark style="color:red;"><strong>Red</strong></mark></td><td><mark style="color:green;"><strong>4</strong></mark> x <strong>TicketPrice</strong></td><td><mark style="color:blue;"><strong>0%</strong></mark></td></tr><tr><td>SIXTH</td><td>1 <strong>White</strong> + 1 <mark style="color:red;"><strong>Red</strong></mark> / 1 <mark style="color:red;"><strong>Red</strong></mark></td><td><mark style="color:green;"><strong>2</strong></mark> x <strong>TicketPrice</strong></td><td><mark style="color:blue;"><strong>0%</strong></mark></td></tr></tbody></table>

* The **Grant Prize** is at least **50%** of the current epoch's prize pool.&#x20;
* The remaining **50%** and the accumulated jackpot pool will be used to prioritize the payment of non-Jackpot prizes (Second \~ Sixth). The remaining prize money will all be included in the **Grant Prize**.
* If the total prize pool is too small, non-Jackpot prizes will decrease dynamically based on the balance of the total prize pool.
* The Prize of **Jackpot, Second, and Third** will be deducted by a certain *Service Fee*.
* The *Service Fee* will be deposited into the platform's treasury pools.
  1. For **$FLOW** Lottery, <mark style="color:blue;">**8%**</mark> will be deposited to **$flows** Staking Pool's reward strategy and <mark style="color:blue;">**8%**</mark> will be deposited to platform vault.
  2. For **𝔉rc20** Lottery, <mark style="color:blue;">**16%**</mark> will be deposited to **$flows** Staking Pool's reward strategy.


---

# 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.fixes.world/concepts/lottery-game.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.
