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

This commit is contained in:
cartcrom 2023-09-08 14:41:47 -04:00 committed by GitHub
parent fdb9d8a8c9
commit 35ca1b974e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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