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.

PreviewVersion 0.1.0-preview. Updated 2026-11-30.

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.

MetricDefinition
VolatilitySample standard deviation of daily log returns x sqrt(365). Perps trade every day, so a 365-day year is used.
Max drawdownLargest peak-to-trough NAV decline over the window.
VaR 95% (1d)Historical: the 5th-percentile daily return, expressed as a positive loss.
Worst and best dayMinimum and maximum simulated daily return.
Return / volAnnualized return divided by annualized volatility. No risk-free rate is subtracted.
ConcentrationHerfindahl index HHI = sum(w_i^2). Effective assets = 1 / HHI. Also reports the top weight.
Funding (annual)Estimated carry at current rates, as defined above.
Liquidity capacityLargest basket equity at which no leg trades more than 1% of its 24h venue volume on a full rebalance: min(vol_i x 1% / (L x w_i)).
Price freshnessSeconds since the market snapshot was fetched from the source.
Pricing confidence1 - (weighted |mid - oracle| / oracle in bps) / 50, clamped to [0, 1]. Halved when data is stale.
Stress testsInstantaneous shocks by asset class (HYPE can be shocked separately), applied as L x sum(w_i x s_i x shock_i) and floored at -100%.

Risk score

A transparent, additive 0–100 score:

risk 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 High

Rebalance 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

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.

On-chain

Values read directly from Elysium (chain 99901) or HyperEVM (chain 999) through a public RPC, such as native HYPE and kHYPE balances.

Estimate

Deterministic engine output from live inputs: live NAV, funding carry, slippage, liquidity capacity and quotes. These are not executable on-chain prices.

Simulated

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.

Preview

Records on the ELYVX preview ledger: pUSD balances, minted shares and transactions. No funds move and nothing is settled on-chain.

Proposed

Designs that are not live, such as the fee schedule and future settlement contracts. They may change or never ship.

Mint and redeem (preview)

  1. 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.
  2. 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.
  3. Quotes are refused when the market snapshot is stale or older than 30 seconds. A stale price is never served as executable.
  4. 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.
  5. 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

ItemValueNotes
Mint fee10 bpsCharged on the deposit before slippage.
Redeem fee10 bpsCharged on the gross redemption value.
Management fee0.95% p.a.Accrues daily into NAV.
Rebalance cost4.5 bpsPer unit of turnover, used in simulations.

Slippage for each leg is half of Hyperliquid's reported impact spread plus a square-root market-impact term:

slippage per leg (bps)
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

NetworkChain IDRPCExplorer
Elysium99901https://rpc.elysium.kinetiq.xyzelysium.kinetiq.xyz/explorer
HyperEVM999https://rpc.hyperliquid.xyz/evmhyperevmscan.io

Third-party contracts below were verified to hold bytecode on 2026-11-30. ELYVX only reads them. No ELYVX contracts are deployed.

ContractChainAddressUsage
kHYPE (Kinetiq staked HYPE)HyperEVM0xfD739d4e423301CE9385c1fb8850539D657C296DBalance reads

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

IDNameVenue symbolSector
BTCBitcoinBTCLayer 1
ETHEthereumETHLayer 1
SOLSolanaSOLLayer 1
HYPEHyperliquidHYPEHyperliquid
AVAXAvalancheAVAXLayer 1
LINKChainlinkLINKInfrastructure
DOGEDogecoinDOGEMemecoin

Equity · 12

IDNameVenue symbolSector
NVDANVIDIAxyz:NVDASemiconductors
AMDAMDxyz:AMDSemiconductors
AVGOBroadcomxyz:AVGOSemiconductors
MSFTMicrosoftxyz:MSFTSoftware
GOOGLAlphabetxyz:GOOGLInternet
METAMeta Platformsxyz:METAInternet
AAPLApplexyz:AAPLHardware
AMZNAmazonxyz:AMZNInternet
TSLATeslaxyz:TSLAAutomotive
PLTRPalantirxyz:PLTRSoftware
COINCoinbasexyz:COINFinancials
HOODRobinhoodxyz:HOODFinancials

Index · 2

IDNameVenue symbolSector
SP500S&P 500xyz:SP500US equities
XYZ100XYZ100 (Nasdaq-100 tracker)xyz:XYZ100US equities

Commodity · 7

IDNameVenue symbolSector
PAXGPAX GoldPAXGPrecious metals
GOLDGoldxyz:GOLDPrecious metals
SILVERSilverxyz:SILVERPrecious metals
CLWTI Crude Oilxyz:CLEnergy
BRENTOILBrent Crude Oilxyz:BRENTOILEnergy
COPPERCopperxyz:COPPERIndustrial metals
NATGASNatural Gasxyz:NATGASEnergy

FX · 2

IDNameVenue symbolSector
EUREuro / USDxyz:EURFX
JPYJapanese Yen / USDxyz:JPYFX

Products

AIBULLAI BullEquities · 2x · daily rebalance

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.

L NVDA 30%L AMD 15%L MSFT 15%L GOOGL 15%L META 15%L PLTR 10%
CBULLCrypto BullCrypto · 2x · daily rebalance

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.

L BTC 50%L ETH 30%L SOL 20%
CBEARCrypto BearCrypto · 2x · daily rebalance

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.

S BTC 50%S ETH 30%S SOL 20%
HBULLHYPE BullCrypto · 3x · daily rebalance

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.

L HYPE 100%
MACROMacroMacro · 1.5x · weekly rebalance

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.

L GOLD 40%L SILVER 20%L CL 25%L COPPER 15%
NEUTRALMarket NeutralStrategy · 1x · threshold rebalance

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.

L BTC 30%L HYPE 20%S ETH 25%S SOL 25%

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.

AdapterRoleStatusBehaviour
HyperliquidMarketDataProviderLiveMarketDataProviderLiveCalls metaAndAssetCtxs for the core and xyz dexes and candleSnapshot for completed UTC daily candles. Has an 8 s timeout, a 5 s snapshot cache, a 10 min candle cache, in-flight deduplication and a last-good fallback that is flagged stale.
PreviewMarketDataProviderOffline fixturesOpt-inDeterministic seeded fixtures, enabled only with MARKET_DATA_MODE=preview for offline development and CI. Every value is tagged as simulated. It is never a silent fallback for live data.
ElysiumChainProviderChain readsLiveviem public client for Elysium mainnet (99901). Provides block height, latency and native HYPE balance reads.
HyperEvmChainProviderChain readsLiveviem public client for HyperEVM (999). Reads native HYPE and the kHYPE balance, and verifies sign-in signatures (EOA and ERC-1271/6492).
RedisPortfolioStorePersistenceConfigurableUpstash Redis. Each mutation is one atomic Lua compare-and-swap that checks idempotency, checks the version, writes the state and updates counters.
MemoryPortfolioStorePersistenceFallbackProcess-local store used when Redis is not configured. It is not durable across serverless instances.
PreviewExecutionProviderExecutionLive (preview)Settles signed quotes on the preview ledger using decimal arithmetic. It never requests wallet approvals or transfers.
FutureContractExecutionProviderExecutionNot availablePlaceholder for audited settlement contracts. It deliberately rejects every call in this release.
request flow
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.