From 9105ebce786d70ce5a1180e23a9a59fcf0589522 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 16 Aug 2023 12:51:15 +0800 Subject: [PATCH 1/2] deposit2transfer: fix err msg --- pkg/strategy/deposit2transfer/strategy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } From ed948b264252d15986b49df5e5d12b7b29df97a9 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 17 Aug 2023 17:42:54 +0800 Subject: [PATCH 2/2] max: fix QuerySpotAccount method return value --- pkg/exchange/max/exchange.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {