From e0486b785bec92faadb3f0889ae85cc6d7897621 Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Tue, 14 Jan 2025 19:09:45 +0700 Subject: [PATCH] fixup! GateIO: Abstract GetOpenInterest --- exchanges/gateio/gateio_wrapper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exchanges/gateio/gateio_wrapper.go b/exchanges/gateio/gateio_wrapper.go index 7d488502a5f..ad5fd91e7a3 100644 --- a/exchanges/gateio/gateio_wrapper.go +++ b/exchanges/gateio/gateio_wrapper.go @@ -2233,12 +2233,12 @@ func (g *Gateio) GetOpenInterest(ctx context.Context, keys ...key.PairAsset) ([] continue } if len(keys) == 0 { // No keys: All enabled pairs - enabled, err := g.IsPairEnabled(pN, a) + enabled, err := g.IsPairEnabled(p, a) if err == nil && !enabled { err = currency.ErrPairNotEnabled } if err != nil { - errs = common.AppendError(errs, fmt.Errorf("%w from %s pair %s", err, a, pN)) + errs = common.AppendError(errs, fmt.Errorf("%w from %s pair %s", err, a, p)) continue } } else { // More than one key; Any available pair