# Lotto Round & Winners Protection

Celestium's lotto-style dynamic games guarantee that a winning bet will be paid — even before the round has spun. The protection works by reserving the maximum potential payout from the dynamic staking pool at the moment the bet is accepted, rather than after the result is known.

## Round Process

1. The contract checks that the dynamic staking pool holds enough CELT to cover the worst-case payout of the incoming bet. If the reserves are insufficient, the bet is rejected.
2. The fairness check passes — the bet is recorded against the round.
3. At the spin, the maximum potential payout for that bet is **transferred into a dedicated protection pool**. The funds are moved out of the general staking balance and earmarked for the bet specifically.
4. The result is generated by Chainlink VRF and the round resolves.

The effect is that winning bets are paid from funds that were already set aside for them — the user can be 100% sure that the winning is protected, regardless of what happens to the rest of the pool between bet placement and round resolution.

## Dynamic Games Result Execution

* **Losing bets** — the entire bet amount flows from the protection pool into the dynamic staking pool. This is the pool's revenue from the round.
* **Winning bets** — the contract transfers the protected payout directly to the winner's wallet in the same transaction as the resolution.

## Related

* [Random Number Generation](/dexgames/proof-of-fairness/random-number-generation.md) — the VRF flow that selects the winning result for each round.
* [Conservative vs Dynamic Games](/dexgames/games-terms/conservative-vs-dynamic-games.md) — why dynamic games need a protection mechanism in the first place (the staking pool, not other players, is the counterparty).


---

# 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.celestium.digital/dexgames/proof-of-fairness/lotto-round-and-winners-protection.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.
