> ## Documentation Index
> Fetch the complete documentation index at: https://docs.juiced.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Architecture

> Learn about the architecture of Juiced Protocol.

### The Technology Stack

Juiced is a specialized application layer designed to function as the incentive and liquidity coordination hub for the **RISE** ecosystem. The architecture is divided into three distinct layers:

1. **Execution (RISE Chain)**

   The foundational high-performance layer. With sub-50ms block times, it provides the "CEX-like" speed required for institutional-grade orderbook settlement.

2. **Infrastructure (RiseX CLOB)**

   The Central Limit Order Book (CLOB) engine. RiseX maintains the single source of truth for all market activity. Juiced does not fragment liquidity - instead, it interacts directly with RiseX to populate and manage these global orderbooks.

3. **Coordination (Juiced Protocol)**

   The incentive overlay. Juiced tracks address-level performance on the RiseX orderbooks and manages the distribution of rewards. It acts as the "brain" that directs capital where it is most needed.

### The Exclusive Curator Model

On RiseX, the creator of a market is designated as its **Curator**, entitling them to a permanent share of the trading fees generated by that pair.

Juiced leverages this through an **Exclusive Curator Strategy**.

**The Gatekeeper Advantage**

In Phase 1, Juiced acts as the sole factory for incentivized markets. For a market to receive protocol support, it must be deployed via the Juiced smart contracts.

* **Quality Control:** The Juiced Core Team (The Curator) whitelists assets based on security, volume potential, and oracle reliability. This prevents "rug pulls" and ensures the ecosystem remains professional.
* **Protocol-Owned Revenue (POR):** By being the technical creator (Curator) of these markets, Juiced permanently captures the **Curator Fee**.
* **Real Yield Redistribution:** Unlike private curators, Juiced collects these fees into the Protocol Treasury and redistributes them to `$veJUICE` stakeholders. This turns the `$JUICE` token into a diversified index of the entire RiseX trading volume.

### Ecosystem Roles & Incentives

The Juiced economy aligns four key participants in a mutually beneficial "Flywheel."

**A. The Protocol (The Coordinator)**

* **Role:** The clearinghouse for incentives.
* **Function:** It mints `$JUICE` emissions and applies the **Scoring Algorithm** to ensure rewards are only paid for high-quality, tight-spread liquidity.

**B. Maker Vaults (The Supply Side)**

* **Role:** Automated Liquidity Providers.
* **Problem:** Retail users lack the technical tools to market-make on an orderbook.
* **Solution:** Vaults allow users to deposit assets (`USDC`/Tokens) into smart contracts that automatically run grid-trading and rebalancing strategies on RiseX.
* **Incentive:** Earns `$JUICE` emissions + Trading Fees, auto-compounded for the depositor.

```mermaid theme={null}
graph TD
    %% Roles
    User[Suppliers]
    Market[RiseX Market]
    Vault[Juiced Vault]
    Treasury[Juiced Treasury]

    %% Flow Project
    User ---> | Provide liquidity | Vault

    Vault ---> | Rewards | User
    Vault ---> | Bribes | Treasury
    Vault ---> | Manage | Market
    Vault ---> | Auto Compound | Vault

    Market ---> | Fees | Vault

    Treasury ---> | Buybacks | User

    %% Styling
    style Market fill:#FF4500,stroke:#000
```

**C. Projects (The Demand Side)**

* **Role:** Liquidity Seekers.
* **Function:** New protocols or token issuers (e.g., a new L1 or DeFi project) that require deep, stable orderbooks for their tokens.
* **Action:** They deposit **Bribes** into the Juiced Marketplace to convince `$veJUICE` holders to direct emissions toward their specific market.

**D. veJUICE Holders (The Governors)**

* **Role:** Protocol Owners & Directors.
* **Requirement:** Users lock `$JUICE` tokens for a fixed period (up to 4 years) to receive `$veJUICE`.
* **Powers:**
  * **Yield Capture:** Claiming a pro-rata share of all **Curator Fees** and **Bribes** flowing through the protocol.

```mermaid theme={null}
graph TD
    %% Roles
    Team[Juiced Curator]
    Project[Project Team]
    User[Governors]
    Market[RiseX Market]
    Bribe[Bribe Marketplace]
    Vault[Juiced Vault]

    %% Flow Project
    Team --> |Whitelist & Deploy| Vault

    Project ---> | Request & Promote| Team
    Project ---> | Incentivize| Bribe

    Bribe ---> | Bribes | User

    User ---> | Emission| Vault

    Vault ---> | Create & Manage | Market

    %% Styling
    style Team fill:#FF4500,stroke:#000
    style Market fill:#FF4500,stroke:#000
```
