πŸ†Prize pool

How does on-chain randomness work in Gacha Card?

We leverage Proof of Play for Provably Fair outcomes

1. Generating a Cryptographically Secure Seed

When a user opens a Gacha Card:

  • A request is sent to Proof of Play, a decentralized oracle, to generate a cryptographically secure random seed.

  • This seed (a unique, verifiable string of data) serves as the foundation for all subsequent randomness in the process.

  1. Deterministic Prize Selection

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

    • 2: Prize is allocated from the Meme Coin Pool (eg. $PENGU) with 30% chance

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

Value 2: Tier Assignment

  • Output: An integer between 1 and 6 mapped to a predefined probability distribution.

  • Tier Structure for Community Card (~$6.5):

    Tier
    # of symbol on the card
    Prizes as % of the pool
    Win Rate

    1

    1

    0.13%

    35.4%

    2

    2

    0.14%

    37.2%

    3

    3

    0.5%

    33.93%

    4

    4

    0.6%

    36.35%

    5

    6

    0.7%

    36.351%

    6

    8

    15.0%

    0.06%

  • Tier Structure for Gacha mini ($1.5):

    Tier
    # of symbol on the card
    Prizes as % of the pool
    Win Rate

    1

    1

    0.03%

    35.4%

    2

    2

    0.04%

    37.2%

    3

    3

    0.12%

    33.93%

    4

    4

    0.14%

    36.35%

    5

    6

    0.17%

    36.351%

    6

    8

    3.65%

    0.06%

Value 3: Win Validation

  • 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

  • Win Condition: Float ≀ Tier win rate β†’ Prize awarded

    • Example with $10 card:

      • 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

Last updated