From 63a7b95759c22a395cf7b243d33a7afa12e7953a Mon Sep 17 00:00:00 2001 From: shendel Date: Thu, 7 Sep 2023 11:22:35 +0300 Subject: [PATCH] fix - token base currency from prefix --- src/front/shared/helpers/transactions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/front/shared/helpers/transactions.ts b/src/front/shared/helpers/transactions.ts index 770e310866..25bec29aeb 100644 --- a/src/front/shared/helpers/transactions.ts +++ b/src/front/shared/helpers/transactions.ts @@ -8,7 +8,7 @@ const getTokenBaseCurrency = (tokenKey) => { const baseTokenCurrencyPrefix = tokenKey.match(baseCurrencyRegExp) if (baseTokenCurrencyPrefix) { - const baseTokenCurrency = baseTokenCurrencyPrefix[0].match(/[a-z]+/) + const baseTokenCurrency = baseTokenCurrencyPrefix[0].match(/[a-z1-2_]+/) const constantCurrency = baseTokenCurrency && BASE_TOKEN_CURRENCY[baseTokenCurrency[0].toUpperCase()]