# Platform

Frosty.casino features five main products, each detailed in this document. This section provides an abstract overview of each one.

#### Treasury

Our smart contract, the Treasury, holds all the platform's funds. It pays out winnings and collects losses, ensuring there's always a significant sum ready for payouts. Frosty.casino will kickstart the Treasury with initial funding. The casino, betting, and poker smart contracts don’t hold any funds themselves; they interact with the Treasury, either sending funds to it or requesting funds from it.

#### Casino

Get ready for all your favorite gambling games like slots, roulette, blackjack, and more! Each game is its own smart contract, with VRF ensuring fair outcomes and the Treasury handling all the funds.

Plus, our casino has some extra cool features:

* **Off-chain Statistics Module:** Leaderboards and general stats, gathered from blockchain data. It's a frontend feature that doesn’t mess with gameplay or the casino's business logic.
* **Quarterly Jackpot:** A special smart contract triggered by each casino game play, designed to be won randomly once per quarter. Every try has the same probability, keeping things exciting!

#### Betting

Dive into decentralized betting on your favorite sports events with Frosty.casino! Forget the complicated P2P stuff; our fully automated system runs on smart contracts, requiring no human intervention. Here’s how it works:

* **Event Layer:** Lists events on the frontend from a decentralized event oracle feed.
* **Settlement Layer:** A smart contract creates on-chain events and places bets, referencing the event oracle and interacting with the Monaco Protocol betting engine.
* **Outcome Layer:** A permissionless smart contract triggered by an outcome oracle in real-time. It matches events with outcomes, closes events, and triggers fund distribution via the Monaco Protocol.

Every bet you place generates a fixed fee that goes straight to the Treasury. Enjoy seamless, automated betting with Frosty.casino.

#### Poker

Get ready for fully decentralized online poker! Our poker product is powered by a single, all-in-one smart contract that handles the entire Texas Hold’em game logic. Each poker table is an instance (PDA) of this smart contract.

Want to play cash games? You can start your own game rooms with separate instances. For SNGs and tournaments, simply link game instances using a common identifier.

Each hand has a tiny rake that gets sent straight to the Treasury. Dive into seamless, decentralized poker action!

#### Profit Sharing

Profit sharing is a cornerstone of our platform, designed to boost the utility of $CHIP tokens and incentivize greater engagement across the platform, which in turn energizes the entire ecosystem. Here’s how the profits are distributed:

**Staking Smart Contract:** $CHIP token holders have the opportunity to stake their tokens and receive a portion of the platform’s profits. This is facilitated through a liquid staking mechanism, which means there are no lockup periods or vesting requirements. Token holders can withdraw their staked tokens at any time without facing penalties, making it both flexible and rewarding.

**Treasury Contracts:** The total profits are divided among three distinct smart contracts, each serving a specific purpose:

* **Investor Treasury (30% of profits):** This portion is distributed to $CHIP token stakers, providing them with a direct share of the profits as a reward for their participation and support.
* **Jackpot Treasury (10% of profits):** This fund is set aside for a quarterly jackpot, where the entire amount is awarded to one lucky platform user. The jackpot is designed to be won once per quarter, adding an exciting element of chance to the platform.
* **Platform Treasury (60% of profits):** This substantial share is allocated to cover operational expenses (10%) and to pay out affiliate rewards (50%). This ensures the smooth running of the platform and supports our affiliate network.

By spreading the profits across these areas, we not only incentivize token holders and create thrilling opportunities for users but also ensure the platform’s sustainable growth and continued success.
