# Rosetta
Source: https://docs.rosetta.sh/01-overview
Multi-chain yield infrastructure
## Introduction
### What is Rosetta
Rosetta is yield infrastructure for DeFi, built to make on-chain yield transparent and actionable across chains and protocols.
It currently operates on **HyperEVM** and **Base**, routing capital across **Morpho** and **Aave** markets and vaults. It supports **USDT0** and **USDC** as routable assets.
Rosetta consists of two core components:
**Indexer**: A block-level data infrastructure that tracks lending markets, vaults, and yields continuously across supported chains. Computes state every block for accurate APY reporting, utilization tracking, and liquidity monitoring.
**Yield Router**: A non-custodial allocation system that routes capital across vaults and lending markets based on real-time yield data, user-defined policies, and cost-aware execution logic.
The Indexer provides the data layer. The Yield Router consumes that data to make allocation decisions and execute them through user-controlled smart accounts. Together, they form infrastructure that applications (including the Router itself) are built on.
### Supported Chains and Protocols
| Chain | Protocols | Assets |
| -------- | ------------ | ----------- |
| HyperEVM | Morpho, Aave | USDT0, USDC |
| Base | Morpho | USDC |
### Principles
**Non-custodial**: Users operate through smart accounts (sub-accounts) that they control. Rosetta orchestrates deposits and rebalances within these accounts, but withdrawals can only be sent to the user's main wallet. Funds never sit in Rosetta's custody.
**Block-level precision**: Interest accrues every block. The Indexer reflects this by computing vault and market states at block cadence, enabling accurate yield comparisons and APY reporting.
**User-controlled policies**: Users define which vaults, protocols, and assets the Router can access. These policies are stored on-chain and enforced programmatically. Changing them requires the user's signature.
**Transparent by default**: Every yield figure, allocation decision, and rebalancing action is derived from on-chain data and verifiable. Users see where returns come from, not just what they are.
**Fully automated**: Once policies are set, the Router handles allocation and rebalancing without manual intervention. Users define the rules; Rosetta executes within them.
**Sponsored execution**: Rosetta covers all gas costs for deposits, withdrawals, and rebalancing. The APY users see is the APY they earn. No hidden transaction costs eating into returns.
**Multi-chain**: Rosetta operates across multiple chains, enabling users to access the best yield opportunities regardless of which network they originate from.
# Overview
Source: https://docs.rosetta.sh/02-yield-router
The Yield Router is a non-custodial allocation system that automatically routes capital across vaults and lending markets to maximize yield.
It consumes real-time data from the Indexer and executes allocation decisions through user-controlled smart accounts. Users define which vaults, protocols, and chains the Router can access. The Router handles everything else: monitoring rates, evaluating opportunities, executing rebalances.
### Components
The Router consists of three layers:
| Layer | Function |
| ---------------- | ------------------------------------------------------------------------------------------------------ |
| Smart Accounts | User-controlled accounts that hold funds and execute transactions, deployed per chain |
| Policies | On-chain rules defining permitted vaults, protocols, assets, and constraints |
| Execution Engine | Monitors yields across chains and protocols, evaluates rebalancing opportunities, executes allocations |
### Flow
1. User connects wallet and creates a smart account (sub-account linked to their main wallet)
2. User selects a chain
3. User configures policies (selects which vaults, protocols, and assets their capital will flow into)
4. User deposits assets into their smart account
5. Router allocates capital to the highest-yielding permitted vault or market
6. Router continuously monitors yields via the Indexer across all enabled protocols
7. When a better opportunity exists, Router rebalances
8. User withdraws to their main wallet at any time
### What the Router Optimizes
The Router seeks the highest sustainable yield within user-defined constraints. This means:
* Evaluating current APY across all permitted vaults and markets
* Comparing yields across protocols and chains
* Accounting for costs and impacts of moving capital
* Filtering out unsustainable or artificially inflated yields
* Respecting liquidity constraints and withdrawal reliability
For risk-adjusted evaluation of yield opportunities, Rosetta includes a built-in risk intelligence layer — see [Circular](/circular/overview).
# Architecture
Source: https://docs.rosetta.sh/03-yield-router-architecture
## Smart Accounts
Smart accounts are the orchestration layer of the Yield Router. They are user-owned contracts that hold funds and execute transactions on behalf of the user.
### Why Smart Accounts
Traditional DeFi interactions require users to sign every transaction: deposits, withdrawals, rebalances. Automated routing would require either:
* Custodial control (user gives funds to a third party)
* Constant user interaction (defeating the purpose of automation)
Smart accounts solve this. The user retains ownership while granting limited, revocable permissions for specific actions.
### Architecture
Each user has two addresses per chain:
| Account | Description |
| --------------------------- | ------------------------------------------------------------ |
| Main Wallet (EOA) | The user's externally owned account, holds keys |
| Sub-Account (Smart Account) | A contract controlled by the main wallet, holds routed funds |
The smart account is deployed when a user first connects to Rosetta. It is owned by the user's main wallet and can only be controlled by it. On multi-chain setups, a separate sub-account exists on each supported chain.
### Permissions
The smart account **grants** Rosetta permission to:
* Deposit into whitelisted Morpho vaults
* Supply to enabled Aave markets
* Withdraw from vaults and markets
* Rebalance between vaults and across protocols
The smart account **does not grant** Rosetta permission to:
* Withdraw to any address other than the user's main wallet
* Access vaults, markets, or protocols not explicitly enabled in policies
* Modify policies without user signature
### Withdrawal Constraint
All withdrawals from the smart account can only be sent to the user's main wallet. This is enforced at the contract level. This eliminates an entire class of attack vectors. Even if Rosetta's systems were compromised, funds could only be sent back to the rightful owner.
## Policies
Policies are on-chain rules that define what the Yield Router is permitted to do with a user's funds. They are the user's control mechanism over automated execution.
### What Policies Control
| Permission | Description |
| ---------------------- | -------------------------------------------------------- |
| Enabled Assets | Which assets the Router can allocate (e.g., USDT0, USDC) |
| Enabled Vaults | Which Morpho vaults the Router can deposit into |
| Enabled Protocols | Which protocols are active (Morpho, Aave) |
| Withdrawal Destination | Fixed to user's main wallet (cannot be changed) |
### Enabling and Disabling
When a user disables a vault or protocol:
1. Policy state updates on-chain
2. Router can no longer deposit into that vault or market
3. Existing positions in that vault are withdrawn
4. Router will reallocate funds on the next block
When a user enables a vault or protocol:
1. Policy state updates on-chain
2. Router can now include that vault or market in allocation decisions
3. If the newly enabled option has a better sustainable APY, Router reallocates to it
### Policy Upgrades
When Rosetta adds support for new assets, protocols, or chains, users must upgrade their policy to access them. This requires explicit user consent via signature.
For example, when Rosetta added Base chain support:
1. Rosetta deployed new policy version with Base chain capability
2. User sees "Upgrade available" in interface
3. User reviews and signs the upgrade transaction
4. Base chain vaults become available in user's policy configuration
Users are never auto-enrolled in new assets, protocols, or chains.
### Risk Intelligence
Rosetta's risk intelligence layer, [Circular](/circular/overview), provides analytical tools for evaluating vault and market risk profiles before configuring policies.
# Indexer: Block-Level Accrual
Source: https://docs.rosetta.sh/04-block-by-block-accrual-how-live-apy-is-produced
## Indexer
## Block-Level Indexing
Rosetta's Indexer computes the state of every tracked vault and market at every block.
### The Problem with Event-Based Systems
Most DeFi data infrastructure is event-based: state updates only when transactions occur. Between transactions, data goes stale.
But interest accrues every block. A market with no transactions still has borrowers owing more, lenders entitled to more, utilization shifting, and rates adjusting. Event-based systems miss all of this.
### What Rosetta Does Differently
Rosetta treats each block as the atomic unit of truth. Instead of waiting for events, the Indexer:
1. **Accrues interest forward**: Computes what borrowers owe and lenders are entitled to at the current block, regardless of when the last transaction occurred
2. **Recomputes utilization**: Calculates the current ratio of borrowed to supplied assets, reflecting accrued interest
3. **Recalculates rates**: Runs the protocol's IRM logic to determine current Borrow APY and Supply APY
4. **Updates vault state**: Rolls up market-level changes to compute current vault positions, PPS, and blended yields
5. **Stores block-level snapshots**: Maintains a time series of state at block granularity
### Why This Matters
Block-level data enables:
* **Accurate yield comparison**: Compare vaults using current rates, not stale snapshots
* **Precise routing decisions**: The Yield Router acts on real-time data, not outdated signals
* **Honest APY reporting**: Users see what they will actually earn, not what the rate was hours ago
* **Backtesting with fidelity**: Historical analysis uses actual block-by-block state, not interpolated guesses
The Indexer is the foundation that makes intelligent routing possible.
### **How It Works**
### Accrual Computation
Interest accrues based on time elapsed and the current borrow rate. For each block, the Indexer computes:
```jsx theme={null}
time_elapsed = current_timestamp - last_update_timestamp
interest_factor = exp(borrow_rate * time_elapsed)
total_borrowed = total_borrowed_previous * interest_factor
total_supplied = total_supplied_previous + (total_borrowed - total_borrowed_previous)
```
### Utilization and Rate Recalculation
With updated totals, utilization is recomputed:
```jsx theme={null}
utilization = total_borrowed / total_supplied
```
The Indexer then runs the protocol's IRM to get current rates. For an adaptive curve IRM:
```jsx theme={null}
target_utilization = 0.9
err = (utilization - target_utilization) / target_utilization
*# Curve mechanism*
if err < 0:
borrow_rate = ((1 - 1/C) * err + 1) * rate_at_target
else:
borrow_rate = ((C - 1) * err + 1) * rate_at_target
*# Adaptation mechanism*
rate_at_target = rate_at_target_previous * exp(speed * err * time_elapsed)
```
Where `C = 4` (curve steepness) and `speed = 50` (adaptation speed).
Supply rate derives from borrow rate:
```jsx theme={null}
supply_rate = borrow_rate * utilization * (1 - protocol_fee)
```
### APY Conversion
Rates are per-second. To convert to APY:
```jsx theme={null}
seconds_per_year = 365 * 24 * 60 * 60
borrow_apy = exp(borrow_rate * seconds_per_year) - 1
supply_apy = exp(supply_rate * seconds_per_year) - 1
```
### Price Per Share (PPS)
For markets and vaults, PPS tracks the value of each share over time:
```jsx theme={null}
pps = total_assets / total_shares
```
As interest accrues, `total_assets` grows while `total_shares` remains constant (until deposits/withdrawals), causing PPS to increase.
### Vault State Rollup
Vaults hold shares in multiple markets. The Indexer values each position and aggregates:
```jsx theme={null}
position_values = []
for market in vault.markets:
market_pps = market.total_assets / market.total_shares
position_value = vault.shares_in_market[market] * market_pps
position_values.append(position_value) *# Add each position*
*# After loop completes, vault_total_assets = sum of all positions*
vault_total_assets = sum(position_values)
vault_pps = vault_total_assets / vault_total_shares
```
Vault Supply APY is the weighted average of underlying market rates:
```jsx theme={null}
weighted_rates = []
for market in vault.markets:
weight = vault.position_value[market] / vault_total_assets
weighted_rate = market.supply_apy * weight
weighted_rates.append(weighted_rate)
vault_supply_apy = sum(weighted_rates)
```
### Block Snapshot Schema
Each block produces a snapshot stored with the following structure:
```jsx theme={null}
MarketSnapshot = {
block_number: 22177570,
timestamp: 1734537602,
market_address: "0xd13b...04fc",
total_supplied: 3484707.2, # USDC
total_borrowed: 2665432.8, # USDC
utilization: 0.7644, # 76.44%
borrow_apy: 0.0668, # 6.68%
supply_apy: 0.0511, # 5.11%
available_liquidity: 819274.4, # USDC
rate_at_target: 0.0542 # 5.42%
}
VaultSnapshot = {
block_number: 22177570,
timestamp: 1734537602,
vault_address: "0x8a86...ea27",
total_assets: 52953204.18, # USDC
total_shares: 51847293.62, # feUSDC
pps: 1.0213,
supply_apy: 0.0465, # 4.65%
market_allocations: {
"kHYPE/USDC": 38590000.0, # 72.89%
"WHYPE/USDC": 10950000.0, # 20.70%
"UBTC/USDC": 3240000.0, # 6.13%
"PT-kHYPE/USDC": 142940.0 # 0.27%
}
}
```
## Aave Accrual
The Indexer also tracks Aave markets using the Aave V3 accrual model. While the principles are the same — compute state at every block — the mechanics differ from Morpho.
### Aave Interest Accrual
Aave tracks cumulative interest via a **liquidity index**, a monotonically increasing multiplier:
```jsx theme={null}
time_elapsed = current_timestamp - last_update_timestamp
linear_rate = variable_borrow_rate * time_elapsed / seconds_per_year
# Liquidity index update (ray math, 10^27 precision)
liquidity_index = liquidity_index_previous * (1 + linear_rate * utilization)
```
A supplier's actual balance at any block is:
```jsx theme={null}
actual_balance = scaled_balance * liquidity_index
```
The `scaled_balance` is set at deposit time and remains constant. As the liquidity index grows, the actual balance increases — this is how Aave accrues yield.
### Aave Supply APY
```jsx theme={null}
supply_apy = (1 + variable_borrow_rate * utilization / seconds_per_year) ^ seconds_per_year - 1
```
The Indexer computes this at every block, capturing rate changes that occur between transactions.
### Multi-Chain Indexing
The same block-level approach applies across all supported chains. On Base, the Indexer tracks Morpho markets using the same accrual computation described above. Each chain maintains its own snapshot timeline indexed by block number.
## What It Tracks
The Indexer maintains continuous state for three entity types: Morpho markets, Morpho vaults, and Aave reserves.
### Morpho Markets
For each Morpho lending market, the Indexer tracks:
| Field | Description |
| ------------------- | --------------------------------------------- |
| Total Supplied | Assets deposited by lenders |
| Total Borrowed | Assets borrowed against collateral |
| Utilization | Ratio of borrowed to supplied |
| Borrow APY | Current annualized rate borrowers pay |
| Supply APY | Current annualized rate lenders earn |
| Available Liquidity | Withdrawable assets (supplied minus borrowed) |
| LLTV | Liquidation threshold for the market |
| Rate At Target | Current IRM target rate (for adaptive models) |
### Morpho Vaults
For each vault, the Indexer tracks:
| Field | Description |
| ------------------ | ----------------------------------------------- |
| Total Assets | Sum of all positions valued in underlying asset |
| Total Shares | Outstanding vault shares |
| PPS | Price per share (total assets / total shares) |
| Supply APY | Weighted average of underlying market rates |
| Market Allocations | Current distribution across markets |
| Curator | Entity managing the vault strategy |
| Deposit Queue | Order in which new deposits are allocated |
| Withdraw Queue | Order in which withdrawals are sourced |
### Aave Reserves
For each Aave reserve, the Indexer tracks:
| Field | Description |
| ------------------- | -------------------------------------- |
| Total Supply | Assets deposited by suppliers |
| Total Borrowed | Assets borrowed from the pool |
| Utilization | Ratio of borrowed to supplied |
| Supply APY | Current annualized rate suppliers earn |
| Variable Borrow APY | Current annualized rate borrowers pay |
| Liquidity Index | Cumulative interest multiplier |
| Available Liquidity | Withdrawable assets |
| aToken Address | Interest-bearing token contract |
### Update Frequency
All metrics are recomputed every block. On HyperEVM with \~1 second block times, this means near real-time accuracy. On Base, block times are \~2 seconds.
Historical data is retained at block granularity, enabling:
* Point-in-time queries at any block height
* Time-series analysis of yield trends
* Backtesting of routing strategies
* Cross-chain yield comparison at synchronized timestamps
# Smart Allocation Logic
Source: https://docs.rosetta.sh/04-smart-allocation-logic
## Routing Logic
The Routing Logic determines how capital is allocated across vaults and lending markets. It answers: given the user's policies and current market conditions, where should funds be?
### Decision Inputs
The Router evaluates:
| Input | Source |
| ----------------------------------- | --------------------------------- |
| Current APY per vault | Indexer (block-level) |
| Current APY per Aave market | Indexer (block-level) |
| Post-deposit APY | Indexer (impact simulation) |
| Available liquidity | Indexer |
| User's enabled vaults and protocols | Policies |
| Current allocation | Smart account state |
| Chain context | Selected chain (HyperEVM or Base) |
### Signal Generation
Based on these inputs, the Router generates allocation signals:
* **Deposit signal**: Which vault or market should receive new deposits
* **Rebalance signal**: Whether current allocation should shift to a different vault or protocol
* **Hold signal**: Current allocation remains optimal
Signals are generated only when improvement exceeds minimum thresholds. The Router does not rebalance for marginal gains.
### Cross-Protocol Evaluation
The Router compares yields across protocol boundaries. An Aave supply market yielding 6% will be preferred over a Morpho vault yielding 5%, assuming both are enabled in user policies. The Router treats all enabled destinations as a single opportunity set.
### Execution
When a signal is generated:
1. Router validates action against user's policies
2. Transaction is submitted to user's smart account on the appropriate chain
3. Smart account executes on-chain (Morpho vault deposit or Aave supply)
4. Rosetta sponsors gas costs
# Vaults
Source: https://docs.rosetta.sh/05-1-vaults
A vault is an aggregation layer that sits between lenders and markets. Instead of supplying directly to individual markets, users deposit into a vault. The vault allocates those deposits across multiple markets according to its strategy.
### Structure
Each vault has:
| Component | Description |
| ------------------ | ---------------------------------------------------------------- |
| Underlying asset | The asset the vault accepts (e.g., USDC, USDT0) |
| Curator | The entity that manages allocation strategy and risk parameters |
| Market allocations | The set of markets the vault supplies to and in what proportions |
| Supply caps | Maximum deposits the vault will accept |
### Shares and Assets
When you deposit into a vault, you receive vault shares representing your proportional claim on the vault's total assets.
**Shares**: Tokens minted by the vault when you deposit. They represent ownership, not a fixed amount.
**Assets**: The total value the vault holds across all its market positions, denominated in the underlying asset (e.g., USDC).
The vault does not pay interest directly. Instead, as underlying markets accrue interest, total assets grow while total shares remain constant. This increases the Price Per Share (PPS):
`PPS = Total Assets / Total Shares`
Your shares stay the same. Their redeemable value increases.
### Curators
Curators are responsible for:
* Selecting which markets the vault allocates to
* Setting allocation weights and caps
* Monitoring risk parameters (LLTV, collateral quality, utilization)
* Rebalancing between markets
Different curators have different strategies and risk profiles. Some vaults charge management fees on yield.
### Whitelisted Vaults
Rosetta routes capital only to whitelisted vaults across supported chains and assets. Vaults are available on both **HyperEVM** (USDT0 and USDC) and **Base** (USDC).
New vaults are added as they meet Rosetta's risk and liquidity criteria. Users must enable new vaults in their policies before the Router can allocate to them. The current set of available vaults is visible in the Policies section of the app.
# Lending Markets
Source: https://docs.rosetta.sh/05-2-markets
Rosetta routes capital to lending markets across two protocols: **Morpho** and **Aave**. Each protocol has a different market architecture.
## Morpho Markets
A Morpho lending market is an isolated pool where lenders supply assets and borrowers take loans against collateral.
Each market is defined by five parameters:
| Parameter | Description |
| ---------------- | --------------------------------------------------------------------------- |
| Collateral asset | Asset borrowers lock (e.g., HYPE, ETH, BTC) |
| Loan asset | Asset lenders supply and borrowers receive (e.g., USDC, USDT0) |
| LLTV | Liquidation Loan-to-Value, threshold at which positions become liquidatable |
| Oracle | Price feed used to value collateral |
| IRM | Interest Rate Model, determines rates based on utilization |
**Utilization**
Utilization is the ratio of borrowed assets to total supplied assets:
`Utilization = Total Borrowed / Total Supplied`
`Supply APY = Borrow APY × Utilization × (1 − Fee)`
Utilization drives rates. Higher utilization means higher rates. Lower utilization means lower rates.
**Liquidity**
`Available liquidity = Total Supplied - Total Borrowed`
This is what can actually be borrowed at any moment. When utilization is high, available liquidity is low.
**Price Per Share (PPS)**
Lenders receive shares representing their claim on the pool. As interest accrues, total assets grow while shares stay constant. The ratio (assets/shares) increases over time. This is how yield is realized without explicit payments.
**Isolation**
Markets are isolated. A WHYPE/USDC market and a kHYPE/USDC market share nothing: different collateral, different risk parameters, different utilization. Bad debt in one market does not affect others.
Morpho markets are available on both **HyperEVM** and **Base**.
## Aave Markets
Aave uses a **pooled lending model** where multiple assets share a single lending pool. Unlike Morpho's isolated markets, Aave pools aggregate supply and demand across assets.
| Parameter | Description |
| ------------------- | ------------------------------------------------------------------------------------------- |
| Reserve asset | The asset being supplied and borrowed (e.g., USDT0, USDC) |
| aToken | Interest-bearing token received when supplying (represents your deposit + accrued interest) |
| Variable rate model | Interest rate determined by pool utilization with configurable slope parameters |
| Liquidity index | Cumulative multiplier tracking total interest accrued since pool inception |
**How Aave Differs from Morpho**
| Aspect | Morpho | Aave |
| ----------------- | ----------------------------------------- | -------------------------------------------- |
| Architecture | Isolated markets per collateral/loan pair | Pooled lending across assets |
| Interest tracking | Price Per Share (PPS) | Liquidity index + aToken balance |
| Rate model | Adaptive Curve IRM (self-adjusting) | Variable rate with configurable slopes |
| Risk isolation | Full — each market independent | Shared pool — oracle risk affects all assets |
The Yield Router evaluates Aave supply APY alongside Morpho vault APY when making allocation decisions.
# Interest Rate Models & APY
Source: https://docs.rosetta.sh/05-3-apy-freshness-blockbyblock
## Interest Rate Models
Interest Rate Models (IRMs) determine borrow and supply rates based on market conditions. They are the pricing mechanism for capital in lending markets.
### How IRMs Work
Every lending market needs a mechanism to balance supply and demand. IRMs solve this by adjusting rates based on utilization:
* When utilization is high (more borrowing demand), rates increase to attract suppliers and discourage borrowing
* When utilization is low (excess supply), rates decrease to encourage borrowing
The relationship between utilization and rates is defined by a curve. Different protocols implement different curves.
### Types of IRMs
Rosetta tracks markets across protocols that use different IRM architectures.
**1- Fixed Curve Models**
Rates follow a predefined curve with parameters set by governance. Typically a piecewise-linear function with a "kink" at optimal utilization, where rates begin increasing more steeply.
**2- Adaptive Models (Morpho)**
Rates follow a curve that adjusts itself over time based on market behavior. If utilization consistently runs above target, the curve shifts upward. If utilization runs below target, it shifts downward. Used by Morpho markets on both HyperEVM and Base.
**The Adaptation**
The target rate (r₉₀%) itself shifts over time:
* If utilization stays above 90%, r₉₀% gradually increases, pushing rates higher to attract more supply and discourage borrowing
* If utilization stays below 90%, r₉₀% gradually decreases, lowering rates to encourage borrowing
**3- Aave Variable Rate Model**
Aave uses a variable rate model with two slopes:
* **Below optimal utilization**: rates increase gradually along a base slope
* **Above optimal utilization**: rates increase steeply along a second slope to incentivize repayment
The model parameters (base rate, slope 1, slope 2, optimal utilization) are set per reserve by governance. Unlike Morpho's adaptive model, these parameters do not self-adjust — they are fixed until governance changes them.
**From Borrow Rate to APY**
IRMs output a borrow rate, typically expressed per second or per block. Borrow APY annualizes this rate with compounding:
`Borrow APY = e^(borrowRate × secondsPerYear) − 1`
Supply APY is derived from Borrow APY, scaled by utilization:
`Supply APY = Borrow APY × Utilization × (1 − Protocol Fee)`
Suppliers earn a share of borrower interest proportional to how much of the pool is actively borrowed. This formula applies to both Morpho and Aave markets.
## The APY Problem
APY displayed on most interfaces does not reflect what users actually earn.
### Event-Based Updates
Most dashboards update yield figures only when transactions occur: deposits, withdrawals, borrows, repayments. Between transactions, the displayed APY remains static.
But interest accrues continuously. Every block, borrowers owe more and lenders are entitled to more. A dashboard showing 5.00% might be displaying a value from hours or days ago, while the actual rate has shifted with utilization.
Displayed APY = Rate at last transaction
Actual APY = Rate at current block
**Quick example:**
* **`13:02:00`** — Event‑based UI shows 12.8%.
* **`13:02:15`** — Utilization softens (no tx); model implies 11.9%.
* **`13:02:16`** — Rosetta already shows 11.9%.
* **`13:03:40`** — First tx lands; event‑based UI finally updates to 11.9%.
### Market Impact
The APY you see before depositing is not the APY you get after. Your deposit changes the market:
* Depositing into a market increases supply, lowering utilization, lowering rates
* Depositing into a vault triggers allocation, potentially spreading impact across markets
A vault showing 5% APY might yield 4.7% after a large deposit. This "market impact" is invisible, but Rosetta considers it during it reallocations.
# Deposits and Withdrawals
Source: https://docs.rosetta.sh/05-deposits-withdrawals
### Deposits
1. Select chain (HyperEVM or Base)
2. Select asset (USDT0 or USDC on HyperEVM; USDC on Base)
3. Transfer assets from main wallet to smart account
4. Router allocates to the optimal vault or market based on current yields
Allocation is immediate. The Router selects the highest-yielding option from the user's enabled set, accounting for margin impact. Minimum deposit is 10 USD equivalent.
Deposits are routed to the highest-yielding option across Morpho and Aave markets on the selected chain.
### Withdrawals
1. Request withdrawal
2. Router exits vault or market position
3. Assets return to main wallet on the same chain
Withdrawals can only go to the user's main wallet. This is enforced at the contract level.
# Using Rosetta
Source: https://docs.rosetta.sh/06-using-rosetta
## Connecting Your Wallet
To start using Rosetta:
1. Navigate to [app.rosetta.sh](https://app.rosetta.sh/)
2. Click "Connect Wallet"
3. Select your wallet provider (MetaMask, Coinbase, Rainbow, or WalletConnect)
4. Approve the connection
Rosetta uses Privy for wallet authentication, supporting multiple wallet providers.
After first connection, Rosetta will deploy a smart account (sub-account) linked to your wallet. This is a one-time setup per chain.
***
## Selecting a Chain
Use the chain selector in the top navigation to switch between supported chains:
* **HyperEVM**: Morpho and Aave markets and vaults, supports USDT0 and USDC
* **Base**: Morpho vaults, supports USDC
Your selection persists across sessions. Each chain has its own sub-account, policies, and balances.
***
## Understanding Your Accounts
After connecting, you have two accounts per chain:
| Account | Purpose |
| ---------------- | ---------------------------------------------------------------------- |
| Connected Wallet | Your main wallet (EOA). Holds your keys. Receives withdrawals. |
| Sub-account | Smart account that holds routed funds. Controlled by your main wallet. |
Both addresses are visible in the Account section. Funds deposited into Rosetta are held in your sub-account, not by Rosetta.
***
## Setting Your Policies
Before depositing, configure which vaults and protocols the Router can access:
1. Select an asset (USDT0 or USDC on HyperEVM; USDC on Base)
2. Enable or disable individual Morpho vaults
3. Enable or disable Aave markets
4. Click Update and sign the transaction
The Router will only allocate to enabled vaults and markets. You can change policies at any time.
***
## Depositing
To deposit:
1. Go to Overview
2. Select your asset (USDT0 or USDC)
3. Enter amount (minimum 10 USD equivalent)
4. Click "Add Funds"
5. Approve the transaction
Funds transfer from your main wallet to your sub-account. The Router immediately allocates to the highest-yielding enabled vault or market.
***
## Monitoring Your Position
### Overview
Displays your current balance across all protocols, active vault or market, APY, and a real-time yield chart comparing your enabled vaults.
### Activities
Lists all deposit, withdrawal, and rebalancing transactions with timestamps, block numbers, and protocol labels.
### Discover
Browse all available vaults and markets tracked by the Indexer:
* **Vaults**: Supply APY, total deposits, market allocation, curator
* **Markets**: Borrow APY, Supply APY, utilization, liquidity, LLTV
* **Aave**: Supply APY, utilization
***
## Withdrawing
To withdraw:
1. Go to Overview
2. Click "Redeem"
3. Approve the transaction
Funds return to your main wallet on the same chain. Withdrawals can only go to your connected wallet address.
# Glossary
Source: https://docs.rosetta.sh/07-glossary
Glossary
| Term | Definition |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Actionable Yield | Estimated APY after accounting for margin impact of a deposit. What you will actually earn, not what is currently displayed. |
| Adaptive Curve IRM | Interest rate model that automatically adjusts its target rate based on market behavior over time. |
| APY | Annual Percentage Yield. The annualized return on supplied assets, including compounding. |
| Block-Level Indexing | Computing protocol state at every block rather than only when transactions occur. |
| Borrow APY | The annualized rate borrowers pay on borrowed assets. |
| Collateral | Asset locked by borrowers to secure a loan. |
| Curator | Entity managing a vault's allocation strategy and risk parameters. |
| Deposit Queue | The order in which a vault allocates new deposits across its underlying markets. |
| EOA | Externally Owned Account. A standard wallet controlled by a private key. |
| Event-Based Indexing | Updating state only when on-chain transactions occur. Misses continuous interest accrual between events. |
| IRM | Interest Rate Model. Algorithm that determines borrow and supply rates based on utilization. |
| Liquidation | Process where a borrower's collateral is seized when their position exceeds LLTV threshold. |
| LLTV | Liquidation Loan-to-Value. The threshold at which a borrowing position becomes liquidatable. |
| Loan Asset | Asset that lenders supply and borrowers receive. |
| Main Wallet | User's externally owned account (EOA) that controls the smart account and receives withdrawals. |
| Margin Impact | The change in APY caused by a deposit or withdrawal affecting utilization. |
| Market | An isolated lending pool defined by a collateral/loan asset pair and risk parameters. |
| Market Allocations | Distribution of a vault's deposits across its underlying markets. |
| Oracle | Price feed used to value collateral and determine liquidation eligibility. |
| Policies | On-chain rules defining which vaults and assets the Router can access for a user. |
| Policy Upgrade | Process of updating smart account permissions to access new assets or vaults. Requires user signature. |
| PPS | Price Per Share. The value of one vault share in terms of the underlying asset. Total assets divided by total shares. |
| Rate At Target | The interest rate at target utilization (typically 90%). The anchor point for IRM calculations. |
| Rebalancing | Moving capital from one vault to another when a better yield opportunity exists. |
| Routing Signal | Decision output from the Router indicating deposit, rebalance, or hold. |
| Shares | Tokens representing proportional ownership in a vault or market position. |
| Smart Account | User-owned contract that holds routed funds and executes transactions. Also called sub-account. |
| Supply APY | The annualized rate lenders earn on supplied assets. |
| Supply Caps | Maximum deposits a vault will accept per market. |
| Target Utilization | The utilization rate an IRM optimizes toward, typically 80-90%. |
| Total Assets | The total value a vault holds across all its market positions. |
| Total Shares | Outstanding vault shares representing all depositor claims. |
| Utilization | Ratio of borrowed assets to supplied assets in a market. |
| Vault | Aggregation layer that allocates deposits across multiple markets according to a curator's strategy. |
| Withdraw Queue | The order in which a vault sources funds for withdrawals from its underlying markets. |
| aToken | Interest-bearing token received when supplying assets to Aave. Represents deposit plus accrued interest. |
| Base | Ethereum L2 chain supported by Rosetta alongside HyperEVM. Supports Morpho vaults with USDC. |
| Chain Selector | UI component for switching between supported chains (HyperEVM, Base). |
| Circular | DeFi risk intelligence platform with 26 analytical tools for risk monitoring, portfolio optimization, and scenario analysis. |
| Aave | Pooled lending protocol. Rosetta routes to Aave supply markets alongside Morpho vaults. |
| Liquidity Index | Aave's mechanism for tracking cumulative interest accrual. A monotonically increasing multiplier applied to scaled balances. |
| Multi-Chain | Rosetta's ability to route capital and track yields across multiple blockchain networks simultaneously. |
| Terminal | Aggregated yield dashboard showing lending, vault, and options opportunities across multiple protocols. |
# Analytics Tools
Source: https://docs.rosetta.sh/circular/analytics
Trend analysis, market comparison, yield ranking, and position simulation
## Overview
9 tools for analyzing market trends, comparing opportunities, ranking yields, and simulating positions.
## Comparing
### compare\_markets
Side-by-side comparison of 2-5 markets across all metrics.
| Parameter | Type | Description |
| --------- | ------------------------- | ----------------------------- |
| marketIds | string\[] (required, 2-5) | Market identifiers to compare |
| metrics | string\[] | Specific metrics to compare |
**Returns:** Comparison table with TVL, APY, utilization, risk score, and strategy for each market.
### get\_chain\_comparison
Compare DeFi activity across chains including TVL, market count, average yields, and liquidation rates.
No required parameters. Optional filters: chain, protocol.
**Returns:** Per-chain breakdown of TVL, market count, average supply APY, and liquidation activity.
## Trends
### get\_historical\_trends
TVL, utilization, and APY trends over time for a protocol or specific market.
| Parameter | Type | Description |
| --------- | ------------------------- | ---------------------------------------- |
| marketId | string | Specific market (omit for protocol-wide) |
| range | `24h`, `7d`, `30d`, `90d` | Time range |
**Returns:** Time-series data points for TVL, utilization, and APY over the selected range.
### get\_market\_history
Historical data for a specific market showing supply, borrow, and APY over time.
| Parameter | Type | Description |
| --------- | ------------------------- | ----------------- |
| marketId | string (required) | Market identifier |
| range | `24h`, `7d`, `30d`, `90d` | Time range |
**Returns:** Time-series with supply volume, borrow volume, supply APY, and borrow APY.
## Yield Analysis
### find\_yield\_opportunities
Rank markets by risk-adjusted yield using a Sharpe-ratio proxy. Filter by minimum APY, risk tier, and strategy.
| Parameter | Type | Description |
| ----------- | ------------------------------ | ---------------------------------- |
| minApy | number | Minimum APY as decimal (0.05 = 5%) |
| maxRiskTier | `safe`, `moderate`, `elevated` | Maximum acceptable risk level |
| strategy | string | Filter by strategy type |
**Returns:** Markets ranked by risk-adjusted yield with APY, risk tier, strategy label, and Sharpe proxy score.
### analyze\_strategy
Deep analysis of a strategy type showing market count, aggregate performance, risk profile, and best opportunities.
| Parameter | Type | Description |
| --------- | ----------------- | -------------------------------------------------------------- |
| strategy | string (required) | Strategy type (e.g., `recursive`, `lst-delta`, `stable-yield`) |
**Returns:** Strategy overview with total TVL, average APY, risk distribution, and top-performing markets.
### get\_strategy\_breakdown
Strategy-level exposure breakdown showing TVL, borrow, average APY, and average risk score per strategy type.
No required parameters. Optional filters: chain, protocol.
**Returns:** Per-strategy aggregates showing how capital is distributed across LST-delta, recursive, stable-yield, and other strategies.
## Simulation
### simulate\_position
Simulate a leveraged position with entry metrics, health factor evolution, liquidation price, daily carry, and break-even timeline.
| Parameter | Type | Description |
| --------------- | ----------------- | --------------------------- |
| marketId | string (required) | Market to simulate in |
| collateralUsd | number (required) | Collateral amount in USD |
| leverage | number (required) | Target leverage (e.g., 3.0) |
| timeHorizonDays | number | Simulation duration in days |
**Returns:** Position simulation with entry health factor, liquidation price, daily carry (income minus cost), break-even point, and health factor trajectory over time.
## Monitoring
### get\_alert\_conditions
Check active alert conditions across health factor warnings, utilization spikes, APY changes, and whale movements.
| Parameter | Type | Description |
| --------- | --------------------------------------- | ------------------------ |
| type | `health`, `utilization`, `apy`, `whale` | Filter by alert category |
**Returns:** Active alerts with severity, affected market or vault, trigger condition, and current value.
# Check Risk
Source: https://docs.rosetta.sh/circular/api/agent/check-risk
POST /agent/check-risk
Evaluate the risk of a proposed DeFi action (deposit, borrow, withdraw) against configurable risk policies. Returns ALLOW, DENY, or WARN with reasons and alternatives.
# Policy Defaults
Source: https://docs.rosetta.sh/circular/api/agent/policy-defaults
GET /agent/policy/defaults
Get the default risk policy configuration used when no custom policy is provided.
# Alert Conditions
Source: https://docs.rosetta.sh/circular/api/analytics/alerts
GET /alerts
Get current alert conditions across markets and positions.
# Chain Comparison
Source: https://docs.rosetta.sh/circular/api/analytics/chains-compare
GET /chains/compare
Compare DeFi metrics across supported chains.
# Simulate Position
Source: https://docs.rosetta.sh/circular/api/analytics/simulate-position
GET /simulate/position
Simulate a position under different market conditions.
# Strategy Breakdown
Source: https://docs.rosetta.sh/circular/api/analytics/strategies
GET /strategies/breakdown
Breakdown of market strategies (LST delta, recursive, stablecoin, etc.) with TVL and count.
# Analyze Strategy
Source: https://docs.rosetta.sh/circular/api/analytics/strategy
GET /strategy/{strategy}
Detailed analysis of a specific strategy type (e.g. lst-delta, recursive, stablecoin).
# Top Wallets
Source: https://docs.rosetta.sh/circular/api/analytics/top-wallets
GET /wallets/top
List top wallets by various metrics (TVL, positions, activity).
# Historical Trends
Source: https://docs.rosetta.sh/circular/api/analytics/trends
GET /trends
Historical trends for TVL, supply, borrow, and utilization over time.
# Whale Activity
Source: https://docs.rosetta.sh/circular/api/analytics/whales
GET /whales
Monitor large position changes and whale wallet activity.
# Yield Opportunities
Source: https://docs.rosetta.sh/circular/api/analytics/yields
GET /yields
Find the best yield opportunities across markets and vaults, sorted by total APY.
# Authentication
Source: https://docs.rosetta.sh/circular/api/authentication
API key and JWT authentication for the Circular API
## API Key Authentication
Most endpoints use API key authentication via the `Authorization` header.
```bash theme={null}
Authorization: Bearer circ_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
### Key Format
| Prefix | Environment |
| ------------- | ----------- |
| `circ_live_*` | Production |
| `circ_test_*` | Testing |
### Getting a Key
1. Sign up at [circular.rosetta.sh](https://circular.rosetta.sh)
2. Navigate to API Keys in your dashboard
3. Generate a new key — **save it immediately**, it is only shown once
Or use the [Create API Key](/circular/api/client/keys-create) endpoint if you already have JWT access.
### No API Key Required
| Endpoint | Auth Method |
| ------------- | ------------------------ |
| `GET /health` | None |
| `/client/*` | Supabase JWT (see below) |
## JWT Authentication (Client Routes)
Client self-service routes (`/client/*`) use Supabase JWT tokens instead of API keys.
```bash theme={null}
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
```
The JWT must contain a `client_id` claim identifying your client account.
## Error Responses
| Status | Error Code | Meaning |
| ------ | ----------------------- | ---------------------------------------------------------------- |
| 401 | `MISSING_API_KEY` | No `Authorization` header provided |
| 401 | `INVALID_KEY_FORMAT` | Key present but does not start with `circ_live_` or `circ_test_` |
| 401 | `INVALID_API_KEY` | Key not found or revoked |
| 401 | `UNAUTHORIZED` | No Bearer token provided on a JWT-authenticated route |
| 401 | `INVALID_TOKEN` | JWT is invalid or expired |
| 403 | `ACCOUNT_SUSPENDED` | Account billing is suspended — contact support |
| 403 | `FORBIDDEN` | JWT lacks required role or claim |
| 403 | `ENDPOINT_NOT_INCLUDED` | Your tier does not include this endpoint category |
# Caching
Source: https://docs.rosetta.sh/circular/api/caching
Cache-Control headers, CDN behavior, and data freshness
## Cache Tiers
The API sets `Cache-Control` headers based on data volatility. Three tiers:
### No-Store (Real-Time)
User-specific or frequently changing data. No caching at any layer.
```
Cache-Control: no-store
```
**Endpoints:**
* `/health`
* `/positions/all`, `/positions/{address}`, `/positions/{address}/loops`, `/positions/{address}/vaults`
* `/liquidations/user/{address}`
* `/vaults/{address}`, `/vaults/{address}/depositors`
* `/markets/{marketId}`, `/markets/{marketId}/history`, `/markets/{marketId}/positions`
* `/research/market/{marketId}`, `/research/risk`
### Standard (Aggregate Data)
Protocol-wide aggregates that update every few seconds.
```
Cache-Control: public, max-age=10, s-maxage=30, stale-while-revalidate=60
Vary: Accept-Encoding
```
**Endpoints:**
* `/markets`, `/vaults`, `/stats`, `/trends`, `/yields`, `/liquidations`
* `/alerts`, `/whales`, `/wallets/top`
* `/ratings`, `/ratings/vaults`
* `/risk/dashboard`, `/risk/protocol-health`, `/risk/positions-at-risk`
* `/strategies/breakdown`, `/chains/compare`
### Short (Parameterized/Derived)
Computed results that depend on query parameters.
```
Cache-Control: public, max-age=5, s-maxage=15, stale-while-revalidate=30
Vary: Accept-Encoding
```
**Endpoints:**
* `/markets/search`, `/markets/compare`, `/vaults/concentration`
* `/risk/concentration`, `/risk/exposure/{collateral}`, `/risk/yields`, `/risk/report`, `/risk/liquidation-map`
* `/strategy/{strategy}`, `/simulate/position`
* `/research/deploy`, `/research/borrow-markets`, `/research/borrow-strategy`
* `/ratings/market/{marketId}`, `/ratings/vault/{address}`, `/ratings/methodology`
* `/agent/policy/defaults`
## Freshness Indicator
The `meta.freshness` field in responses tells you how fresh the data is:
| Value | Meaning |
| ---------- | ----------------------------------------------- |
| `live` | Fetched from protocol in real-time |
| `cached` | Served from server-side cache |
| `snapshot` | From a periodic snapshot (Supabase time-series) |
# Quota Dashboard
Source: https://docs.rosetta.sh/circular/api/client/dashboard
GET /client/dashboard
Get current quota usage and limits for the authenticated client.
# Create API Key
Source: https://docs.rosetta.sh/circular/api/client/keys-create
POST /client/keys
Generate a new API key. The raw key is returned once and cannot be retrieved again.
# List API Keys
Source: https://docs.rosetta.sh/circular/api/client/keys-list
GET /client/keys
List all API keys for the authenticated client.
# Revoke API Key
Source: https://docs.rosetta.sh/circular/api/client/keys-revoke
DELETE /client/keys/{keyId}
Revoke an API key. This action is irreversible.
# My Profile
Source: https://docs.rosetta.sh/circular/api/client/profile
GET /client/me
Get the authenticated client's profile information.
# Usage History
Source: https://docs.rosetta.sh/circular/api/client/usage
GET /client/usage
Get request usage history for the authenticated client (most recent 200 records).
# Error Handling
Source: https://docs.rosetta.sh/circular/api/errors
Error codes, response shapes, and troubleshooting guide
## Error Response Formats
Errors have two shapes depending on the source:
**Auth/middleware errors (401, 403, 429):**
```json theme={null}
{
"error": "ERROR_CODE",
"message": "Human-readable description"
}
```
**Handler errors (400) — when a handler returns `success: false`:**
```json theme={null}
{
"error": "error message from handler",
"meta": {
"latencyMs": 45,
"freshness": "live",
"source": "morpho"
}
}
```
## Error Codes
### Authentication (401)
| Code | Description |
| -------------------- | --------------------------------------------------------------------------- |
| `MISSING_API_KEY` | No `Authorization: Bearer` header provided |
| `INVALID_KEY_FORMAT` | Key present but wrong prefix (must start with `circ_live_` or `circ_test_`) |
| `INVALID_API_KEY` | API key not found or revoked |
| `UNAUTHORIZED` | No Bearer token provided on a JWT-authenticated route |
| `INVALID_TOKEN` | JWT is malformed, expired, or signature invalid |
### Authorization (403)
| Code | Description |
| ----------------------- | ------------------------------------------------------------------------------------ |
| `ACCOUNT_SUSPENDED` | Account billing is suspended. Contact support to reactivate |
| `FORBIDDEN` | JWT does not have the required role |
| `ENDPOINT_NOT_INCLUDED` | Your tier does not include this endpoint category. Response includes `upgrade: true` |
### Rate Limiting (429)
| Code | Extra Fields | Description |
| ------------------------ | ---------------------- | ------------------------------- |
| `RATE_LIMIT_EXCEEDED` | `retryAfter` (seconds) | Sliding window rate limit hit |
| `DAILY_QUOTA_EXCEEDED` | `limit`, `used` | Daily request quota exhausted |
| `MONTHLY_QUOTA_EXCEEDED` | `limit`, `used` | Monthly request quota exhausted |
### Handler Errors (400)
When a handler returns `success: false`, the API responds with the error message and metadata. These are domain-specific errors like invalid parameters or missing data.
### Circuit Breaker (503)
When an upstream dependency is unavailable:
```json theme={null}
{
"error": "Service temporarily unavailable",
"retryAfterMs": 30000
}
```
The circuit breaker opens after repeated failures to an upstream provider (Morpho, Aave). It auto-closes after the `retryAfterMs` window.
### Internal Errors (500)
Unhandled exceptions return a generic error. Stack traces are included only in non-production environments.
```json theme={null}
{
"error": "Internal server error"
}
```
### Not Implemented (501)
When a requested feature is not yet available:
```json theme={null}
{
"error": "Not yet implemented",
"detail": "SSE transport is not yet implemented"
}
```
# Health Check
Source: https://docs.rosetta.sh/circular/api/health
GET /health
Check API health status. Does not require authentication.
# Liquidation Feed
Source: https://docs.rosetta.sh/circular/api/liquidations/feed
GET /liquidations
Fetch recent liquidation events across all markets.
# User Liquidations
Source: https://docs.rosetta.sh/circular/api/liquidations/user
GET /liquidations/user/{address}
Fetch liquidation history for a specific wallet address.
# Compare Markets
Source: https://docs.rosetta.sh/circular/api/markets/compare
GET /markets/compare
Compare multiple markets with detailed metrics for side-by-side analysis.
# Get Market
Source: https://docs.rosetta.sh/circular/api/markets/get
GET /markets/{marketId}
Fetch detailed information for a specific lending market including oracle data, strategy info, and risk metrics.
# Market History
Source: https://docs.rosetta.sh/circular/api/markets/history
GET /markets/{marketId}/history
Fetch historical data for a market including TVL, APY, and utilization over time.
# List Markets
Source: https://docs.rosetta.sh/circular/api/markets/list
GET /markets
Fetch a summary of lending markets with TVL, APY, utilization, strategy classification, and oracle health.
# Market Positions
Source: https://docs.rosetta.sh/circular/api/markets/positions
GET /markets/{marketId}/positions
List all positions in a specific lending market.
# Search Markets
Source: https://docs.rosetta.sh/circular/api/markets/search
GET /markets/search
Search lending markets by keyword (asset name, symbol, or market label).
# Circular API
Source: https://docs.rosetta.sh/circular/api/overview
REST API for DeFi risk intelligence — markets, vaults, positions, risk analysis, and credit ratings
## Introduction
The Circular API provides programmatic access to DeFi risk intelligence across Morpho Blue, Aave V3, and other lending protocols. It powers the Circular dashboard, MCP tools for Claude, and third-party integrations.
**Base URL:**
```
https://api.circular.rosetta.sh/api/v1
```
## Quick Start
**1. Get an API key** from the [Circular Dashboard](https://circular.rosetta.sh) or via the [Client API](/circular/api/client/keys-create).
**2. Make your first request:**
```bash theme={null}
curl -H "Authorization: Bearer circ_live_your_key_here" \
https://api.circular.rosetta.sh/api/v1/markets?limit=5
```
**3. Parse the response:**
```json theme={null}
{
"data": [...],
"meta": {
"latencyMs": 142,
"freshness": "live",
"source": "morpho+aave"
}
}
```
## Response Envelope
Every successful response wraps data in a standard envelope:
| Field | Type | Description |
| ---------------- | ------ | ------------------------------- |
| `data` | any | The endpoint-specific payload |
| `meta.latencyMs` | number | Server-side processing time |
| `meta.freshness` | string | Data freshness indicator |
| `meta.source` | string | Which protocol(s) provided data |
## Endpoint Categories
| Category | Tier | Endpoints | Description |
| -------------------- | ---------- | --------- | ------------------------------------------------------- |
| Core Data | Free+ | 19 | Markets, vaults, positions, liquidations, stats, health |
| Risk & Analytics | Pro+ | 29 | Risk analysis, strategies, ratings, research |
| Portfolio Management | Free+ | 7 | Portfolio tracking, risk, yield, alerts |
| Integrations | Enterprise | 8 | Agent risk API, client self-service |
## Financial Data Conventions
All monetary values are in **USD**. APYs are stored as **decimals** (0.042 = 4.2%). LLTV is normalized **0-1**. Health factor **>= 1 is safe**, below 1 is liquidatable. TVL is **supply-side only** (never includes borrows).
# Portfolio Alerts
Source: https://docs.rosetta.sh/circular/api/portfolios/alerts
GET /portfolios/{portfolioId}/alerts
Active alerts for a portfolio based on configured thresholds.
# Portfolio Liquidity
Source: https://docs.rosetta.sh/circular/api/portfolios/liquidity
GET /portfolios/{portfolioId}/liquidity
Liquidity analysis for a portfolio including available liquidity and withdrawal impact.
# List Portfolios
Source: https://docs.rosetta.sh/circular/api/portfolios/list
GET /portfolios
List all tracked portfolios.
# Portfolio Overview
Source: https://docs.rosetta.sh/circular/api/portfolios/overview
GET /portfolios/{portfolioId}
Get a comprehensive overview of a portfolio including positions, value, and performance.
# Portfolio Risk
Source: https://docs.rosetta.sh/circular/api/portfolios/risk
GET /portfolios/{portfolioId}/risk
Risk analysis for a portfolio including health factors, concentration, and liquidation exposure.
# Update Thresholds
Source: https://docs.rosetta.sh/circular/api/portfolios/thresholds
PUT /portfolios/{portfolioId}/thresholds
Update the risk alert thresholds for a portfolio.
# Portfolio Yield
Source: https://docs.rosetta.sh/circular/api/portfolios/yield
GET /portfolios/{portfolioId}/yield
Yield breakdown for a portfolio including APY by position and total portfolio yield.
# All Positions
Source: https://docs.rosetta.sh/circular/api/positions/all
GET /positions/all
List all tracked positions across all protocols and markets.
# Detect Loops
Source: https://docs.rosetta.sh/circular/api/positions/loops
GET /positions/{address}/loops
Detect recursive/leveraged loop positions for a wallet (same-asset supply and borrow in the same market).
# Scan Wallet
Source: https://docs.rosetta.sh/circular/api/positions/scan
GET /positions/{address}
Scan a wallet address for all lending positions across supported protocols and chains.
# Wallet Vault Positions
Source: https://docs.rosetta.sh/circular/api/positions/vault-positions
GET /positions/{address}/vaults
Get vault deposit positions for a wallet address.
# Rate Limits & Quotas
Source: https://docs.rosetta.sh/circular/api/rate-limits
Tier-based rate limiting, daily/monthly quotas, and retry strategy
## Rate Limiting
Requests are rate-limited using a sliding window algorithm. Limits are per API key, per second.
### Response Headers
Every authenticated response includes rate limit headers:
| Header | Description |
| ----------------------- | ---------------------------------------------------- |
| `X-RateLimit-Limit` | Maximum requests per second for your tier |
| `X-RateLimit-Remaining` | Remaining requests in the current window |
| `X-RateLimit-Reset` | Unix timestamp (milliseconds) when the window resets |
### When Rate Limited
```json theme={null}
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit 10 req/s exceeded. Retry after 1s.",
"retryAfter": 1
}
```
**Status code:** 429
**Strategy:** Wait `retryAfter` seconds before retrying. Use exponential backoff for repeated 429s.
## Quotas
Each tier has daily and monthly request quotas. Quotas reset at midnight UTC (daily) and the 1st of each month (monthly).
### When Quota Exceeded
```json theme={null}
{
"error": "DAILY_QUOTA_EXCEEDED",
"message": "Daily quota of 1000 requests exceeded.",
"limit": 1000,
"used": 1001
}
```
**Status code:** 429
## Tier Access Matrix
| Feature | Free | Pro | Enterprise |
| ------------------- | ------------- | -------- | ---------- |
| Rate limit | 5 req/s | 20 req/s | 100 req/s |
| Daily quota | 1,000 | 10,000 | Unlimited |
| Monthly quota | 10,000 | 300,000 | Unlimited |
| Result cap | 100 | 500 | Unlimited |
| Core endpoints | Yes | Yes | Yes |
| Position endpoints | Yes | Yes | Yes |
| Portfolio endpoints | Yes | Yes | Yes |
| Risk endpoints | No | Yes | Yes |
| Analytics endpoints | No | Yes | Yes |
| Research endpoints | No | Yes | Yes |
| Ratings endpoints | No | Yes | Yes |
| Agent endpoints | No | No | Yes |
| Allowed chains | Ethereum only | All | All |
| History window | 30 days | 90 days | Unlimited |
These are default tier values configured at launch. Actual limits are stored in the database and may differ. Use the [Quota Dashboard](/circular/api/client/dashboard) endpoint to check your current limits programmatically.
## Tier-Aware Clamping
The API applies tier-specific constraints automatically:
* **Result cap:** `limit` parameter is clamped to your tier's maximum
* **Chain filter:** `chainIds` parameter is filtered to your allowed chains
* **History window:** `startDate` is clamped to your tier's history window
## Route-Specific Limits
Some endpoints have higher default limits:
| Endpoint | Max `limit` |
| ------------------- | ----------- |
| `GET /markets` | 1,000 |
| `GET /liquidations` | 500,000 |
| All other endpoints | 200 |
If no `limit` is provided, defaults to 50. Values above the max are silently clamped.
# All Ratings
Source: https://docs.rosetta.sh/circular/api/ratings/list
GET /ratings
List all market and vault ratings.
# Market Rating
Source: https://docs.rosetta.sh/circular/api/ratings/market
GET /ratings/market/{marketId}
Get the credit rating for a specific market with score breakdown.
# Rating Methodology
Source: https://docs.rosetta.sh/circular/api/ratings/methodology
GET /ratings/methodology
Detailed explanation of the credit rating methodology including scoring dimensions and grade definitions.
# Vault Rating
Source: https://docs.rosetta.sh/circular/api/ratings/vault
GET /ratings/vault/{address}
Get the credit rating for a specific vault with score breakdown.
# Vaults by Rating
Source: https://docs.rosetta.sh/circular/api/ratings/vaults
GET /ratings/vaults
List all vaults sorted by their credit rating.
# Borrow Markets
Source: https://docs.rosetta.sh/circular/api/research/borrow-markets
GET /research/borrow-markets
Find the best markets for borrowing based on rates, liquidity, and risk.
# Borrow Strategy
Source: https://docs.rosetta.sh/circular/api/research/borrow-strategy
GET /research/borrow-strategy
Analyze and recommend optimal borrowing strategies.
# Deployment Research
Source: https://docs.rosetta.sh/circular/api/research/deploy
GET /research/deploy
Analyze optimal deployment opportunities across markets and vaults.
# Market Research
Source: https://docs.rosetta.sh/circular/api/research/market
GET /research/market/{marketId}
Comprehensive research report for a specific market including risk analysis, competitive positioning, and recommendations.
# Risk Assessment
Source: https://docs.rosetta.sh/circular/api/research/risk-assessment
GET /research/risk
Comprehensive risk assessment across the protocol ecosystem.
# Asset Concentration
Source: https://docs.rosetta.sh/circular/api/risk/asset-concentration
GET /risk/asset-concentration
Analyze asset concentration across the protocol including HHI, top holders, and diversification scores.
# Concentration Analysis
Source: https://docs.rosetta.sh/circular/api/risk/concentration
GET /risk/concentration
Detailed concentration risk analysis with optional asset filter.
# Risk Dashboard
Source: https://docs.rosetta.sh/circular/api/risk/dashboard
GET /risk/dashboard
Comprehensive risk dashboard with protocol-wide risk metrics, concentration analysis, and alert summary.
# Depeg Simulation
Source: https://docs.rosetta.sh/circular/api/risk/depeg-simulate
GET /risk/depeg/simulate
Simulate the impact of an asset depeg on positions and liquidations.
# Exposure Analysis
Source: https://docs.rosetta.sh/circular/api/risk/exposure
GET /risk/exposure/{collateral}
Analyze exposure to a specific collateral asset including vault distribution and depeg impact simulation.
# Liquidation Map
Source: https://docs.rosetta.sh/circular/api/risk/liquidation-map
GET /risk/liquidation-map
Map of liquidation risk across price levels and markets.
# Positions at Risk
Source: https://docs.rosetta.sh/circular/api/risk/positions-at-risk
GET /risk/positions-at-risk
List positions that are approaching liquidation based on health factor threshold.
# Protocol Health
Source: https://docs.rosetta.sh/circular/api/risk/protocol-health
GET /risk/protocol-health
Comprehensive protocol health analysis including bad debt, utilization trends, and systemic risk indicators.
# Risk Report
Source: https://docs.rosetta.sh/circular/api/risk/report
GET /risk/report
Generate a comprehensive risk report with configurable scope.
# Risk-Adjusted Yields
Source: https://docs.rosetta.sh/circular/api/risk/yields
GET /risk/yields
Compare yields across markets normalized for risk using Sharpe proxy, risk decomposition, and stability metrics.
# Protocol Stats
Source: https://docs.rosetta.sh/circular/api/stats
GET /stats
Aggregate protocol statistics including total supply, borrow, TVL, and market counts.
# Token Lookup
Source: https://docs.rosetta.sh/circular/api/tokens/lookup
GET /tokens/lookup
Get metadata for a token including oracle feeds, vault associations, and display configuration.
# Vault Concentration
Source: https://docs.rosetta.sh/circular/api/vaults/concentration
GET /vaults/concentration
Analyze concentration risk across vault depositors.
# Vault Depositors
Source: https://docs.rosetta.sh/circular/api/vaults/depositors
GET /vaults/{address}/depositors
List depositors in a vault with their share and USD value.
# Get Vault
Source: https://docs.rosetta.sh/circular/api/vaults/get
GET /vaults/{address}
Fetch detailed information for a specific vault including allocations, APY breakdown, and depositor data.
# List Vaults
Source: https://docs.rosetta.sh/circular/api/vaults/list
GET /vaults
Fetch a summary of vaults with TVL, APY, allocations, and curator information.
# x402 Payments
Source: https://docs.rosetta.sh/circular/api/x402-payments
Pay-per-request pricing for agent API routes via HTTP 402
## Overview
The Agent API supports optional pay-per-request pricing using the [x402 protocol](https://www.x402.org). When enabled, agent routes require a payment header before processing.
x402 payments are disabled by default. They are an opt-in feature for API operators.
## Pricing
| Endpoint | Price |
| ------------------------ | ------ |
| `POST /agent/check-risk` | \$0.01 |
## Payment Network
* **Network:** Base mainnet (EIP-155 chain ID 8453)
* **Facilitator:** `https://www.x402.org/facilitator`
## How It Works
1. Client sends a request to a priced endpoint
2. Server responds with HTTP 402 and payment details
3. Client pays via the x402 facilitator
4. Client retries the request with the payment proof header
5. Server verifies payment and processes the request
## When Disabled
When x402 is not enabled (default), agent routes work normally with standard API key authentication and tier-based access control.
# Core Tools
Source: https://docs.rosetta.sh/circular/core-tools
Foundational data tools for markets, vaults, wallets, and protocol health
## Overview
10 foundational tools for accessing real-time market, vault, wallet, and protocol data across supported chains and protocols.
## Market Data
### get\_market\_overview
Fetch a summary of lending markets with TVL, APY, utilization, strategy classification, and oracle health. Markets with stale oracles are flagged.
| Parameter | Type | Description |
| --------- | ------------------------------------- | -------------------------------------------------------- |
| sortBy | `tvl`, `apy`, `utilization`, `borrow` | Sort order for results |
| strategy | string | Filter by strategy type (e.g., `lst-delta`, `recursive`) |
**Returns:** List of markets with TVL, supply/borrow APY, utilization rate, strategy label, oracle freshness, and risk flags.
### get\_market\_detail
Deep dive into a single lending market with full metrics, risk assessment, strategy analysis, and oracle health including provider, feeds, and freshness.
| Parameter | Type | Description |
| --------- | ----------------- | ------------------------ |
| marketId | string (required) | Market unique identifier |
**Returns:** Complete market profile including TVL, rates, utilization, top positions, risk score, oracle details, and strategy classification.
### search\_markets
Search markets by token name, symbol, or strategy type.
| Parameter | Type | Description |
| --------- | ----------------- | --------------------------------------------- |
| query | string (required) | Search term (token name, symbol, or strategy) |
**Returns:** Matching markets with basic metrics.
## Vault Data
### get\_vault\_overview
List DeFi vaults with TVL, APY, curator info, and allocation summaries.
| Parameter | Type | Description |
| --------- | ------------------------ | ---------------------- |
| sortBy | `tvl`, `apy`, `deposits` | Sort order for results |
**Returns:** List of vaults with TVL, net APY, curator name, number of allocations, and deposit count.
### get\_vault\_detail
Full vault analysis with enriched allocations showing per-market risk scores, APY contribution, weighted risk score, and APY breakdown.
| Parameter | Type | Description |
| --------- | ----------------- | ---------------------- |
| address | string (required) | Vault contract address |
**Returns:** Vault profile with allocation breakdown, per-market metrics, depositor summary, and aggregate risk assessment.
## Wallet Data
### scan\_wallet\_positions
Scan all DeFi positions for a wallet address across all chains and protocols. Shows health factors, leverage, daily carry, and risk alerts.
| Parameter | Type | Description |
| --------- | ----------------- | ---------------------- |
| address | string (required) | Wallet address to scan |
**Returns:** All positions with health factor, leverage ratio, collateral/debt values, daily carry, and risk flags per position.
## Protocol Data
### get\_risk\_dashboard
Protocol-wide risk overview with utilization distribution, health factor distribution, concentration metrics, and liquidation velocity.
No required parameters. Optional filters: protocol, chain.
**Returns:** Aggregate risk metrics including utilization buckets, health factor distribution, concentration warnings, and recent liquidation activity.
### get\_protocol\_stats
High-level protocol statistics including TVL, total supply/borrow, market count, and average utilization.
No required parameters. Optional filter: protocol.
**Returns:** Protocol-level aggregates for TVL, supply, borrow, market count, and utilization.
### get\_liquidation\_feed
Recent liquidation events with borrower details, seized and repaid amounts, bad debt, and market context.
| Parameter | Type | Description |
| --------- | --------------- | ----------------------------------- |
| since | ISO date string | Only include events after this date |
| borrower | string | Filter by borrower address |
**Returns:** List of liquidation events with timestamp, borrower, seized/repaid amounts, bad debt flag, and market identifier.
### get\_health\_status
API health check showing circuit breaker states, cache status, and last successful fetch timestamps.
No parameters.
**Returns:** System health including data source connectivity, cache freshness, and circuit breaker states.
# Credit Ratings
Source: https://docs.rosetta.sh/circular/credit-ratings
AAA-D credit ratings for DeFi lending markets and vaults
## Overview
Circular includes a multi-dimensional credit rating system that assigns letter grades to individual lending markets and managed vaults. Ratings provide a familiar scale for assessing risk at a glance, similar to traditional fixed-income credit ratings. Each rating is computed from multiple independent risk dimensions, then combined into a single composite grade.
## Grade Scale
| Grade | Meaning |
| ----- | -------------------------------- |
| AAA | Highest quality, minimal risk |
| AA | Very high quality, very low risk |
| A | High quality, low risk |
| BBB | Good quality, moderate risk |
| BB | Speculative, elevated risk |
| B | Highly speculative, high risk |
| CCC | Substantial risk |
| CC | Very high risk |
| C | Near default |
| D | Default or non-functional |
Grades can carry +/- modifiers (e.g., AA+, BBB-) for finer differentiation within each band.
## Scoring Dimensions
Ratings are computed across four independent dimensions, each capturing a different aspect of risk.
| Dimension | What It Measures |
| ------------------ | -------------------------------------------------------------------------- |
| Market Risk | Utilization stability, APY volatility, liquidity depth, TVL trends |
| Collateral Quality | Token liquidity and maturity, price volatility characteristics, depeg risk |
| Oracle Reliability | Price feed provider reputation, data freshness, feed redundancy |
| Concentration Risk | Depositor distribution, single-entity exposure, withdrawal impact |
**Market Risk** evaluates how stable and predictable a market's behavior is over time. Markets with volatile utilization, erratic APY, or shallow liquidity are scored lower.
**Collateral Quality** assesses the underlying collateral token's maturity, trading liquidity, and historical price stability. Established tokens with deep on-chain liquidity score higher than newer or thinly-traded assets.
**Oracle Reliability** measures the trustworthiness of the price feeds that a market depends on. Markets using well-known oracle providers with fresh, redundant data feeds receive higher scores. Stale or single-source oracles are penalized.
**Concentration Risk** examines how depositor capital is distributed within a market. Markets dominated by a small number of large depositors are more vulnerable to sudden withdrawal shocks and score lower.
## Token Tiers
Collateral tokens are classified into tiers based on market maturity and liquidity depth. This classification feeds into the Collateral Quality dimension.
| Tier | Examples |
| ----------- | -------------------------------------- |
| Blue-chip | ETH, WBTC, USDC, USDT, DAI |
| Established | wstETH, rETH, cbETH, sDAI |
| Mid-tier | weETH, USDe, FRAX, crvUSD |
| Emerging | Chain-native tokens, governance tokens |
## Vault Ratings
Vault ratings aggregate the ratings of underlying markets, weighted by the vault's capital allocation to each market. Vaults with concentrated allocations or significant leverage exposure receive penalties. This means a vault allocated to a single high-rated market may score lower than one diversified across several markets of comparable quality.
## Tools
| Tool | Description |
| ------------------------ | -------------------------------------------------------------------- |
| `get_market_rating` | Credit rating for a specific lending market with dimension breakdown |
| `list_by_rating` | Browse and filter markets by credit rating |
| `get_rating_methodology` | Reference documentation for the rating framework |
| `get_vault_rating` | Credit rating for a Morpho vault with underlying market breakdown |
| `list_vaults_by_rating` | Browse and filter vaults by credit rating |
# Institutional Tools
Source: https://docs.rosetta.sh/circular/institutional
Concentration analysis, stress testing, whale intelligence, and compliance reporting
## Overview
12 tools for institutional-grade risk analysis including concentration monitoring, stress testing, whale tracking, and compliance reporting.
## Concentration Analysis
### analyze\_concentration
HHI analysis and whale detection for a market or vault. Returns concentration risk tier and diversification score.
| Parameter | Type | Description |
| ------------ | ------ | ------------------------------------------ |
| marketId | string | Market to analyze |
| vaultAddress | string | Vault to analyze (alternative to marketId) |
**Returns:** HHI score, concentration risk tier, top depositors with share percentages, and diversification score.
### get\_vault\_concentration
Dedicated concentration analysis for a specific vault with top depositors, risk tier, and diversification score.
| Parameter | Type | Description |
| ------------ | ----------------- | ------------- |
| vaultAddress | string (required) | Vault address |
**Returns:** Top depositors, HHI, concentration risk tier, and diversification assessment.
### get\_asset\_concentration
Asset group concentration analysis across the protocol. Classifies collateral into groups (ETH, BTC, Stablecoins, etc.) and flags concentration when any group exceeds thresholds.
No required parameters. Optional filters: protocol, chain.
**Returns:** TVL per asset group, HHI across groups, and concentration warnings.
## Stress Testing
### simulate\_depeg
Model the impact of a collateral depeg event. Estimates liquidations, bad debt, per-market health factor impact, and cascading effects. Supports single-token or asset-group simulation.
| Parameter | Type | Description |
| ---------- | ----------------------------------- | ---------------------------------------------- |
| collateral | string | Token symbol to depeg (use this OR assetGroup) |
| assetGroup | `ETH`, `BTC`, `Stablecoins`, `HYPE` | Asset group to depeg simultaneously |
| depegPct | number (required, 0-1) | Depeg severity (0.1 = 10% price drop) |
**Returns:** Estimated liquidation volume, bad debt, affected markets with per-market health factor changes, and cascade risk assessment.
### analyze\_exposure
Collateral exposure analysis across vaults. Shows total protocol exposure to a specific token and simulates depeg impact.
| Parameter | Type | Description |
| ---------- | ----------------- | ----------------------- |
| collateral | string (required) | Token symbol to analyze |
**Returns:** Total exposure in USD, affected vaults and markets, and estimated impact of various depeg scenarios.
### get\_liquidation\_risk\_map
Map positions by proximity to liquidation. Identifies clusters that would cascade if prices move.
| Parameter | Type | Description |
| ------------ | ------------ | --------------------------------- |
| marketId | string | Filter to specific market |
| priceDropPct | number (0-1) | Simulate a price drop (0.1 = 10%) |
**Returns:** Position clusters grouped by liquidation proximity, cascade risk assessment, and total value at risk per price level.
## Whale Intelligence
### monitor\_whale\_activity
Track large position changes including new deposits, withdrawals, and leverage adjustments above a size threshold.
| Parameter | Type | Description |
| --------- | --------------- | ------------------------------------------- |
| minUsd | number | Minimum position size in USD (default \$1M) |
| since | ISO date string | Only activity after this date |
**Returns:** Recent whale movements with wallet address, action type, amount, market, and timestamp.
### get\_top\_wallets
Top wallets by total value across protocols. Ranked by size with per-wallet risk flags, average health factor, and leverage.
| Parameter | Type | Description |
| --------- | ------ | ------------------------------------ |
| minUsd | number | Minimum total value (default \$100K) |
**Returns:** Ranked wallets with total value, position count, average health factor, average leverage, and risk flags.
## Compliance and Reporting
### generate\_risk\_report
Comprehensive risk report for a wallet, market, or protocol. Suitable for institutional compliance review.
| Parameter | Type | Description |
| ---------- | ----------------------------------------- | ------------------------------------ |
| type | `wallet`, `market`, `protocol` (required) | Report subject type |
| identifier | string (required) | Address, market ID, or protocol name |
| format | `summary`, `detailed` | Output verbosity |
**Returns:** Structured risk report with executive summary, detailed metrics, risk factors, and recommendations.
### get\_risk\_adjusted\_yields
Rank all markets by Sharpe-proxy risk-adjusted yield with volatility metrics and stability scores.
No required parameters. Optional filters: protocol, chain.
**Returns:** Markets ranked by risk-adjusted yield with APY, volatility, stability score, and Sharpe proxy.
### analyze\_protocol\_health
Cross-protocol health comparison covering bad debt ratios, insurance fund adequacy, governance risk, and oracle reliability.
No required parameters.
**Returns:** Per-protocol health assessment with bad debt ratio, insurance coverage, governance risk indicators, and oracle reliability scores.
### get\_positions\_at\_risk
Fetch positions near the liquidation threshold across all markets. Returns positions ordered by health factor, lowest first.
No required parameters. Optional filters: protocol, chain.
**Returns:** Positions sorted by health factor (most at-risk first) with wallet, market, health factor, collateral value, and debt value.
# Circular: Risk Intelligence
Source: https://docs.rosetta.sh/circular/overview
DeFi risk intelligence for lending markets across Morpho and Aave
## What is Circular
Circular is Rosetta's risk intelligence layer. It provides real-time visibility into lending market risks across Morpho and Aave, transforming on-chain data into actionable risk intelligence. It monitors markets, vaults, and positions continuously.
## Capabilities
Circular exposes 39 tools organized into five categories.
| Category | Tools | Purpose |
| -------------- | ----- | ---------------------------------------------------------------------- |
| Core Data | 10 | Real-time market, vault, wallet, and protocol metrics |
| Analytics | 9 | Trend analysis, market comparison, yield ranking, position simulation |
| Institutional | 12 | Concentration analysis, stress testing, whale intelligence, compliance |
| Research | 3 | Composite advisors combining multiple analyses into reports |
| Credit Ratings | 5 | AAA-D credit ratings for markets and vaults |
## How It Works
Circular collects data from lending protocols (Morpho Blue, Aave V3), normalizes it into a unified data model, applies risk models and scoring, and surfaces insights through multiple interfaces.
All data is derived from on-chain state. Risk scores, credit ratings, and alerts are computed deterministically from observable protocol data.
## Access
Circular is available through:
* **Dashboard** at [app.rosetta.sh](https://app.rosetta.sh/)
* **AI assistant integration** via MCP protocol for Claude Desktop and Claude Code
* **Programmatic access** for automated workflows and integrations
## Supported Protocols
| Protocol | Coverage | Chains |
| ----------- | ------------------------ | -------------- |
| Morpho Blue | Full | Ethereum, Base |
| Aave V3 | Markets and lending data | Ethereum, Base |
# Research Tools
Source: https://docs.rosetta.sh/circular/research
Composite analysis tools that synthesize multiple data sources into comprehensive reports
## Overview
Research tools combine multiple underlying analyses into a single comprehensive output. Instead of calling several individual tools, one research tool synthesizes market data, concentration analysis, stress testing, and risk scoring into an actionable report.
## Market Research
### research\_market
Deep research on a single market. Combines market metrics, concentration analysis, comparable markets, yield decomposition, leverage scenarios, and risk alerts into one comprehensive view. Use this instead of calling multiple tools separately when investigating a specific market.
**What it synthesizes:**
* Full market metrics and risk assessment
* Depositor concentration and whale detection
* Comparable markets for benchmarking
* Yield decomposition: base rate vs reward incentives vs risk premium
* Leverage scenarios at 1x, 2x, and 3x
* Active risk alerts and flags
| Parameter | Type | Description |
| --------- | ----------------- | --------------------------- |
| marketId | string (required) | Market unique identifier |
| chainId | number | Chain ID for disambiguation |
**Returns:** Comprehensive market report covering all dimensions above, with risk-adjusted yield analysis and position sizing guidance.
## Capital Deployment
### research\_deployment
Capital deployment advisor. Given an amount and risk tolerance, recommends a portfolio of lending positions with position sizing, simulated returns, blended risk scores, and alternatives that were considered but filtered out.
**What it synthesizes:**
* Market scanning across all available opportunities
* Risk-adjusted yield ranking
* Position sizing relative to market depth
* Return simulation per position
* Blended portfolio risk score
* Filtered alternatives with rejection reasons
| Parameter | Type | Description |
| ------------- | ---------------------------------------- | ------------------------------------------------------------ |
| amountUsd | number (required) | Amount to deploy in USD |
| riskTolerance | `conservative`, `moderate`, `aggressive` | Risk appetite (default: moderate) |
| strategy | string | Restrict to a strategy type (e.g., `lst-delta`, `recursive`) |
| maxPositions | number (1-20) | Maximum positions in portfolio (default: 5) |
| chainIds | number\[] | Filter by chain IDs (e.g., \[1, 8453]) |
**Returns:** Recommended portfolio with per-position sizing, expected APY, risk score, and monthly income estimate. Includes filtered-out alternatives with reasons.
## Risk Assessment
### research\_risk\_assessment
Holistic risk assessment for a market, vault, or wallet. Synthesizes concentration, exposure, liquidation proximity, depeg scenarios, and produces actionable recommendations. Use as a one-stop risk check before entering or monitoring a position.
**What it synthesizes:**
* Concentration and diversification analysis
* Collateral exposure mapping
* Liquidation proximity assessment
* Depeg scenario simulation (if requested)
* Actionable risk recommendations
| Parameter | Type | Description |
| ------------- | -------------------------------------- | --------------------------------------------- |
| target | string (required) | Market ID, vault address, or wallet address |
| targetType | `market`, `vault`, `wallet` (required) | Type of target to assess |
| depegScenario | number (0-1) | Simulate a depeg event (0.1 = 10% price drop) |
**Returns:** Risk assessment report with risk tier, key risk factors, quantified exposure, and specific recommendations for risk mitigation.
# Risk Scoring
Source: https://docs.rosetta.sh/circular/risk-scoring
Deterministic risk scoring model and strategy classification
## Risk Score
Every lending market receives a deterministic risk score from 0 to 100. The score is computed from observable on-chain metrics and protocol characteristics. Same inputs always produce the same score. Lower scores indicate lower risk; higher scores indicate higher risk.
## Factors
The risk score incorporates multiple factors, each capturing a different dimension of market risk.
| Factor | What It Captures |
| ----------------- | -------------------------------------------------------------------------------------------- |
| Protocol maturity | Track record and battle-testing of the lending protocol |
| TVL depth | Market size and available liquidity |
| Utilization | Ratio of borrowed to supplied assets — higher utilization means less exit liquidity |
| Concentration | How concentrated deposits are among a small number of wallets |
| Collateral type | Inherent risk characteristics of the collateral asset (volatility, liquidity, depeg history) |
| Chain risk | Security and maturity of the underlying blockchain |
These factors are combined into a single composite score. The relative importance of each factor is calibrated to reflect real-world risk dynamics.
## Utilization Regimes
Utilization is the single most important real-time risk indicator. Markets behave differently at different utilization levels.
| Regime | Utilization | Implication |
| --------- | ----------- | ------------------------------------------------------------------------------------- |
| Healthy | Below 70% | Normal operation. Interest rates follow predictable models. Ample exit liquidity. |
| Elevated | 70% – 85% | Rates climbing. Borrow demand is strong. Exit liquidity thinning. |
| Critical | 85% – 93% | Withdrawal risk increasing. Rate spikes likely. Suppliers should monitor closely. |
| Emergency | Above 93% | Withdrawals may fail or be delayed. Severe rate spikes. Protocol intervention likely. |
## Strategy Classification
Circular classifies lending markets by their yield strategy. Each strategy carries a distinct risk profile.
| Strategy | Description | Risk Profile |
| ------------ | ------------------------------------------------------------------- | -------------------------------------------------------------------- |
| stable-yield | Standard lending of stablecoins (USDC, USDT, DAI) | Lowest risk. Returns driven by borrow demand. |
| lst-delta | Lending against liquid staking tokens (wstETH, rETH, cbETH) | Low-moderate. Risk comes from LST depeg scenarios. |
| recursive | Looped leverage strategies where collateral and loan are correlated | Moderate-high. Leverage amplifies both returns and liquidation risk. |
| governance | Lending against governance or utility tokens | Higher risk. Collateral volatility is significant. |
## Relationship to Credit Ratings
Risk scores are one input to the broader credit rating system. Specifically, they feed into the Market Risk dimension of Circular's AAA-D credit ratings. Credit ratings additionally incorporate collateral quality, oracle reliability, and concentration risk for a more complete assessment. See the [Credit Ratings](/circular/credit-ratings) page for details.
# Data & Dashboards
Source: https://docs.rosetta.sh/data-dashboards
Explore Rosetta's on-chain data and analytics through our Dune dashboard.
**[Dune Dashboard →](https://dune.com/rosetta/rosetta)**
# Fees
Source: https://docs.rosetta.sh/fees
Rosetta uses a simple, transparent fee model. Fees apply consistently across all supported chains.
### Routing Fee
Rosetta charges 0.0001% on routed volume.
No fees on:
* Deposits
* Withdrawals
* Holding positions
### Curator Management Fees
Some vault curators charge management fees on yield generated. These fees are deducted at the vault level before APY is reported.
Curator fees are separate from Rosetta's routing fee. The APY displayed in Rosetta already accounts for curator fees — what you see is what you earn.
### Gas Costs
Rosetta sponsors all gas costs. Users pay nothing for:
* Deposits
* Withdrawals
* Rebalancing
The APY displayed is the APY earned.
# Smart Contracts & Security
Source: https://docs.rosetta.sh/smart-contracts-and-security
## **Contract Address**
| Address |
| -------------------------------------------- |
| `0xAf49B5164832Dfd3501fB8B56c9EcD1e548D730E` |
## **Security and Audits**
Rosetta’s smart contracts undergo continuous review through [**https://octane.security**](https://octane.security/), our primary audit partner.
### **Latest Audit Report**
[View the security assessment (PDF)](https://drive.google.com/file/d/199_4skqPNSf2f8_JI9u8fa5sEAYNZ4Tx/view)
# Terminal
Source: https://docs.rosetta.sh/terminal
Aggregated yield dashboard across DeFi protocols
## Terminal
The Terminal is an aggregated yield dashboard that displays lending and vault opportunities across multiple DeFi protocols, beyond what the Yield Router directly supports.
### Dashboard
The Dashboard tab shows HLP vault listings with current APRs, giving an overview of yield-generating opportunities across the Hyperliquid ecosystem.
### Yields
The Yields tab aggregates yield opportunities across protocols and categories:
| Category | Description |
| -------- | ----------------------------------- |
| Lending | Supply rates from lending protocols |
| Vaults | Managed vault yields |
| Options | Options-based yield strategies |
| HLP | Hyperliquid LP vault returns |
### Supported Protocols
The Terminal pulls data from:
* Aave
* Compound
* Morpho
* Spark
* HyperLend
* HypurrFi
* Rysk
### Filtering
Use TVL filtering to focus on opportunities above minimum liquidity thresholds. This helps filter out low-liquidity positions that may not support meaningful deposits.
The Terminal is accessible from the main navigation at [app.rosetta.sh](https://app.rosetta.sh/).
# Terms of Service
Source: https://docs.rosetta.sh/terms
# Terms of Service
**Terms of Service**\
Last Updated: 27/11/2025\
Legal Entity: Parabol Labs Ltd., United Kingdom
## Introduction
These Terms of Service ("Terms") govern your access to and use of Rosetta, a non-custodial yield routing platform operating on Hyperliquid (HyperCore × HyperEVM) ("Rosetta", "we", "us", "our"). By connecting your wallet or interacting with Rosetta in any way, you acknowledge that you have read, understood, and agreed to be bound by these Terms of Service.
If you do not agree to these Terms, you must not use Rosetta.
## Nature of the Service (Technical Infrastructure Only)
Rosetta is software infrastructure, not a financial product or service which:
* Deploys and interacts with on-chain smart contracts that you authorize.
* Generates a user-owned sub-account linked to your EOA.
* Routes assets only between vaults you select.
* Executes rule-based, policy-driven instructions that you configure.
* Evaluates vault and market data to enable automated execution under your policies.
* Never holds, takes custody of, or exercises unilateral control over user assets.
* Never initiates transactions without your on-chain authorization.
* Does not issue tokens or perform portfolio management.
You acknowledge that Rosetta is middleware, not a custodian, broker, asset manager, exchange, adviser, or fiduciary.
All actions are executed from your sub-wallet (sub-account), under policies you authorize.
## User-Owned Sub-Accounts
When you authorize the creation of a sub-account:
### Ownership
The sub-account is entirely owned and controlled by you.
* Rosetta cannot export, access, or retrieve your private keys.
* Rosetta cannot withdraw, redirect, or repurpose your assets.
* All funds in the sub-account remain non-custodial at all times.
### Withdrawals
Withdrawals always:
* Retrieve funds from underlying vault allocations you selected
* Return them only to your EOA
### Execution Authority
By using Rosetta:
* You authorize Rosetta to execute policy-based transactions from your sub-account.
* Rosetta may move funds only between vaults you have selected.
* Rosetta cannot transfer your assets to any arbitrary or unauthorized address.
* Your private keys remain solely your responsibility.
## Eligibility & Access
To use Rosetta, you confirm that:
* You are legally permitted to interact with decentralized smart-contract systems in your jurisdiction.
* You are not a prohibited, sanctioned, or restricted person under applicable laws.
* You use Rosetta only for lawful purposes.
Rosetta may restrict or block access to comply with legal obligations.
## User Responsibilities
You agree to:
* Use Rosetta only as permitted by these Terms.
* Maintain control and security of your wallet private keys
* Ensure you have sufficient asset balances before initiating deposits
* Avoid exploiting, reverse-engineering, or interfering with Rosetta systems
* Understand that all on-chain activity is final and irreversible.
* Select the vaults or protocols you want Rosetta to route between.
* Not interfere with, exploit, reverse-engineer, attack, or abuse the Service or its smart contracts.
All transactions originating from your wallet or sub-account are deemed authorized by you.
## Deposits, Withdrawals, and Allocation Logic
### Deposits
Depositing means:
* Transferring supported assets (e.g HyperEVM-native tokens)
* From your EOA
* Into your sub-account
This deposit is not a transfer to Rosetta. Rosetta never holds user assets.
### Allocation
Once funds are in your sub-account:
* Your authorized policies determine when and how funds move.
* Movements occur only within vaults you have selected.
* Rebalancing is policy-based and non-custodial.
* All movements are executed through smart-contract logic you have authorized
### Withdrawals
At your request:
* Funds are retrieved directly from underlying vaults
* Returned only to your EOA
Smart contract rules may require waiting periods or settlement steps depending on vault logic
## No Financial, Investment, or Legal Advice
Rosetta provides automation and technical execution tools only.
Nothing displayed by Rosetta—including APYs, block-level metrics, performance charts, routing options, vault data, or configuration tools—constitutes:
* Investment or financial advice
* A recommendation
* A fiduciary duty
* Portfolio management
* An assessment of suitability or appropriateness
* Legal or tax advice
Rosetta does not guarantee yields, returns, or performance. You make all decisions independently.
## Non-Custodial Model; No Control Over Assets
Rosetta does not:
* Hold or store user assets
* Possess private keys
* Execute withdrawals
* Transfer assets to unapproved destinations
* Act with discretionary or unilateral authority
* Guarantee performance, APY, or outcomes
All actions occur on-chain through contracts you authorize. Some jurisdictions may interpret policy-based execution as limited operational control. You acknowledge and accept this risk.
## Fees
Rosetta charges fees based on internal routing and execution policies.
* Fees are taken automatically through on-chain execution
* Fees may apply to transactions or operations performed on your sub-account
* The exact fee model may evolve based on system design
* All fees are transparently enforced by smart contract logic
## Third-Party Protocols & Risks
Rosetta integrates with independent third-party vaults and protocols.
Parabol Labs Ltd. does not control or guarantee:
* Vault performance
* Smart contract security
* Collateral models
* Pricing data or APY
* HyperEVM chain stability
* Execution or liquidity behavior
* Oracle behavior
* Market conditions
By using Rosetta, you accept risks inherent to on-chain systems, including:
* Smart contract vulnerabilities
* Market volatility
* Execution delays
* Liquidity constraints
* Underlying protocol failures
* Network congestion
* Oracle failures
* Data propagation issues
* Blockchain outages
Your interactions with third-party protocols are entirely at your own risk.
## Disclaimer of Warranties
Rosetta is provided "as-is" and "as-available", without warranties of any kind, including:
* Uninterrupted availability
* Accurate or up-to-date data
* Error-free execution
* Exploit-free smart contracts
* On-chain or off-chain performance
* Future yields or results
You use Rosetta entirely at your own risk.
## Limitation of Liability
To the maximum extent permitted by law:
Parabol Labs Ltd. is not liable for any direct, indirect, incidental, special, punitive, or consequential losses, including:
* Loss of digital assets
* Loss of yield, opportunity, or performance
* Rebalancing delays or failures
* Smart contract vulnerabilities
* Protocol failures
* Network congestion
* Blockchain outages
* Data inaccuracies
* Wallet compromise
* Actions taken based on displayed metrics
## Indemnification
You agree to indemnify and hold harmless Parabol Labs Ltd. from all claims, liabilities, damages, losses, or expenses arising from:
* Your use or misuse of Rosetta
* Actions executed from your wallet or sub-account
* Breach of these Terms
* Violations of applicable laws
* Interactions with third-party protocols
* Unauthorized access resulting from compromised private keys
## Data & Privacy
Rosetta may process limited technical data (e.g., logs, device information, wallet address, IP metadata) necessary to operate the Service. Parabol Labs Ltd. does not store private keys or sensitive financial data. Use of Rosetta constitutes acceptance of the Rosetta Privacy Policy, which explains data collection and GDPR rights.
## Modifications & Termination
Parabol Labs Ltd. may modify, suspend, or discontinue any aspect of Rosetta at any time. Material changes will be posted on the website or interface. Continued use after changes constitutes acceptance of updated Terms. You may stop using Rosetta at any time; your on-chain assets remain fully under your control.
## Governing Law & Jurisdiction
These Terms are governed by the laws of England & Wales. The courts of London have exclusive jurisdiction over disputes arising from or relating to these Terms.
## Entire Agreement
These Terms constitute the entire agreement between you and Parabol Labs Ltd. regarding your use of Rosetta.
Parabol Labs Ltd.\
United Kingdom\
Email: [hi@parabol.fi](mailto:hi@parabol.fi)
***