# Game Management Overview

## Overview

Every MemeDice game has an **owner (Owner)**, which is the wallet address connected when the game is deployed. The owner has administrative privileges for the game and can perform various management actions through the admin panel.

> ⚠️ **Important**: The admin panel is visible only to the game owner. If you are not the owner of the game, you will not be able to see the admin tab.

***

## How to access the admin panel

1. Use **owner wallet** to connect to the game page (for example `xxx.dapp.meme`)
2. Make sure the wallet network matches the network where the game is deployed
3. Click the **「⚙️ Admin」** tab in the top navigation bar

<figure><img src="/files/12befed276bdcc01eaddbac0bc3c18f44a57e107" alt=""><figcaption></figcaption></figure>

***

## Admin features at a glance

| Feature                      | Risk level     | Description                                        |
| ---------------------------- | -------------- | -------------------------------------------------- |
| [Toggle betting](#开关下注)      | 🟢 Low         | Enable or disable player betting                   |
| [Toggle deposits](#开关存款)     | 🟢 Low         | Enable or disable shareholder deposits             |
| [Adjust fee rate](#调整所有者费率)  | 🟡 Medium      | Modify the owner fee rate (0-9%)                   |
| [Transfer ownership](#转移所有权) | 🔴 High        | Transfer ownership to another address              |
| [Pool withdrawal](#资金池提款)    | 🔴 High        | Withdraw tokens from the pool                      |
| [Remove shareholder](#移除股东)  | 🔴 High        | Force-remove a shareholder                         |
| [Decentralize](#去中心化)        | ⚫ Irreversible | Renounce ownership and fully decentralize the game |

***

## Low-risk operations

### Toggle betting

Control whether players can place bets.

* **Turn off betting**: All players will be unable to bet, but existing pending bets will not be affected
* **Turn on betting**: Restore normal betting functionality

**Use cases**:

* Turn off betting during temporary maintenance
* Permanently turn off betting when the game ends

<figure><img src="/files/894721cce3d5e71e6e95da3310a37dacd4c6f00c" alt=""><figcaption></figcaption></figure>

### Toggle deposits

Control whether shareholders can deposit new tokens.

* **Turn off deposits**: New deposits are not allowed, but existing shareholders can still withdraw
* **Turn on deposits**: Restore normal deposit functionality

**Use cases**:

* The pool is already large enough and no more liquidity is needed
* Temporarily suspend accepting new investments

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

***

## Medium-risk operations

### Adjust owner fee rate

Modify the fee rate that the game owner collects from each bet.

* **Range**: 0% \~ 9% (hardcoded contract cap of 9%)
* **Effective time**: Takes effect immediately and affects all subsequent bets
* **Transparency**: Fee rate changes will be recorded in on-chain logs

<figure><img src="/files/436a15980df327cdf6468d8f9d4fa713a679139a" alt=""><figcaption></figcaption></figure>

> ⚠️ **Note**: Frequent or large fee adjustments may affect player trust. All fee changes will be publicly recorded in [on-chain logs](file:///7303089/leaderboard-and-logs/admin-logs.md) .

***

## High-risk operations

> 🔴 The following operations are high risk and require entering **CONFIRM** for secondary confirmation before execution.

### Pool withdrawal

Withdraw tokens from the game pool to the owner wallet.

```mermaid
graph LR
    A[Owner] -->|Click withdraw| B[Enter CONFIRM]
    B -->|Confirm| C[Sign transaction]
    C -->|Execute on-chain| D[Tokens transferred to owner wallet]
    D --> E[Pool balance decreases]
```

**Impact**:

* Pool balance decreases
* The value of shareholders' shares decreases accordingly
* May affect the game's maximum bet limit

**Transparency**: The withdrawal operation will be recorded in the on-chain log, including the withdrawal amount and the pool balance before and after the withdrawal.

> ⚠️ **Warning**: Frequent withdrawals from the pool will seriously harm shareholder interests and player trust.

### Remove shareholder

Force-remove a shareholder and return the tokens corresponding to their shares to that shareholder.

**Process**:

1. Select the shareholder address to remove
2. Enter **CONFIRM** confirm
3. Sign transaction
4. The shareholder's shares are reset to zero, and the corresponding tokens are automatically transferred to their wallet

**Use cases**:

* Clean up inactive shareholders
* Protect shareholder funds in emergencies

### Transfer ownership

Transfer the game's ownership to another wallet address.

**Process**:

1. Enter the new owner's wallet address
2. Enter **CONFIRM** confirm
3. Sign transaction
4. Ownership transferred immediately

> ⚠️ **Warning**: After transferring ownership, you will lose all administrative rights to the game. Please make sure the new address is correct.

***

## Irreversible operation

### Decentralize

Transfer the game's ownership to **black hole address/zero address (0x0000...0000)**, making the game fully decentralized.

For details, please refer to [decentralization operation](/dapp.meme-en/manage-games/decentralized-operations.md).

***

## On-chain records of management operations

All administrative actions will generate event records on-chain, which anyone can view via [on-chain logs](/dapp.meme-en/leaderboard-and-logs/on-chain-logs-and-game-transparency.md) View:

| Operation          | Recorded content                                       |
| ------------------ | ------------------------------------------------------ |
| Pool withdrawal    | Withdrawal amount, balance before and after withdrawal |
| Remove shareholder | Removed address, returned amount                       |
| Ownership transfer | Old owner, new owner                                   |
| Fee rate change    | Old fee rate, new fee rate                             |
| Betting toggle     | On/off status                                          |
| Deposit toggle     | On/off status                                          |
| Decentralize       | Marked time                                            |

***

## Best practices for administration

1. **Stay transparent**: Avoid frequently performing high-risk operations to build trust with players and investors
2. **Set fee rates reasonably**: Excessively high fee rates will reduce players' willingness to participate
3. **Withdraw cautiously**: Withdraw from the pool only when necessary, and consider the impact on shareholders
4. **Consider decentralization**: Once the game operation is stable, consider decentralization to enhance trust
5. **Back up the wallet**: Losing the private key of the owner wallet means losing administrative privileges

***

## Related links

* 🏛️ Learn about decentralization → [decentralization operation](/dapp.meme-en/manage-games/decentralized-operations.md)
* 📋 View admin logs → [on-chain logs](/dapp.meme-en/leaderboard-and-logs/on-chain-logs-and-game-transparency.md)
* 💸 Learn about the fee system → [Detailed explanation of the fee system](/dapp.meme-en/technical-overview/detailed-explanation-of-the-fee-system.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/manage-games/game-management-overview.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.
