# 1️⃣ Architecture & Components

#### Application Layer

Web & mobile apps for staking, governance, vaults, and portfolio.

#### Protocol Layer

Smart contracts for staking logic, reward streaming, treasury routing, and DAO execution.

#### Analytics Layer (RocaAI)

Models that estimate expected return ( \mathbb{E}\[R] ), volatility ( \sigma ), and compute pool scores.

#### RocaCore

Registry for stakes, multipliers, and emissions. Rewards follow compound growth:

$$
R\_t = P \left(1 + \frac{r}{n}\right)^{n t}
$$

where (P) is principal, (r) annual rate, (n) compounding frequency, and (t) years.

#### RocaVaults

Aggregates liquidity and allocates to sources using AI-scored weights:

$$
w\_i = \frac{S\_i}{\sum\_{k=1}^{N} S\_k}
$$

where (S\_i) is the score of pool (i) (Sharpe-like, liquidity health, slippage, etc.).

#### RocaTreasury

Holds platform revenues and funds rewards. No inflation; yields come from realized income.

#### RocaAI Engine

Risk-adjusted scoring with a Sharpe-style metric:

$$
SR\_i = \frac{\mathbb{E}\[R\_i] - R\_f}{\sigma\_i}
$$

Liquidity tilts toward pools with higher (SR\_i).
