hackquest logo

ATLAS

ATLAS is a decentralized protocol for creating and trading tokenized stock index funds on Robinhood Chain Think of it as on-chain ETFs anyone can bundle tokenized stocks (TSLA, AMZN, NFLX, AMD, PLTR) into a custom index fund, deploy it as an ERC-20 token, and earn fees when others buy it. Key Features: Create Index Funds — Bundle 2-5 tokenized stocks with custom weights, deploy as ERC-20 token on-chain Buy & Sell via AtlasVault — One-click purchasing through the liquidity vault, no need to acquire each stock individually AI Trading Terminal — Natural language interface powered by AI + real-time web search Liquidity Providers — Deposit stocks into the vault, earn 50% of all index fees Fully On-Chain — Every transaction is a real smart contract call on Robinhood Chain testnet

视频

技术栈

React
Node
Web3
etherjs
solidity
LLM

描述

INTRODUCING ATLAS

Is a decentralized protocol for creating and trading tokenized stock index funds on Robinhood Chain

Think of it as on-chain ETFs anyone can bundle tokenized stocks (TSLA, AMZN, NFLX, AMD, PLTR) into a custom index fund, deploy it as an ERC-20 token, and earn fees when others buy it.

Key Features:

Create Index Funds — Bundle 2-5 tokenized stocks with custom weights, deploy as ERC-20 token on-chain

Buy & Sell via AtlasVault — One-click purchasing through the liquidity vault, no need to acquire each stock individually

AI Trading Terminal — Natural language interface powered by AI + real-time web search

Liquidity Providers — Deposit stocks into the vault, earn 50% of all index fees

Fully On-Chain — Every transaction is a real smart contract call on Robinhood Chain testnet

The Three Roles

Role What They Do How They Earn

Index Creator Creates a custom index fund (e.g., "Tech Titans" = 40% TSLA + 30% AMZN + 30% NFLX) Earns 50% of the fee on every buy

Liquidity Provider (LP) Deposits stock tokens into the AtlasVault Earns 50% of the fee on every buy

Buyer Purchases index tokens to get diversified exposure Gets exposure to multiple stocks with one token

CREATE INDEX Select stocks + weights + fee → deploy ERC-20

OVIDE LP Deposit stocks into AtlasVault

BUY INDEX One-click purchase via AtlasVault

EARN FEES 50% creator / 50% LPs — automatic on-chain

SELL / REDEEM Burn index token → receive underlying stocks

---------------------------------------------------------------------------------

AI Trading Terminal

The ATLAS Terminal is a natural language trading interface powered by AI.

Instead of navigating forms and dropdowns, users type what they want in plain language and the AI agent translates intent into on-chain transactions.

-------------------------------------------------------------------------------------------

How It Works

User Input → AI trading Agent→ Structured JSON → Confirmation UI → On-Chain Transaction

Capabilities

Command (Natural Language) Action On-Chain?

"buy 2 ATLAS" Purchases 2 ATLAS index tokens via AtlasVault Yes

"sell 1 ATLAS" Redeems 1 ATLAS, receives underlying stocks Yes

"send 5 TSLA to 0x..." Transfers 5 TSLA tokens to specified address Yes

"create an index with TSLA and AMZN" Guides through index creation flow Yes

"show my portfolio" Displays wallet balances for all tokens Read-only

"what's the price of TSLA?" Shows live price from Yahoo Finance Read-only

"latest news about Arbitrum" Real-time web search via Tavily API Off-chain

-------------------------------------------------------------------------------------------

AI Agent Architecture

The AI agent uses a dynamic system prompt that is regenerated on every request. This ensures the agent always has current data:

Dynamic Context

❯Current stock prices (live)

❯All deployed indices + supply

❯User wallet balances

❯Available vs unavailable stocks

Response Pipeline

❯GPT-4o-mini generates JSON

❯Regex fallback parser for edge cases

❯buildConfirmation() maps to UI

❯handleConfirm() executes on-chain

Multilingual Support

The terminal detects the user's language and responds accordingly. The regex fallback parser handles both English and Spanish patterns:

English: "buy 2 ATLAS" → action: buy, ticker: ATLAS, qty: 2

Spanish: "compra 2 ATLAS" → action: buy, ticker: ATLAS, qty: 2

English: "sell 1 ATLAS" → action: sell, ticker: ATLAS, qty: 1

Spanish: "vende 1 ATLAS" → action: sell, ticker: ATLAS, qty: 1

Web Search Integration

The terminal has real-time web search.

When the user asks about news, events, or any topic, the system automatically:

1. Detects search intent (keywords: "news", "latest", "what is", "who", etc.)

2. Calls Tavily API with the user's query

3. Injects search results into the system prompt

4. AI incorporates real data + URLs into the response

Wallet Integration

The terminal handles wallet connection seamlessly.

If a user tries to execute a trade without a connected wallet, the system automatically prompts MetaMask connection before proceeding with the transaction.

A "Connect Wallet" banner is displayed at the top of the terminal when no wallet is detected.

Try It

Open the Terminal and try: "buy 1 ATLAS", "show my portfolio", "latest news about tokenized stocks", or "create an index with TSLA and AMZN".

Buy & Sell Flow

Buy Flow (One Transaction)

When a user buys an index token, the entire process happens in a single transaction through the AtlasVault. The buyer only needs to call buyIndex() — the vault handles everything else automatically.

Buy Flow — buyIndex(indexToken, amount)

1

Buyer

Calls buyIndex() on the AtlasVault with the desired index token address and amount

2

AtlasVault

Approves each underlying stock token to the IndexToken contract (proportional to weights)

3

AtlasVault

Calls mint() on the IndexToken contract

4

IndexToken

Transfers proportional stocks from vault into the index (via transferFrom)

5

IndexToken

Calculates fee and splits it: 50% minted to creator, 50% minted to vault address

6

AtlasVault

Transfers the minted index tokens to the buyer's wallet

Result: Buyer receives index tokens, fully backed 1:1 by underlying stocks

Sell Flow (Redemption)

When a user sells (redeems) an index token, the process reverses. The user first approves the vault to spend their index tokens, then calls sellIndex(). The underlying stocks are returned to the vault, making them available for future buyers.

Sell Flow — sellIndex(indexToken, amount)

1

Seller

Approves the AtlasVault to spend their index tokens

2

Seller

Calls sellIndex() on the AtlasVault with index token address and amount

3

AtlasVault

Transfers index tokens from seller to vault (via transferFrom)

4

AtlasVault

Calls burn() on the IndexToken contract

5

IndexToken

Burns the index tokens and releases proportional underlying stocks back to the vault

Result: Stocks recycled back into vault liquidity pool for future index purchases

Key Properties

Atomic

The entire buy or sell operation completes in a single transaction. If any step fails, the whole operation reverts — no partial execution.

1:1 Backed

Every index token is always fully backed by the underlying stock tokens. There is no fractional reserve or synthetic exposure.

Recyclable Liquidity

When an index is sold, the underlying stocks return to the vault. This means vault liquidity is never permanently consumed — it circulates.

No Slippage

Index tokens are minted/burned at exact proportional weights. There is no AMM curve, no slippage, and no price impact.

Liquidity Providers

Liquidity Providers (LPs) are the backbone of the ATLAS protocol. They deposit tokenized stocks into the AtlasVault, enabling buyers to acquire indices in a single transaction. In return, LPs earn 50% of all index fees.

LP Lifecycle

1. DEPOSIT LP approves + deposits stock tokens into AtlasVault

deposit(TSLA_address, 10e18) → 10 TSLA into vault

2. EARN When anyone buys an index, fee is split:

50% → index creator (minted as index tokens)

50% → vault address (distributable to LPs)

3. WITHDRAW LP can withdraw deposited stocks anytime

withdraw(TSLA_address, 5e18) → 5 TSLA back to LP

-------------------------------------------------------------------------------------------

Why Provide Liquidity?

Passive Income

Earn 50% of all index trading fees automatically. No active management required.

Full Custody

Withdraw your deposited stocks at any time. No lock-up periods, no vesting schedules.

Protocol Growth

More liquidity = more indices can be created = more fees generated = more LP income.

Fee Model

Every index has a creator-defined fee (max 5%). This fee is charged on every mint (buy) and split on-chain:

Index Fee (e.g. 1%)

┌─────────┴─────────┐

│ │

50% Creator 50% Vault (LPs)

│ │

Index tokens Index tokens

minted to minted to

creator wallet vault address

Example: User buys 10 tokens of index with 1% fee

User receives: 9.90 index tokens

Creator receives: 0.05 index tokens (50% of 0.10 fee)

Vault receives: 0.05 index tokens (50% of 0.10 fee)

Fees are immutable — set once at index creation and cannot be changed.

This guarantees predictability for all participants.

The fee is implemented directly in the IndexToken's mint() function in Solidity.

Creating an Index

Anyone can create a custom stock index fund. The process deploys a real ERC-20 smart contract on Robinhood Chain.

Steps

01

Navigate to Create Index (VII) in the sidebar menu

02

Enter an index name (e.g. "Tech Titans") and ticker symbol (e.g. "TECH")

03

Select 2-5 tokenized stocks from the available options (TSLA, AMZN, NFLX, AMD, PLTR)

04

Weights are distributed equally by default. Set a creator fee (0-5%)

05

Click Deploy — MetaMask will prompt for transaction confirmation

06

Index deploys as an ERC-20 token. It appears immediately in the Indices section

Constraints

Stocks per index Minimum 2, maximum 5

Weights Must sum to 10,000 basis points (100%)

Fee Maximum 500 bps (5%)

Mutability Composition and fees are immutable after deployment

Available stocks TSLA, AMZN, NFLX, AMD, PLTR (RH Chain testnet)

What are tokenized stocks?

ERC-20 tokens on Robinhood Chain that represent real equities. On testnet, they are obtained from the official faucet (5 of each stock per 24 hours).

Is this real money?

No. ATLAS runs on Robinhood Chain testnet. All tokens are testnet tokens with no real monetary value. The protocol is a proof of concept for the Arbitrum Buildathon.

How does the AI terminal execute trades?

The AI agent parses your natural language into a structured JSON with an action type and parameters. The frontend shows a confirmation dialog, and upon approval, executes the corresponding smart contract function via ethers.js and MetaMask.

Can I create an index with any stocks?

Currently only 5 stocks are available on RH Chain testnet: TSLA, AMZN, NFLX, AMD, PLTR. As Robinhood adds more tokenized stocks, the protocol will support them automatically.

What happens when I sell an index token?

The AtlasVault burns your index token and returns the proportional underlying stocks back to the vault, making them available for future buyers. It is a full 1:1 redemption.

How are LP fees distributed?

When an index is minted, 50% of the fee (in index tokens) is sent to the vault address. This accumulates as vault holdings that benefit all LPs proportionally.

Can the index creator change fees after deployment?

No.

Fees and index onchain token are immutable hardcoded in the smart contract at deployment.

This protects investors from fee manipulation.

https://vercel-static-six-eosin.vercel.app/

队长
NNacho Teruel Diaz
项目链接
赛道
DeFiRWAAI