Rosetta🗿

Block-by-block atomic and automated stablecoin yield farming with risk controls

  • 0 Raised
  • 954 Views
  • 0 Judges

Categories

  • 02. 🚀 Hyperliquid Frontier Track
  • 08. Best use of Privy

Description

🧠 Project Name

Rosetta

🔍 Description

Rosetta is a block-level yield router for Hyperliquid.

Rosetta Indexer computes per-block supply/borrow rates across HyperEVM and HyperCore markets (e.g., Felix, Hyperlend, HLP vaults) and routes stablecoins to the highest net (cost-adjusted) yield in real time.

Two core ideas:

1- Block-accurate rate signal instead of event snapshots,

2- A cost-aware allocator that only moves when expected gains exceed switching costs (gas, slippage, market impact).

Net result: higher realized APY with fewer churns and tighter risk controls.

🛠️ How It Works

  1. Data Plane (Signal)
  • Our indexers read HyperEVM state each block and reconstruct effective borrow/supply curves per market.
  • Normalize utilization → IRM → per-block accrual; stream to a time-series store for live and historical queries.
  • Outputs: supply_apy, borrow_apy, utilization, liquidity and total_deposits flags.
  1. Decision Plane (Allocator)
  • Computes expected net benefit of switching: ΔAPR × expected dwell time − (gas + slippage + exit penalties).
  • Cooldown windows prevent thrash; per-market caps/allowlists enforce risk policy.
  • Objective: maximize rolling, cost-adjusted APY subject to liquidity, risk limits, and user preferences.
  1. Execution Plane (Contracts + Router)
  • RosettaRouter on HyperEVM executes atomic withdraw→deposit across supported protocols in a single tx.
  • Guards: rate sanity checks, liquidity checks, circuit breaker, and emergency withdraw.

What’s interesting

  1. Block-accurate rates: eliminates “flat lines between events,” so we don’t misprice micro-drift.
  2. Cost-aware rebalancing: moves only when it pays after all-in costs.
  3. Proof-of-performance: on-chain route receipts align realized APY with decisions.
  4. Composable: any new HyperEVM market can be added via an adapter.

💻 Demo

  1. Loom
  2. Youtube

📂 Project Links

  1. GitHub
    1. SQD Indexer
    2. Interface
    3. Engine
  2. Docs
    1. Rosetta Interface
    2. Rosetta Indexer Overview
  3. Presentation
  4. Live demo URL

👥 Team

  1. Twitter
    1. https://twitter.com/rosetta_hl
    2. https://x.com/emrecolako
    3. https://x.com/mberkayermis
    4. https://x.com/yusufbenli_
  2. Telegram
    1. @emrecolako
    2. @berkayermis
    3. @yusufbenli

Attachments