mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-03 19:11:02 +08:00
- Add check to ensure availableBalance >= 0 - Log warning when calculated value is negative - Prevent false "insufficient balance" errors for users with USDC Root cause: Hyperliquid's TotalMarginUsed may exceed AccountValue in certain position states, causing negative available balance. Related issue: Users with USDC seeing "no money" errors despite having sufficient balance on Hyperliquid. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>