# UniHouse Litepaper

UniHouse is a system that provides liquidity for decentralized gaming. UniHouse offers a service to 3 groups of individuals.&#x20;

<figure><img src="https://3710285434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1yiWjWV2wq6doHoSVa72%2Fuploads%2FEPqVyLIl4qxG9j4n9SRB%2Fimage.png?alt=media&#x26;token=1e6f3f12-a8a5-4440-b0e1-5bb60250ffb6" alt=""><figcaption><p>Pooled House Capital</p></figcaption></figure>

* **Stakers:** Investors who deposit their money (collateral) to earn profits based on the house's earnings.
* **Developers:** Game creators who want to list their games in the house, and use the available funds to run their games.
* **Players:** Gamers who want to play against the house for fun, excitement, and the chance to win big.

### **How it works?**

UniHouse consists of different "Houses" for various assets (like SUI or BUCK). Users can stake their assets in these houses to earn profits(or possible losses) alongside the Casino's performance.

Each individual house is related to the UniHouse object as a dynamic object field and is only accessible through the UniHouse functions. This ensures that all interactions are properly regulated and secure.

**Staking**

How do you stake in UniHouse?

* When you deposit money into a house, you receive "gTokens." These gTokens are tokens representing your share of ownership in the house.
* The value of gTokens goes up or down based on the house's profits and losses.
* gTokens can be redeemed for your assets at any time.

#### **Withdrawals**

<figure><img src="https://3710285434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1yiWjWV2wq6doHoSVa72%2Fuploads%2FnUNoRDUpNJ7BWTtUG7SA%2Fimage.png?alt=media&#x26;token=a461d971-f386-4da1-9d0d-7a81518ce54f" alt=""><figcaption></figcaption></figure>

Withdraws follow an epoch system. Each epoch is 24 hours max. You can make a request to withdraw your assets during the first hour of any epoch, but you must wait until a specific withdraw epoch to actually withdraw them. Depending on the collateralization ratio of the vault, your withdraw epoch will be 1 epochs later. You must withdraw your assets in the first hour of your withdraw epoch, otherwise a new request is required.

The gToken value is computed as the fund/supply of gTokens minted.<br>
