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



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.
Built end-to-end during the hackathon, fully working on Robinhood Chain testnet:
SMART CONTRACTS (Solidity, Foundry)
• 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.
• AgentOracle — push-style price feed with role-gated writes, designed to swap in Chainlink/Pyth on mainnet without contract changes.
• Synthra adapter + mock fallback — DEX integration on real Synthra V3 pools.
• PoolPriceSyncer — testnet bootstrap utility (disappears on mainnet where arbitrage closes the gap).
AI AGENT (TypeScript, viem, OpenRouter)
• 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.
• Provider-agnostic (default google/gemini-3-flash-preview via OpenRouter; works with Claude or any other vendor on the same key).
• Per-cycle audit log in JSONL; classifies decisions (executed / rehearsed / blocked / hold).
DASHBOARD (Next.js 14, wagmi 2, viem 2, Tailwind 3)
• Six modules: Strategy & Mandate, Agent Cockpit (run + autopilot + session), NAV & Drift History (Recharts), Guardrails, Deposit/Withdraw (ERC-4626 deposit + redeem with live previews), Recent Transactions (via Blockscout logs).
• Left state-rail: NAV, Metrics (drift / threshold / cash), Your Position, Allocation donut, Holdings, Oracle freshness.
• 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).
• 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.
INFRASTRUCTURE
• Live deployment on Robinhood Chain testnet (chainId 46630), addresses canonical in deployments/rh-testnet.json.
• 33 agent tests + 35 dashboard tests + Foundry contract tests, all green.
• Block-pinned RPC reads, JSON-RPC batching, content-equality polling guards — the dashboard reads cleanly off a non-archival RPC without flicker.
Hackathon project — not fundraising. Future development would target seed-stage funding aligned with Robinhood Chain's mainnet rollout of native tokenized equities.