fix: HL balance now reads spot USDC via SpotUserState
HL testnet USDC lives in the spot account, not the perp clearinghouse. GetBalance() was calling UserState() (perp clearinghouseState), which returned /usr/bin/bash. Switched to SpotUserState() and parse USDC.total - USDC.hold. Also cleaned up .gitignore to exclude .env, binary, logs, data/.
This commit is contained in:
@@ -1 +1,6 @@
|
||||
hl_helper/node_modules/
|
||||
.env
|
||||
exchange-monitor
|
||||
exchange-monitor.log
|
||||
*.log
|
||||
data/
|
||||
|
||||
Reference in New Issue
Block a user