vaultisium
Getting started

HLP and how it is held

One HyperCore account, owned by a contract, holds the whole HLP position. Its equity is read on HyperEVM and delivered to Elysium.

01
vaultEquity read at HyperEVM block N
02
ticket to Elysium's inbox
03
EquityBook.record() via the alias
04
Tranches.sync() applies it
HLP lock after each desk deposit
day 1
day 2
day 3
day 4
free
A fresh read lands every 25 minutes. Anyone can post sooner after a 0.1% move or 10 minutes, and pays the ticket.

The desk

HlpDesk is a HyperEVM contract, so it has its own HyperCore account. Money moves along one fixed route each way, and no call can send it anywhere else:

  1. toCore: HyperEVM USDC into the desk's HyperCore account through Circle's CoreDepositWallet.
  2. intoHlp and outOfHlp: in and out of HLP, vault 0xdfc2…f303 (CoreWriter action 2).
  3. shiftUsd: between the account's spot and perp balances (action 7).
  4. toEvm: spot USDC back to the desk itself on HyperEVM, through the USDC system address (action 6).
  5. bridgeOut: HyperEVM USDC to Tranches on Elysium through the canonical token bridge. The destination is set once at deploy.

USDC coming from Elysium lands on DeskLanding, a small contract that hands it to the desk and counts it in forwarded.

Reading equity

holdings() adds up everything the desk owns: HyperEVM USDC, HyperCore spot USDC (0x801), perp USD (0x803) and HLP equity (0x802, which also returns lockedUntil). Because the total is read whole, a HyperCore action that fails changes nothing and one that lands only moves value between lines. Reads wait 90 seconds after any desk move, so HyperCore's short delay never shows a dollar twice or not at all. All values are USD with 6 decimals, the same unit as USDC on Elysium.

Delivery to Elysium

EquitySender.post() reads the desk and sends EquityBook.record through Elysium's inbox on HyperEVM as a retryable ticket. The record carries the holdings, the HLP part, lockedUntil, the bridge counters bridgedOut and forwarded, and the HyperEVM block and time of the read. On Elysium the call arrives from the sender's aliased address (the sender plus 0x1111…1111), which is the only address the book accepts. A read older than the last one is refused, and so is one that lands more than 5 minutes after it was taken.

A fresh desk read lands every 25 minutes, inside the 30-minute age limit, so the last read in force is always current. The contract also lets anyone post sooner, after a 0.1% move in equity or 10 minutes after the previous post, paying the ticket themselves.

HLP's lock

HLP locks each deposit for four days. The book carries lockedUntil so the app shows when the desk's newest money can leave. Withdrawals do not wait on it as long as the buffer has USDC.