diff --git a/pkg/exchange/max/exchange.go b/pkg/exchange/max/exchange.go index 83b56f1ed..0a894d4fa 100644 --- a/pkg/exchange/max/exchange.go +++ b/pkg/exchange/max/exchange.go @@ -587,8 +587,7 @@ func (e *Exchange) QuerySpotAccount(ctx context.Context) (*types.Account, error) return nil, err } a.UpdateBalances(balances) - - return nil, nil + return a, nil } func (e *Exchange) QueryAccount(ctx context.Context) (*types.Account, error) { diff --git a/pkg/strategy/deposit2transfer/strategy.go b/pkg/strategy/deposit2transfer/strategy.go index be59562aa..aad8ad073 100644 --- a/pkg/strategy/deposit2transfer/strategy.go +++ b/pkg/strategy/deposit2transfer/strategy.go @@ -149,7 +149,7 @@ func (s *Strategy) checkDeposits(ctx context.Context) { if service, ok := s.session.Exchange.(spotAccountQueryService); ok { account, err2 := service.QuerySpotAccount(ctx) if err2 != nil { - log.WithError(err2).Errorf("unable to update account") + log.WithError(err2).Errorf("unable to query spot account") continue }