nofx icon indicating copy to clipboard operation
nofx copied to clipboard

[BUG] agentState.CrossMarginSummary != nil

Open potent22 opened this issue 1 year ago • 0 comments

CrossMarginSummary 是 结构体值(hyperliquid.MarginSummary) 不是指针,所以不能是 nil,不能用 != nil 判断

改为 if err == nil && agentState != nil && agentState.CrossMarginSummary != (hyperliquid.MarginSummary{}) {

potent22 avatar Nov 07 '25 15:11 potent22