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

# Prize pool

#### **1. Generating a Cryptographically Secure Seed**

When a user opens a Gacha Card:

* A request is sent to provably fair oracle leveraging TEE environment, to generate a cryptographically secure random seed. You can verify your game on <https://dev-verification.gacha.game/>&#x20;
* This seed (a unique, verifiable string of data) serves as the foundation for all subsequent randomness in the process.

2. #### &#x20;**Deterministic Prize Selection**&#x20;

The seed is processed through a deterministic algorithm to derive **three distinct random values**, each governing a critical component of the outcome:

**Value 1: Pool Selection**

* **Output**: A binary result (1 or 2).
* **Function**:
  * `1`: Prize is allocated from the **ETH Pool** (primary rewards) with 70% chance&#x20;
  * `2`: Prize is allocated from the **Meme Coin Pool** (eg. $PENGU) with 30% chance&#x20;

On each Gacha Card, you have the winning symbol on top of the scratch area. That indicates which prize pool you are winning from

<figure><img src="https://946515820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmUmQc9v0Cte5OrHMxnzH%2Fuploads%2FrWlEGl2b8nZUtR7H0OTK%2Fimage.png?alt=media&amp;token=1ac806c0-0889-45bc-bc7e-7bfe9d0bf2f5" alt=""><figcaption></figcaption></figure>

**Value 2: Tier Assignment**

* **Output**: An integer between **1 and 6** mapped to a predefined probability distribution.
* **Tier Structure for Community Card (\~$6.5):**&#x20;

  <table><thead><tr><th width="148">Tier</th><th width="183" data-type="number"># of symbol on the card</th><th width="208">Prizes as % of the pool</th><th>Win Rate</th></tr></thead><tbody><tr><td>1</td><td>1</td><td>0.13%</td><td>35.4%</td></tr><tr><td>2</td><td>2</td><td>0.14%</td><td>37.2%</td></tr><tr><td>3</td><td>3</td><td>0.5%</td><td>33.93%</td></tr><tr><td>4</td><td>4</td><td>0.6%</td><td>36.35%</td></tr><tr><td>5</td><td>6</td><td>0.7%</td><td>36.351%</td></tr><tr><td>6</td><td>8</td><td>15.0%</td><td>0.06%</td></tr></tbody></table>
* **Tier Structure for Gacha mini ($1.5):**&#x20;

  <table><thead><tr><th>Tier</th><th data-type="number"># of symbol on the card</th><th width="208">Prizes as % of the pool</th><th>Win Rate</th></tr></thead><tbody><tr><td>1</td><td>1</td><td>0.03%</td><td>35.4%</td></tr><tr><td>2</td><td>2</td><td>0.04%</td><td>37.2%</td></tr><tr><td>3</td><td>3</td><td>0.12%</td><td>33.93%</td></tr><tr><td>4</td><td>4</td><td>0.14%</td><td>36.35%</td></tr><tr><td>5</td><td>6</td><td>0.17%</td><td>36.351%</td></tr><tr><td>6</td><td>8</td><td>3.65%</td><td>0.06%</td></tr></tbody></table>

\
**Value 3: Win Validation**&#x20;

* Output: A float between 0.00 and 100.00 (2 decimal places)
* Validation Logic: The float is compared to the win rate of the assigned tier&#x20;
* Win Condition: Float ≤ Tier win rate → Prize awarded
  * Example with $10 card:&#x20;
    * Tier 6 (0.5% threshold): A float of 0.50 → Win. 0.51 → Loss
    * Tier 1 (35.4% threshold): A float of 10.00 → Win; 35.5→ Loss
