Documentation
How ELYVX works
ELYVX packages leveraged, multi-asset exposure into a single structured asset. This page documents the exact models, data sources and preview mechanics behind every number in the app.
Overview
A structured asset is one token that represents a complete market thesis. That thesis might be a leveraged basket of AI equities, an inverse crypto position or a dollar-neutral relative-value trade. Instead of opening and maintaining several leveraged perpetual positions, a holder owns shares whose NAV tracks the whole basket.
Every underlying leg in ELYVX references a live Hyperliquid perpetual market. Crypto comes from the core perpetuals. Equities, indices, commodities and FX come from the HIP-3 xyz builder dex. Products are designed to be issued on Elysium, Kinetiq's Layer 2 for Hyperliquid.
In this preview, prices are live but issuance is simulated. NAVs are computed from real market data, and mint and redeem settle on a server-validated preview ledger using preview USD (pUSD). No deposits are accepted, no vaults are deployed and no transaction is broadcast on-chain.
Core concepts
Basket legs
A basket has up to 12 legs. Each leg sets an asset, a direction (long or short) and a weight. Weights are normalized so their gross weights sum to 1: a leg's share of the basket is w_i / sum(w), whatever its direction.
Leverage and effective leverage
Target leverage L scales the whole basket. Each leg holds a signed notional of L x NAV x w_i x s_i, where s_i is +1 for long and -1 for short. Effective (gross) leverage is L x sum|w_i|, and net exposure is long minus short. A dollar-neutral 1x basket therefore has gross 1.0 and net 0.0. Leverage is capped at 5x, and at the lowest venue maximum leverage among the basket's legs.
NAV
NAV per share is indexed to 100.00 on the first day where every underlying has a daily close. It then evolves according to the engine described below. Live NAV applies current mid prices to the last daily close without rebalancing.
Rebalancing modes
- Daily: reset to target weights and leverage at every UTC daily close. This keeps leverage constant.
- Weekly: reset every 7th observation.
- Threshold: reset when any leg's relative weight drift, or the leverage drift, exceeds the threshold (default 10%).
- None: buy-and-hold. Notionals are never reset, so leverage and weights drift with prices.
Volatility decay
Rebalancing to constant leverage makes returns path-dependent. In a market that ends flat but moves up and down, a daily-rebalanced 2x product loses value. For example, +10% then -10% gives 1.2 x 0.8 = 0.96. ELYVX reports decay as the leveraged return gross of fees and funding, minus L x the return of a static, unrebalanced 1x basket over the same window.
Funding
Perpetuals pay or receive hourly funding. Under the Hyperliquid convention, a positive rate means longs pay shorts. ELYVX estimates carry as sum(L x w_i x s_i x f_i x 24 x 365) using each leg's trailing 30-day average hourly rate (falling back to the current rate when history is unavailable). A positive value is a cost to the basket. Short legs earn positive funding.
Risk engine
Risk metrics come from the simulated NAV series and the live market snapshot (src/lib/financial/risk/metrics.ts). Metrics that depend on history are withheld (shown as unavailable) when the basket has fewer than 30 daily observations. They are never extrapolated.
Risk score
A transparent, additive 0–100 score:
score = min(vol x 40, 60) // volatility, saturates at 150% annualized
+ min(max(L_eff - 1, 0) x 7.5, 20) // leverage
+ topWeight x 10 // concentration
+ min(maxDrawdown, 1) x 10 // drawdown
label: < 25 Low | < 50 Moderate | < 75 Elevated | otherwise HighRebalance engine
The rebalance simulator (src/lib/financial/rebalance/rebalance.ts) starts from the engine's last end-of-day positions. It carries them forward with live prices, scales them to a chosen equity, and compares each leg with its target. For every leg it reports current and target weight, relative drift, the trade notional and side, and the estimated cost from that leg's live slippage estimate. A rebalance is flagged as needed when the maximum drift exceeds the basket threshold, or always for daily-rebalanced baskets.
Rebalance history in the app lists the events recorded by the historical simulation: date, turnover, cost and the drift that triggered the event. The preview runs no background workers and executes no automated trades.
Data provenance
Every figure in ELYVX carries one of six provenance tags. Hover a tag in the app for its definition.
Live market data from the Hyperliquid public info API (core perpetuals and the HIP-3 xyz dex). Each snapshot carries the time it was fetched from the source.
Values read directly from Elysium (chain 99901) or HyperEVM (chain 999) through a public RPC, such as native HYPE and kHYPE balances.
Deterministic engine output from live inputs: live NAV, funding carry, slippage, liquidity capacity and quotes. These are not executable on-chain prices.
Historical simulation on real Hyperliquid daily closes. It is not the realized performance of a live product, because no ELYVX product has existed over that period.
Records on the ELYVX preview ledger: pUSD balances, minted shares and transactions. No funds move and nothing is settled on-chain.
Designs that are not live, such as the fee schedule and future settlement contracts. They may change or never ship.
Mint and redeem (preview)
- Sign in with email, Google or a wallet. Users without a wallet get one created by Privy. Each new preview portfolio is credited with 10,000 pUSD. pUSD is a preview unit and is not a real asset.
- Request a quote. The server computes NAV from live prices, then applies fees and size-aware slippage in decimal arithmetic. It signs the quote with HMAC and gives it a 30-second expiry.
- Quotes are refused when the market snapshot is stale or older than 30 seconds. A stale price is never served as executable.
- Confirm. The server re-verifies the signature, expiry and session owner, then applies the trade atomically. The quote ID is the idempotency key, so each quote can settle at most once. Retries return the original transaction with
replayed: true. - Mint amounts must be between 10 and 1,000,000 pUSD. Shares are floored to 6 decimals, and fees are rounded up.
Preview operations never request token approvals, signatures for transactions or transfers. Real wallet balances are shown separately from preview holdings.
Fees and slippage
Slippage for each leg is half of Hyperliquid's reported impact spread plus a square-root market-impact term:
spread_bps = (impactAsk - impactBid) / 2 / mid x 10,000 // 5 bps if unavailable
impact_bps = 0.5 x sigma_daily x sqrt(legNotional / dayVolume) x 10,000
basket_bps = sum(L x w_i x (spread_bps_i + impact_bps_i))Sign-in
The app is available to signed-in users only. Sign-in is handled by Privy: email, Google or an existing wallet. Users who sign in without a wallet get a Privy embedded wallet. After login the browser sends its Privy access token to POST /api/auth/privy. The server verifies the token's ES256 signature against Privy's published keys for this app, then issues a 7-day httpOnly session cookie. The wallet address on the session is read from Privy on the server, never taken from the client.
Scripts and the SDK can sign in with Sign-In with Ethereum (EIP-4361) instead. The server generates the full message, including domain, nonce, chain ID and a 5-minute expiry, and pins its hash in a signed cookie. It verifies the signature through viem, which supports EOAs and smart-contract wallets. Signing costs no gas and authorizes nothing: the message states that it does not approve any transaction or token.
Networks and contracts
Third-party contracts below were verified to hold bytecode on 2026-11-30. ELYVX only reads them. No ELYVX contracts are deployed.
Supported assets
30 assets were verified against the live Hyperliquid universe. At runtime the registry is re-checked against the venue, and delisted or missing assets are marked unavailable and cannot be used.
Crypto · 7
Equity · 12
Index · 2
Commodity · 7
FX · 2
Products
A long-only basket of the companies building AI compute and running AI at scale. It holds NVIDIA, AMD, Microsoft, Alphabet, Meta and Palantir through HIP-3 equity perpetuals and is rebalanced daily to 2x target leverage.
A market-cap-tilted long basket of Bitcoin, Ethereum and Solana, rebalanced daily to 2x target leverage. It is designed for directional conviction on the crypto majors without managing three separate leveraged positions.
A short basket of Bitcoin, Ethereum and Solana, rebalanced daily to 2x target leverage. It is meant as a hedge or tactical bearish view. Short exposure earns funding when funding is positive and pays it when funding is negative.
Single-asset 3x leveraged exposure to HYPE, rebalanced daily. This is the highest-volatility product in the lineup and is intended for short holding periods.
A diversified commodity basket of gold, silver, WTI crude and copper at 1.5x leverage, rebalanced weekly. It expresses an inflation and real-asset view through HIP-3 commodity perpetuals.
A long/short basket that is 50% long BTC and HYPE and 50% short ETH and SOL at 1x gross. Net dollar exposure is zero, so returns come from relative performance rather than market direction.
Architecture
ELYVX is a single Next.js application. It contains the server components, route handlers and server-only TypeScript modules. Financial logic is pure TypeScript with no I/O. All external dependencies sit behind adapter interfaces, so a move to dedicated infrastructure replaces adapters rather than features.
Browser ──> Next.js route / server component
│
├─ services/analytics ──> financial/simulation · risk · rebalance (pure)
│ │
│ └─ MarketDataProvider ──> Hyperliquid info API (cached, deduplicated)
│
├─ services/preview ──> PortfolioStore (Redis CAS | memory) ── ExecutionProvider
│
└─ ChainProvider ──> Elysium RPC · HyperEVM RPC (read-only)FAQ
Is any money at risk in the preview?
No. The preview accepts no deposits, requests no approvals and sends no transactions. Balances are pUSD on a preview ledger.
Are the prices real?
Yes. Underlying prices, funding, volume and open interest are live from the Hyperliquid public API. NAVs computed from them are engine estimates.
Is the historical performance real?
The underlying prices are real daily closes, but ELYVX products did not exist over that period. Performance charts are simulations and are labelled as such.
Why might a metric show as unavailable?
History-based metrics need at least 30 daily observations. ELYVX shows them as unavailable rather than estimating from too little data.
Can I build my own basket?
Yes. The Builder supports up to 12 legs, long and short, leverage up to 5x (capped by venue limits) and four rebalance modes. Baskets can be shared by link or saved to your session.
Where will products be issued?
Elysium is the intended issuance network. Settlement contracts will only be introduced after audits. Until then, execution stays on the preview ledger.