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