How Tailr works

Tailr lists public Hyperliquid accounts as markets on Elysium. You take a long or short position on an account's return with HYPE, against a house of HYPE that LPs provide. One contract does all of it: not deployed yet.

The index

Hyperliquid publishes every account's all-time perp PnL and its perp equity. The feed reads both and signs them as Print(id, pnl, av, ts). The contract keeps one index per account, starting at 100, and moves it on every newer reading:

index' = index × (1 + (pnl' − pnl) / max(equity, $100k))

That is the account's return on equity, chained. Deposits and withdrawals change equity but not PnL, so they never move the index. One reading moves it at most 20%, unless the last reading is over a day old.

Orders

open(trader, long, leverage) with HYPE attached escrows your margin. It fills at a reading signed between 3 and 63 seconds after the order's block, posted with fill() by anyone. The desk does it for you, and a keeper does it too. If nobody fills it in time, expire() refunds every wei. Closing is the same two steps: close(), then a fill at the next reading.

The wait exists because Hyperliquid trades are public the instant they happen. A price you could pick yourself would always be a few seconds stale, and someone watching Hyperliquid would trade against the house on it.

Numbers

Leverage1x to 5x
Minimum margin0.005 HYPE
Open and close fee0.10% of notional
Borrow0.01% of notional an hour
Largest win3 × margin
Liquidationequity at or under 10% of margin
One trader's share of the house25% of house value
Fill window+3 s to +63 s

The house

Before a position opens, three times its margin is locked from the house. If the house cannot lock it, the order is refunded. LPs deposit at the house's value counting no open trade as a loss or a win, and withdraw at its value counting every open trade as winning its cap. Fees, borrow and trader losses all stay in the house.

Liquidation

When a position's equity, after borrow and the close fee, is at or under 10% of its margin, anyone may call liquidate() with a fresh reading and keep what equity is left. The keeper does this.

Trust

The feed key is fixed at deployment and is trusted to sign what Hyperliquid reports. The owner can list new accounts and nothing else. Listed traders could, in principle, trade against their own market; the fill delay, the move cap, the per-trader house cap and the win cap all bound what that is worth. The contract is unaudited.