A complete account of how the agent turns a standing order into a held position: the mathematics that sets the target, how trades execute, and every contract involved. Every method described here is implemented in the engine.
Metacentre is an asset manager agent for tokenized stocks on Robinhood Chain. A standing order written in plain English becomes a set of assets, a risk level, and any proportions stated explicitly. From that the agent computes target weights, measures them against what the wallet actually holds, and returns the orders that close the gap. Every step is verifiable on-chain.
Underneath the instruction sits a quantitative question: given a set of stocks, how much of each to hold. Mean-variance optimization answers it with the weights delivering the greatest expected return for a chosen level of risk, hardened with statistical safeguards for real-world use. Where that answer differs from the proportions requested, the agent blends the two and states the difference rather than silently overriding the instruction.
Metacentre is designed as a foundation for multiple on-chain strategies over tokenized equities:
For a portfolio of n stocks with weight vector w, expected return vector mu, and return covariance matrix Sigma, the portfolio's expected return and variance are:
Metacentre selects weights by solving the risk-adjusted objective, where the risk-aversion parameter lambda is set by the risk slider:
A high value of lambda penalizes variance heavily and produces a conservative, low-volatility mix; a low value favors expected return and produces an aggressive mix. Sweeping lambda traces the entire efficient frontier. The problem is solved by projected gradient ascent, projecting each iterate onto the constraint set using an exact simplex projection.
Expected returns are estimated from multi-year daily price history of the underlying equities. Raw historical means are noisy, and unconstrained optimization amplifies that noise into extreme, unstable weights, a failure mode known as error maximization. Metacentre counters it by shrinking each stock's estimated mean toward the cross-sectional average, in the spirit of the James-Stein estimator:
where mu_i is the sample mean for stock i, mu-bar is the average across all selected stocks, and the intensity delta lies in the interval from 0 to 1. This pulls unreliable individual estimates toward a stable common value, materially improving out-of-sample behavior.
Risk is captured by the covariance matrix of returns, which encodes both how volatile each stock is and how the stocks move together. The sample covariance is:
Sample covariance estimated from limited data is ill-conditioned and overstates spurious correlations. Metacentre applies shrinkage toward a diagonal target, damping the off-diagonal terms:
where D retains the diagonal of individual variances and the intensity alpha lies between 0 and 1. The result is a better-conditioned matrix that yields stable, sensible weights rather than ones driven by noise in the correlations.
The efficient frontier is the set of portfolios offering the highest expected return at each level of risk. Every point on it solves the objective above for a particular lambda. The risk level carried by the standing order selects a single point along it, and the target weights are that point's coordinates.
The position cap adapts to how many stocks are selected, so small baskets remain feasible while large ones stay diversified:
Purchases and sales route through the Uniswap v4 Universal Router on Robinhood Chain. Each leg is an exact-input swap carrying a minimum-output constraint, where s is the slippage tolerance:
This bounds price impact per leg; if a pool cannot honor the minimum, that leg reverts and no funds are spent on it. A basket is executed leg by leg, with stock tokens settling directly into the user's wallet. Because on-chain liquidity varies by stock, each leg is quoted against live pool state at build time.
Metacentre holds no user assets at any point. Funds move directly between the user's wallet and on-chain liquidity. Before a first trade the user grants two standard approvals: an ERC-20 approval of the input token to the Permit2 contract, and a Permit2 allowance to the Universal Router. Both authorizations are to audited public infrastructure, never to Metacentre. No Metacentre contract sits in the path of user funds.
Profit and loss is reconstructed entirely from on-chain data. Metacentre reads the wallet's historical swaps, identifying purchases (USDG out, stock in) and sales (stock out, USDG in), and applies average-cost accounting. For each stock, cost basis accumulates on purchases; a sale reduces the basis proportionally and books realized profit against the average unit cost:
Current value uses live realizable sell quotes, the amount a holding would return if sold now, rather than a mark price, so the figure reflects what the user could actually obtain. No user data is stored off-chain.
Metacentre builds on public infrastructure on Robinhood Chain (chain ID 4663). The tokenized stocks below are issued on-chain; Metacentre reads and trades them but does not issue them. Every address links to the chain explorer for independent verification.
| Symbol | Name | Token address |
|---|---|---|
| AAPL | Apple | 0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9 |
| AMD | Advanced Micro Devices | 0x86923f96303D656E4aa86D9d42D1e57ad2023fdC |
| AMZN | Amazon | 0x12f190a9F9d7D37a250758b26824B97CE941bF54 |
| GOOGL | Alphabet | 0x2e0847E8910a9732eB3fb1bb4b70a580ADAD4FE3 |
| META | Meta Platforms | 0xc0D6457C16Cc70d6790Dd43521C899C87ce02f35 |
| MSFT | Microsoft | 0xe93237C50D904957Cf27E7B1133b510C669c2e74 |
| MU | Micron Technology | 0xfF080c8ce2E5feadaCa0Da81314Ae59D232d4afD |
| NVDA | NVIDIA | 0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC |
| SNDK | SanDisk | 0xB90A19fF0Af67f7779afF50A882A9CfF42446400 |
| SPCX | SpaceX | 0x4a0E65A3EcceC6dBe60AE065F2e7bb85Fae35eEa |
| SPY | S&P 500 ETF | 0x117cc2133c37B721F49dE2A7a74833232B3B4C0C |
| TSLA | Tesla | 0x322F0929c4625eD5bAd873c95208D54E1c003b2d |
These are the on-chain contracts Metacentre calls directly when you build, buy, or sell a basket. Every trade settles through them; Metacentre adds no contract of its own between you and the market.
| Contract | Role | Address |
|---|---|---|
| USDG | Settlement stablecoin every basket is priced and funded in | 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 |
| Universal Router (v2.1.1) | Executes the swaps that acquire or unwind a basket, on your behalf | 0x8876789976decbfcbbbe364623c63652db8c0904 |
| V4 Quoter | Prices each leg before execution so allocations reflect live liquidity | 0x8dc178efb8111bb0973dd9d722ebeff267c98f94 |
| Permit2 | Authorizes the router to move your tokens, without granting custody | 0x000000000022D473030F116dDEE9F6B43aC78BA3 |
Metacentre does not call this directly, but every trade ultimately routes through it. It is the core of Uniswap v4 on Robinhood Chain, listed here for full transparency.
| Contract | Role | Address |
|---|---|---|
| Uniswap v4 PoolManager | Holds the pools and liquidity all baskets trade against | 0x8366a39cc670b4001a1121b8f6a443a643e40951 |
Metacentre-specific contracts, once introduced (the vault first), will be listed here with source references.
Managed allocation is live. Two layers follow it:
Tokenized stocks carry market risk. Expected-return figures are estimates derived from historical behavior and are not forecasts or guarantees of future performance. On-chain liquidity for some stocks may be limited or absent, which can affect the ability to buy or sell at a given size. Optimization improves the risk-return profile of a basket but does not eliminate the risk of loss. Users are solely responsible for their own transactions, wallet security, and custody of assets. Nothing here is investment advice.