Docs
how it works
the idea
A Hyperliquid position belongs to the account that opened it, and no action moves it to another account. So Stream Share never moves positions. It gives every position an account of its own from the start, and turns the right to steer that account into an ERC-721 on Elysium.
Whoever holds the token is the only one the keeper takes instructions from. Pass the token and you pass the trade, untouched.
opening
- You choose a market, side, leverage and margin. Stream Share creates a fresh Hyperliquid account for this one position.
- Your wallet signs one
usdSendon Hyperliquid: margin, plus 1 USDC that Hyperliquid charges to activate a new account, plus a small reserve for the opening fee. The signature can only move that amount to that account. - The keeper sets isolated leverage, opens the position with a market order, and mints the share to your wallet.
- If the order can’t fill, everything that arrived is sent back to your Hyperliquid account.
steering
The holder signs instructions as EIP-712 typed data on Elysium: close, add or take out margin, set a take-profit or stop, cancel them. The keeper recovers the signer and checks it against ownerOf at the moment it executes, not when you sent it. Each instruction has a nonce and runs once.
Every step the keeper takes is written to the position’s public log with the Hyperliquid order or Elysium transaction behind it.
passing it on
A share is a normal ERC-721: send it to anyone. To sell, list it on the market at a fixed price in HYPE or USDC. The share sits in the market’s escrow while listed, so nobody can steer the position or move the token until it sells or the seller cancels.
A purchase needs a quote of the position’s equity signed by the keeper, under 60 seconds old. The buyer names the lowest equity they accept; the contract checks the signature, the age and the floor, and reverts if any fails. The listed price and asset must also match what the buyer saw, so a seller can’t raise the price mid-purchase. Sellers pay 1% of the sale.
closing and liquidation
On close the keeper sells the whole position, cancels resting orders, sends all USDC in the account to the holder’s own Hyperliquid account and burns the share.
If Hyperliquid liquidates the position, the keeper marks the share as liquidated on-chain. It stays in the holder’s wallet as a record. A liquidated share can’t be listed, and if it was listed, anyone can return it to the seller.
trust model
This version is custodial for the position accounts. Elysium has no way today to send actions to Hyperliquid or read its state from a contract, so the keys of each position account are held by Stream Share’s keeper, sealed with AES-256-GCM in its database.
- The keeper can technically trade or move funds in those accounts. The code only does so on a valid signed instruction from the holder.
- Each position is isolated in its own account, so one account can never pay for another.
- The keeper also signs equity quotes for the market. A wrong quote could let a sale through that should have failed.
- When Kinetiq ships a way for Elysium contracts to act on Hyperliquid, the account will be owned by a contract instead and this list shrinks to the contract code.
risks
- Leveraged positions can be liquidated and lose all their margin.
- The contracts are not audited.
- If the keeper is down, instructions wait in line. The position keeps running on Hyperliquid either way, including liquidation.
- Market orders fill with up to 3% slippage on open and 5% on close.
contracts
- Network
- Elysium (chain 99901)
- BatonPosition
- 0xcdad7bfb9ff37ed5f59cade1093228930ac7132f
- BatonMarket
- 0xcdf3bc6f5b933b3a5d19b5013482ecf8fa36c08c
- USDC on Elysium
- 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65