From f0001612027938e8f535f046e89d7940f9769f8d Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Thu, 19 Dec 2019 13:53:13 -0500 Subject: [PATCH] add filter currencies set --- src/remote/kyber.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/remote/kyber.js b/src/remote/kyber.js index 23d31e8..28a4b12 100644 --- a/src/remote/kyber.js +++ b/src/remote/kyber.js @@ -33,9 +33,10 @@ function mapToCurrencyFormat(currency) { } } +const omitCurrencies = new Set(['ETH', 'OMG']) function currencyFilter(currency) { if (isNil(currency)) return false - if (currency.symbol === 'ETH') return false + if (omitCurrencies.has(currency.symbol)) return false return true }