Read‑only on‑chain methods for inspecting THLP state, NAV, and in‑flight deposits/withdrawals.
Underlying Hyperliquid vault address.
Sum of all users’ net deposits (μ‑USDC).
Performance fee rate in basis points (100 = 1%).
`head` = oldest live bucket index; `tail` = next free slot in the 4 096‑ring.
Compute total vault equity (μ‑USDC) across all unlocked & locked buckets.
function totalAssets() public view returns (uint256 eq)How many μ‑USDC back `shares` of tHLP are worth (i.e. NAV × shares).
function convertToAssets(uint256 shares) public view returns (uint256)How many tHLP shares you’d receive for `assets` μ‑USDC deposit.
function convertToShares(uint256 assets) public view returns (uint256)Your in‑flight deposit state.
function dep(address user) public view returns (uint64 amt, uint64 collateral, uint256 preEq, uint32 tokenId, address helper, DepStage st)Your in‑flight withdrawal state.
function wdr(address user) public view returns (uint64 usd, uint256 preEq, WdrStage st)Why use these?
totalAssets() and convertToAssets/convertToShares let front‑ends display up‑to‑date NAV and deposit–mint ratios.dep() and wdr() let you build UI showing “pending” order status, refund eligibility, or re‑entrancy guards.head/ tail are useful for off‑chain monitoring and analytics of bucket health.