# Use Cases

These are some use cases to show how to calculate ticket amount.

1. **Player A**\
   \- Balance: 1000 tokens. No token in Auto Pool. \
   \- Deposit 20 tokens to join the round manually at block #4\
   \
   \* Round: start at block #001, end at block #011 \
   \
   Deposit Amount: 20

   Deposit Tickets: 20 x 50 = 1000&#x20;

   Hold Amount: 980

   Hold Tickets: \[(11-4)/(11-1)] x 980 x 10 = 6860&#x20;

   Tickets = 1000 + 6860= 7860<br>
2. **Player B**\
   \- Balance: 1000 tokens     \
   \- Deposit 800 tokens to Auto Pool. Update Joining amount in Auto Pool to 20.\
   Balance: 200 tokens.\
   \
   \- When the round is started, player B joins the round automatically by depositing 20 tokens from his balance in Auto Pool.\
   \
   Deposit Amount: 20\
   Deposit Tickets: 20 x 50 = 1000&#x20;

   Hold Amount: 200 + (800-20) = 980\
   Hold Tickets: 1 x 980 x 10 = 9800\
   Tickets = 1000 + 9800 = 10800\
   \
   Because he joins the round automatically via Auto Pool soon, so Hold duration is 1 -> get the maximum tickets: 10800 - much more tickets in comparison with player A (7860 tickets). \
   \
   Player A & B have the same tokens and joining amount. Player B doesn’t need to wait to join manually once the round is started as player A. \
   \
   By using Auto Pool feature, Player B has benefits by getting more tickets and he can join the round automatically.<br>
3. **Player C**\
   \- Balance: 1000 tokens\
   \- Deposit 800 tokens to Auto Pool. Update Joining Amount in Auto Pool to 0 (it means that he doesn’t want to join the round automatically)\
   Balance: 200 tokens.\
   \
   \* Round: start at block #001, end at block #011 \
   &#x20;\
   \- Deposit 20 tokens to join manually at block #4\
   \
   Deposit Amount: 20

   Deposit Tickets: 20 x 50 = 1000&#x20;

   Hold Amount: (200-20) + 800 = 980

   Hold Tickets: \[(11-4)/(11-1)] x 980 x 10 = 6860&#x20;

   Tickets = 1000 + 6860= 7860\
   \
   \- Deposit 10 tokens to join manually at block #6\
   Deposit Amount: 20 + 10 = 30

   Deposit Tickets: 30 x 50 = 1500 \
   Hold Amount: 980 (no change)

   Hold Tickets: 6860 (no change)\
   Tickets = 1500 + 6860 = 8360\
   \
   He has more tickets after depositing. However, actual Hold Amount in his wallet balance and Auto Pool is: (200 - 30) + 800 = 970 -> It's less than Hold Amount recognized as in the 1st deposit. He needs to buy 10 more tokens and keep in his wallet. If not, Hold Tickets will be set to 0 at the end of the round (Tickets = Deposits Tickets = 1500). <br>
4. **Player D**\
   \- Balance: 1000 tokens\
   \- Deposit 800 tokens to Auto Pool. Update Joining amount in Auto Pool to 20.\
   Balance: 200 tokens.\
   \
   \* Round: start at block #001, end at block #011\
   \
   \- When the round is started, player D joins the round automatically by depositing 20 tokens from his balance in Auto Pool.\
   \
   Deposit Amount: 20\
   Deposit Tickets: 20 x 50 =1000&#x20;

   Hold Amount: 200 + (800-20) = 980\
   Hold Tickets: 1 x 980 x 10 = 9800\
   Tickets = 1000 + 9800 = 10800\
   \
   \- Deposit 10 tokens to join manually at block #6\
   Deposit Amount: 20 + 10 = 30

   Deposit Tickets: 30 x 50 = 1500 \
   Hold Amount: 980 (no change)

   Hold Tickets: 9800 (no change)\
   Tickets = 1500 + 9800 = 11300\
   \
   The same as Player C, he has more tickets after depositing. However, actual Hold Amount in his wallet balance and Auto Pool is: (200 - 10) + (800-20) = 970 -> It's less than Hold Amount recognized as in the 1st deposit. He needs to buy 10 more tokens and keep in his wallet. If not, Hold Tickets will be set to 0 at the end of the round (Tickets = Deposits Tickets = 1500).&#x20;

\
\&#xNAN;**-> By comparing cases between Player A and B, C and D, you will see the power of Auto Pool feature.** \
\
-> **By holding DELOT tokens, you get more chance to win the grand prize.**<br>


---

# 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.delot.io/lottery-game/use-cases.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.
