> For the complete documentation index, see [llms.txt](https://docs.wenwin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wenwin.com/games/usdc-7-35-lottery/the-game/example.md).

# Example

## Base Assumptions

* Prize Pot = 5,000,000 USDC
* Tickets Sold = 1,000,000
* Jackpot Prize = 1,500,000 USDC

## Scenario 1 - Non-Jackpot Winners Only (Bonus)

### **Further Assumptions**

* BonusAllocation = 0.5m USDC
* BonusMultiplier = 1.5

| Match     | Number of winners |
| --------- | ----------------- |
| 3 numbers | 300,000           |
| 4 numbers | 20,000            |
| 5 numbers | 1,500             |
| 6 numbers | 120               |
| 7 numbers | 0                 |

### Calculation

* Ticket Sales = 1m \* 2 = 2m USDC
* To Treasury= 2m \* 20% = 0.4m USDC
* To Frontend Rewards = 2.0m \* 10% = 0.2m USDC
* To Prize Pot = 2.0m \* 0.7 = 1.4m USDC
* Jackpot Prize = 1.5m USDC + 0.5m USDC = 2m USDC
* Total Prizes to Players:
  * Match 3 Prizes = 300,000 \* 2 \* 1.5 USDC =900,000 USDC
  * Match 4 Prizes =  20,000 \* 7 \* 1.5  USDC = 210,000 USDC
  * Match 5 Prizes = 1,500 \* 100 \* 1.5  USDC = 225,000 USDC
  * Match 6 Prizes = 120 \* 2,000 \* 1.5 USDC = 360,000 USDC
* Final Balance:
  * Prize Pot: 5m + 1.4m - (0.9m + 0.21m + 0.225m + 0.36m) = 4.705m USDC

## Scenario 2 - Non-Jackpot Winners Only (No Bonus)

### **Further Assumptions**

* BonusAllocation = 0
* BonusMultiplier = 1

| Match     | Number of winners |
| --------- | ----------------- |
| 3 numbers | 300,000           |
| 4 numbers | 20,000            |
| 5 numbers | 1,500             |
| 6 numbers | 120               |
| 7 numbers | 0                 |

### Calculation

* Ticket Sales = 1m \* 2 = 2m USDC
* To Treasury = 2m \* 20% = 0.4m USDC
* To Frontend Rewards = 2m \* 10% = 0.2m USDC
* To Prize Pot = 2m \* 0.7 = 1.4m USDC
* Jackpot Prize = 2m USDC
* Total Prizes to Players:
  * Match 3 Prizes = 300,000 \* 2 USDC = 600,000 USDC
  * Match 4 Prizes =  20,000 \* 7 USDC = 140,000 USDC
  * Match 5 Prizes = 1,500 \* 100 USDC = 150,000 USDC
  * Match 6 Prizes = 120 \* 2,000 USDC = 240,000 USDC
* Final Balance:
  * Prize Pot: 5m + 1.4m - (0.6m + 0.14m + 0.15m + 0.24m) = 5.27m USDC

## Scenario 3 - Single Jackpot Winner (Bonus)

### **Further Assumptions**

* Jackpot winners = 1
* BonusAllocation = 0.5m USDC
* BonusMultiplier = 1.5

### **Calculation**

* Ticket Sales = 1m \* 2 = 2m USDC
* To Treasury = 2m \* 20% = 0.4m USDC
* To Frontend Rewards = 2m \* 10% = 0.2m USDC
* To Prize Pot = 2m \* 0.7 = 1.4m USDC
* Total Prizes to Players
  * Jackpot Prizes = 1.5m + 0.5m = 2m USDC
* Final Balance:
  * Prize Pot: 5m + 1.4m - 2m = 4.4m USDC

## Scenario 4 - Single Jackpot Winner  (No Bonus)

### **Further Assumptions**

* Jackpot winners = 1
* BonusMultiplier = 1
* BonusAllocation = 0

### **Calculation**

* Ticket Sales = 1m \* 2 = 2m USDC
* To Treasury = 2m \* 20% = 0.4m USDC
* To Frontend Rewards = 2m \* 10% = 0.2m USDC
* To Prize Pot = 2m \* 0.7 = 1.4m USDC
* Total Prizes to Players
  * Jackpot Prizes = 1.5m
* Final Balance:
  * Prize Pot: 5m + 1.4m - 1.5m = 4.9m USDC


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.wenwin.com/games/usdc-7-35-lottery/the-game/example.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
