Logo
Learn
  • Explore Course
Build
  • Explore Buildathon
  • Project Archive
Hack
Hack Coming Soon
  • Explore IRL Hackhouse
  • How to Qualify
  • Past Events

RWA.Index

Autonomous AI-managed tokenized-stock index fund on Robinhood Chain. ERC-4626 vault with an LLM portfolio manager bounded by on-chain guardrails.

Videos

Description

RWA Index is an autonomous AI-managed tokenized-stock index fund built on Robinhood Chain.

THE PROBLEM

Tokenized stocks are arriving on-chain — Robinhood Chain ships TSLA, AMZN, PLTR, NFLX and AMD as ERC-20s. What is missing is the fund-grade infrastructure to package those tokens into investable products with managed strategies: index ETFs, factor portfolios, robo-advisor exposure. The product slot at the intersection of BlackRock (the index-ETF leader) and Robinhood (the consumer brokerage shipping tokenized equities) is empty today.

THE BUILD

A singleton ERC-4626 vault holds a five-name basket of RH tokenized stocks. A strategy mandate (target weights + cash target) is set on-chain by the manager. An autonomous LLM agent monitors drift and rebalances toward the mandate. Every rebalance proposal is simulated against the vault before execution — bad proposals revert in the simulation layer, never on-chain.

THE INNOVATION

The agent's authority is bounded by the vault contract itself, not by trust in the model. Each trade is checked against on-chain guardrails: per-trade size cap (10% of NAV), slippage floor (2%), drift-improvement requirement, cash floor, oracle staleness, pause flag. Any failure reverts. The vault is the safety boundary; the LLM is just the optimizer inside it. Crucially, the agent operates under time-boxed sessions opened by the manager — so even if the agent's private key leaks, the worst-case blast radius is one hour.

WHY THIS FITS THE HACKATHON

The product sits at the partner-list intersection: BlackRock-grade index-fund mechanics + Robinhood-style tokenized stocks, on the chain Robinhood is shipping. Targets the Best Agentic track (the agent is a genuine tool-using LLM with simulate-before-execute, not a script with a model bolted on) and the Robinhood Chain reserved spot in the Overall track.

Progress During Hackathon

<p>Built end-to-end during the hackathon, fully working on Robinhood Chain testnet:</p><p>SMART CONTRACTS (Solidity, Foundry)</p><p>• IndexVault — ERC-4626 vault with target-weight rebalancing, drift accounting, cashTarget invariant, time-boxed agent sessions, full guardrails ladder (per-trade fraction, slippage, drift improvement, NAV-floor, oracle staleness, pause), and event auditing.</p><p>• AgentOracle — push-style price feed with role-gated writes, designed to swap in Chainlink/Pyth on mainnet without contract changes.</p><p>• Synthra adapter + mock fallback — DEX integration on real Synthra V3 pools.</p><p>• PoolPriceSyncer — testnet bootstrap utility (disappears on mainnet where arbitrage closes the gap).</p><p>AI AGENT (TypeScript, viem, OpenRouter)</p><p>• LLM tool-use loop: get_portfolio → get_market_prices → propose_rebalance → execute_rebalance, with the proposal step running our own static-call simulation against the vault and returning {ok, revertReason} so the model iterates.</p><p>• Provider-agnostic (default google/gemini-3-flash-preview via OpenRouter; works with Claude or any other vendor on the same key).</p><p>• Per-cycle audit log in JSONL; classifies decisions (executed / rehearsed / blocked / hold).</p><p>DASHBOARD (Next.js 14, wagmi 2, viem 2, Tailwind 3)</p><p>• Six modules: Strategy &amp; Mandate, Agent Cockpit (run + autopilot + session), NAV &amp; Drift History (Recharts), Guardrails, Deposit/Withdraw (ERC-4626 deposit + redeem with live previews), Recent Transactions (via Blockscout logs).</p><p>• Left state-rail: NAV, Metrics (drift / threshold / cash), Your Position, Allocation donut, Holdings, Oracle freshness.</p><p>• Header pills with live vault status + agent countdown; manager-aware UI (non-manager wallets see strategy/pause/session controls as read-only with explicit hints).</p><p>• Hard chain-guard: every write awaits switchChain to RH testnet first, so a wallet stuck on a wrong network can't accidentally burn real gas.</p><p>INFRASTRUCTURE</p><p>• Live deployment on Robinhood Chain testnet (chainId 46630), addresses canonical in deployments/rh-testnet.json.</p><p>• 33 agent tests + 35 dashboard tests + Foundry contract tests, all green.</p><p>• Block-pinned RPC reads, JSON-RPC batching, content-equality polling guards — the dashboard reads cleanly off a non-archival RPC without flicker.</p>

Tech Stack

ReactNextWeb3SolidityNodeTypeScriptviemFoundry

Fundraising Status

<p>Hackathon project — not fundraising. Future development would target seed-stage funding aligned with Robinhood Chain's mainnet rollout of native tokenized equities.</p>

Team Leader
YYehor Ivashchenko
GitHub Link
github

GitHub

https://github.com/RaYYeR220/rwa-index
Product Category
RWADeFiAI