From 35ca1b974e47c71e8bb29862be2b3fe430f4c839 Mon Sep 17 00:00:00 2001 From: cartcrom <39385577+cartcrom@users.noreply.github.com> Date: Fri, 8 Sep 2023 14:41:47 -0400 Subject: [PATCH] fix: remove sentry warnings for failed tax fetches (#7281) --- src/hooks/useSwapTaxes.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/hooks/useSwapTaxes.ts b/src/hooks/useSwapTaxes.ts index 57d08334bc..426b161062 100644 --- a/src/hooks/useSwapTaxes.ts +++ b/src/hooks/useSwapTaxes.ts @@ -1,4 +1,3 @@ -import * as Sentry from '@sentry/react' import { InterfaceEventName } from '@uniswap/analytics-events' import { ChainId, Percent } from '@uniswap/sdk-core' import { WETH_ADDRESS as getWethAddress } from '@uniswap/universal-router-sdk' @@ -61,11 +60,7 @@ async function getSwapTaxes( }) } } catch (e) { - Sentry.withScope(function (scope) { - scope.setTag('method', 'getSwapTaxes') - scope.setLevel('warning') - Sentry.captureException(e) - }) + console.warn('Failed to get swap taxes for token(s):', addresses, e) } const inputTax = (inputTokenAddress ? FEE_CACHE[inputTokenAddress]?.sellTax : ZERO_PERCENT) ?? ZERO_PERCENT