Commit 35ca1b97 authored by cartcrom's avatar cartcrom Committed by GitHub

fix: remove sentry warnings for failed tax fetches (#7281)

parent fdb9d8a8
import * as Sentry from '@sentry/react'
import { InterfaceEventName } from '@uniswap/analytics-events' import { InterfaceEventName } from '@uniswap/analytics-events'
import { ChainId, Percent } from '@uniswap/sdk-core' import { ChainId, Percent } from '@uniswap/sdk-core'
import { WETH_ADDRESS as getWethAddress } from '@uniswap/universal-router-sdk' import { WETH_ADDRESS as getWethAddress } from '@uniswap/universal-router-sdk'
...@@ -61,11 +60,7 @@ async function getSwapTaxes( ...@@ -61,11 +60,7 @@ async function getSwapTaxes(
}) })
} }
} catch (e) { } catch (e) {
Sentry.withScope(function (scope) { console.warn('Failed to get swap taxes for token(s):', addresses, e)
scope.setTag('method', 'getSwapTaxes')
scope.setLevel('warning')
Sentry.captureException(e)
})
} }
const inputTax = (inputTokenAddress ? FEE_CACHE[inputTokenAddress]?.sellTax : ZERO_PERCENT) ?? ZERO_PERCENT const inputTax = (inputTokenAddress ? FEE_CACHE[inputTokenAddress]?.sellTax : ZERO_PERCENT) ?? ZERO_PERCENT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment