HelioxReader
Batch read helper for users, cycles, trades, and portfolio checks
HelioxReader is a convenience aggregation layer. It reads from Heliox and TradeBook, normalizes ranges, and returns paginated structs that are easier for UIs and indexers to consume.
High-Value Read Paths
getTrades(user, from, to) and getTradesReverse(user, from, to) for forward or reverse trade history.
getUserCycles(user, from, to) plus secured-return helpers for cycle history analysis.
getRegisteredVaultCount(owner), and getOwnerVaults(owner) for the vault-only product surface.
getOperators(addresses), hasActiveCycle(user), calcUserPortfolio(user, currentPrice), and checkAllowedPortfolio(user, currentPrice) for dashboard helpers. The portfolio gate ignores currentPrice onchain; it uses the configured USDC valuation path.
TradeBook MappingReader does not own history. It pulls raw trades from
HelioxTradeBook and maps them into its own read struct so consumers can stay on one ABI surface.