Four‑step journey to convert user tokens into interest‑bearing tHLP shares.
Minimum notional deposit in μ‑USDC (1,000,000 μ = 1 USDC).
Tracks each user’s in‑flight deposit: how much USDC was bridged, which Core tokenId, core decimals, helper address & stage.
{ uint64 amt; uint64 collateral; uint256 preEq; uint32 tokenId; address helper; DepStage st; } — see enum DepStage for workflow stage.
Step 1: Transfer your ERC‑20 into THLP, bridge it into a cloned OrderHelper, and place a Core limit‑sell order.
function depositCollateral(
address token,
address sys,
uint32 index,
uint256 amountNtl,
uint8 coreDec,
uint64 tokenId,
uint16 slippageBps
) external nonReentrant;Step 2: Once Core fills your order, sweep back USDC, deduct any deposit fee, and enqueue into the current epoch bucket in the HyperLiquid vault.
function depositConfirmAndDeposit() external nonReentrant;Step 3: Once the HyperLiquid vault equity has updated, mint your tHLP shares pro‑rata and clear your pending state.
function depositFinalize() external;Cancel your in‑flight deposit if your Core limit order never fills (or you change your mind).
function refundCollateral() external nonReentrant;