# Unified Casino

## A new standard

DICE V2 launched as a decentralized platform for staking and betting any ERC20 token on any supported blockchain. The system establishes a "Casino Factory," which allows users to stake any ERC20 token and receive a share of the "house pool", and its earnings in exchange.

The house is a collection of funds and logic that are used to facilitate staking and wagering. Owners of the house pool for any particular token are entitled to a share of that pool's earnings.

## How it's made

To facilitate this, DICE V2 utilizes a system of smart contracts known as the "House Router," "House Pool," "House Factory," and "Modular Betting" contracts.

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

The House Router contract is responsible for initializing the House Pool contracts via the House Factory contract. When a user places a bet on the platform, it is done through the Modular Betting contract, which interacts with the House Router contract. The House Router contract then directs the bet to the correct House Pool contract for the token that the user is betting on.

The House Factory contract is responsible for creating new House Pool contracts for new tokens that are added to the platform. This allows the platform to support staking and betting on any ERC20 token on any supported blockchain.

The Modular Betting contract is a reusable contract that allows for easy integration of different betting mechanisms and game types. This contract is responsible for handling the placement of bets and the payouts to users.

## Wrapping up

Overall, DICE V2 and the Casino Factory provide a decentralized, trustless platform for staking and betting on any ERC20 token on any supported blockchain, utilizing a system of smart contracts to ensure the security and fairness of the platform.<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.risky.lol/unified-casino.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.
