# Game Participation Guide

## Overview

MemeDice's investment equity system allows anyone to become the game's**liquidity provider (LP)**&#x61;nd inject tokens into the pool, sharing the game's profits and losses with other shareholders.

> 💡 **Core concept**: players lose = shareholders win, players win = shareholders lose. In the long run, due to the house edge, the pool tends to grow.

***

## How It Works

```mermaid
graph LR
    A[Investor] -->|Deposit tokens| B[Pool]
    B -->|Player bets| C{Game result}
    C -->|Player loses| D[Pool grows 📈]
    C -->|Player wins| E[Pool decreases 📉]
    D --> F[Share value increases]
    E --> G[Share value decreases]
    F --> H[Withdraw profit]
    G --> I[Withdraw at a loss]
```

***

## Quick Start

### 1. Go to the investment page

Visit any MemeDice game (such as `xxx.dapp.meme`), click the **"💰 Investment"** tab in the top navigation bar.

<figure><img src="/files/9d4873f46f5eb5759a0e6896a196e7e2a48789cd" alt=""><figcaption></figcaption></figure>

### 2. Connect wallet

If your wallet is not connected yet, click the **"Connect Wallet"** button on the page. Make sure your wallet network matches the game's network.

### 3. Deposit tokens

1. Enter the amount of tokens you want to deposit in the input box
2. If this is your first deposit, you need to click **"Approve"** to authorize the tokens first
3. After authorization is complete, click **"Deposit Equity"** Deposit tokens
4. Confirm the transaction in your wallet
5. After the transaction is confirmed, you will become a shareholder of this game

<figure><img src="/files/af41019ad0354ab959a0ed8cd7e04e8a1575f1ab" alt=""><figcaption></figcaption></figure>

### 4. View earnings

After depositing, you can view in real time on the page:

| Information           | Description                                                                                       |
| --------------------- | ------------------------------------------------------------------------------------------------- |
| **Your share**        | Your proportion in the pool                                                                       |
| **Current value**     | The amount of tokens your share corresponds to (may be higher or lower than the amount deposited) |
| **Total pool amount** | The total amount of tokens currently in the pool                                                  |
| **Pool capacity**     | The maximum capacity limit of the pool                                                            |

### 5. Withdraw earnings

When you want to exit, click **"Withdraw"** button to withdraw all your shares with one click.

> ⚠️ **Note**: Withdrawals are full withdrawals only; partial withdrawals are not supported. Platform fees and owner fees will be deducted when withdrawing.

***

## Key Concepts

### House Edge

Each bet includes fees (platform fee + owner fee), which means that statistically the pool tends to grow over the long term. However, in the short term, a series of large winning bets may cause the pool to shrink temporarily.

### Share Calculation

MemeDice uses **Vault-style global accumulator mode**, which is a gas-efficient way to calculate shares:

* When depositing: calculate the number of shares you receive based on the current total pool amount and total shares
* When withdrawing: calculate the number of tokens you can withdraw based on the proportion of your shares to the total shares

For the detailed share calculation mechanism, see [Detailed Explanation of the Shareholder System](/dapp.meme-en/provide-liquidity-lp/detailed-explanation-of-the-shareholder-system.md).

### Risk Warning

> ⚠️ **Investment involves risk**
>
> * When players win, the pool decreases, and the value of your shares will drop
> * In extreme cases (a series of large winning bets), you may lose most of your principal
> * When the pool balance is insufficient, large bets may be rejected, but this will not affect the shares of existing shareholders
> * Please only invest amounts you can afford to lose

***

## Pool Status

The investment page will display the pool's real-time status:

```
Pool progress bar
[████████████░░░░░░░░] 60%
Current balance: 600,000 USDT / Maximum capacity: 1,000,000 USDT
```

* **Current balance**: the total amount of tokens in the pool
* **Maximum capacity**: the pool cap set by the game creator (`maxPoolCap`)
* **progress bar**: visually shows the pool's utilization rate

When the pool reaches maximum capacity, new deposits will be rejected.

***

## Shareholder List

The bottom of the page shows information for all current shareholders:

| Column            | Description                                  |
| ----------------- | -------------------------------------------- |
| **Address**       | Shareholder's wallet address                 |
| **Shares**        | Number of shares held                        |
| **Percentage**    | Percentage of total shares                   |
| **Current value** | Amount of tokens corresponding to the shares |

<figure><img src="/files/9839e041edde46fff6cafb2faf6a17fdc745f9d5" alt=""><figcaption></figcaption></figure>

***

## Fee Explanation

Fees related to investment:

| Stage          | Fee Type                                       | Description                               |
| -------------- | ---------------------------------------------- | ----------------------------------------- |
| **Deposit**    | Platform deposit fee                           | Deducted from the amount when depositing  |
| **Withdrawal** | Platform withdrawal fee + owner withdrawal fee | Deducted from the amount when withdrawing |

For specific rates, see [Fee System Explained](file:///7303089/deep-dive/fee-system.md).

***

## Next steps

* 📖 Learn about the technical details of share calculation → [Detailed Explanation of the Shareholder System](/dapp.meme-en/provide-liquidity-lp/detailed-explanation-of-the-shareholder-system.md)
* 📊 View the investment leaderboard → [Leaderboard](/dapp.meme-en/leaderboard-and-logs/leaderboard-and-logs-overview.md)
* 🔍 View investment records → [on-chain logs](/dapp.meme-en/leaderboard-and-logs/on-chain-logs-and-game-transparency.md)


---

# 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.dapp.meme/dapp.meme-en/provide-liquidity-lp/game-participation-guide.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.
