diff --git a/.env.example b/.env.example index 41efa375..06232494 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,4 @@ -# RPC URLs for @airswap/metadata and WalletConnect +# Optional override RPC URLs. REACT_APP_RPC_URL_1= REACT_APP_RPC_URL_5= -REACT_APP_RPC_URL_59140= -# Sentry DSN for error logging -REACT_APP_SENTRY_DSN= \ No newline at end of file +REACT_APP_RPC_URL_59140= \ No newline at end of file diff --git a/package.json b/package.json index cf96b941..2ad54a35 100644 --- a/package.json +++ b/package.json @@ -13,13 +13,12 @@ "prepare": "husky install" }, "dependencies": { - "@airswap/libraries": "4.2.8", + "@airswap/libraries": "4.2.10", "@craco/craco": "^6.2.0", "@fontsource/dm-mono": "^4.5.0", "@greypixel_/nicenumbers": "^0.0.18", "@react-hookz/web": "^14.2.2", "@reduxjs/toolkit": "~1.5.1", - "@sentry/react": "^7.57.0", "@testing-library/jest-dom": "^5.14.1", "@testing-library/react": "^11.2.7", "@testing-library/user-event": "^13.2.1", diff --git a/src/App.tsx b/src/App.tsx index bdc99aba..42475619 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,7 +2,6 @@ import React, { Suspense } from "react"; import { HashRouter as Router } from "react-router-dom"; import { Web3Provider } from "@ethersproject/providers"; -import * as Sentry from "@sentry/react"; import { Web3ReactProvider } from "@web3-react/core"; import BigNumber from "bignumber.js"; @@ -21,19 +20,6 @@ import "./i18n/i18n"; import GlobalStyle from "./style/GlobalStyle"; import { darkTheme, lightTheme } from "./style/themes"; -Sentry.init({ - dsn: process.env.REACT_APP_SENTRY_DSN, - integrations: [ - new Sentry.BrowserTracing({ - tracePropagationTargets: ["localhost", "eth.limo"], - }), - new Sentry.Replay(), - ], - tracesSampleRate: 0.1, - replaysSessionSampleRate: 0.1, - replaysOnErrorSampleRate: 1.0, -}); - // 1e+9 is the highest possible number BigNumber.config({ EXPONENTIAL_AT: 1e9 }); diff --git a/src/components/@widgets/SwapWidget/SwapWidget.tsx b/src/components/@widgets/SwapWidget/SwapWidget.tsx index f16dd650..4856bc1c 100644 --- a/src/components/@widgets/SwapWidget/SwapWidget.tsx +++ b/src/components/@widgets/SwapWidget/SwapWidget.tsx @@ -389,20 +389,14 @@ const SwapWidget: FC = () => { chainId, ProtocolIds.RequestForQuoteERC20, _quoteToken, - _baseToken, - { - initializeTimeout: 10 * 1000, - } + _baseToken ); lastLookServers = await Registry.getServers( library, chainId, ProtocolIds.LastLookERC20, _quoteToken, - _baseToken, - { - initializeTimeout: 10 * 1000, - } + _baseToken ); } } catch (e) { diff --git a/yarn.lock b/yarn.lock index 53fbf6bf..5bd2b02f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18,10 +18,10 @@ dependencies: get-parameter-names "^0.3.0" -"@airswap/libraries@4.2.8": - version "4.2.8" - resolved "https://registry.yarnpkg.com/@airswap/libraries/-/libraries-4.2.8.tgz#d5017949cf35776d8f8995235e7d7e6a7b94c59a" - integrity sha512-jPfXmAd5cU1L8S3RpZSi9HNQ7C7j08DMsZr9Qkt5ZfMTi4opigkvF4orAscTfd3xm/q2g5zhNc6kdQbF5vIeWQ== +"@airswap/libraries@4.2.10": + version "4.2.10" + resolved "https://registry.yarnpkg.com/@airswap/libraries/-/libraries-4.2.10.tgz#82f7447a7dd4d5d33334972e4b9ec190ccb60e42" + integrity sha512-KfKEubEQDzw3OyWOfB1IrQW9iZ7kAdDYChFU7u9yxIX3CGtnLP0arnWDuW/J9eUvIdm4Wcb7p/BIbQUtqEifjQ== dependencies: "@airswap/batch-call" "4.2.1" "@airswap/jsonrpc-client-websocket" "0.0.1" @@ -30,7 +30,7 @@ "@airswap/staking" "4.2.1" "@airswap/swap" "4.2.1" "@airswap/swap-erc20" "4.2.1" - "@airswap/utils" "4.2.6" + "@airswap/utils" "4.2.7" "@airswap/wrapper" "4.2.1" browser-or-node "^2.1.1" ethers "^5.6.9" @@ -73,10 +73,10 @@ dependencies: "@openzeppelin/contracts" "^4.8.3" -"@airswap/utils@4.2.6": - version "4.2.6" - resolved "https://registry.yarnpkg.com/@airswap/utils/-/utils-4.2.6.tgz#9c448b704cd96658b46902f77bdb20377f03f08f" - integrity sha512-IdN8sFAcf2NmiGx6L7nBMA3jdpBIIskGGcxx75Yt1wthEcyhDijMRRJRttD9aaGPPU6MDdXOXoeEBF/ApeYM8g== +"@airswap/utils@4.2.7": + version "4.2.7" + resolved "https://registry.yarnpkg.com/@airswap/utils/-/utils-4.2.7.tgz#c19af4d2cc5c5fdeec9e38a4abc7d51f6dc4e82f" + integrity sha512-mJgz+JmwzZbzXDGbPGmeJQYKvvOWtm6OcjIP158zF50u1usKF5ZrT4HnFERcyy5rYt0DpwycZ87AbhUcAn3nfA== dependencies: "@metamask/eth-sig-util" "^5.0.2" "@openzeppelin/contracts" "^4.8.3" @@ -2461,70 +2461,6 @@ "@noble/hashes" "~1.3.0" "@scure/base" "~1.1.0" -"@sentry-internal/tracing@7.57.0": - version "7.57.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/tracing/-/tracing-7.57.0.tgz#cb761931b635f8f24c84be0eecfacb8516b20551" - integrity sha512-tpViyDd8AhQGYYhI94xi2aaDopXOPfL2Apwrtb3qirWkomIQ2K86W1mPmkce+B0cFOnW2Dxv/ZTFKz6ghjK75A== - dependencies: - "@sentry/core" "7.57.0" - "@sentry/types" "7.57.0" - "@sentry/utils" "7.57.0" - tslib "^2.4.1 || ^1.9.3" - -"@sentry/browser@7.57.0": - version "7.57.0" - resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.57.0.tgz#6e724c9eac680dba99ced0fdf81be8d1e3b3bceb" - integrity sha512-E0HaYYlaqHFiIRZXxcvOO8Odvlt+TR1vFFXzqUWXPOvDRxURglTOCQ3EN/u6bxtAGJ6y/Zc2obgihTtypuel/w== - dependencies: - "@sentry-internal/tracing" "7.57.0" - "@sentry/core" "7.57.0" - "@sentry/replay" "7.57.0" - "@sentry/types" "7.57.0" - "@sentry/utils" "7.57.0" - tslib "^2.4.1 || ^1.9.3" - -"@sentry/core@7.57.0": - version "7.57.0" - resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.57.0.tgz#65093d739c04f320a54395a21be955fcbe326acb" - integrity sha512-l014NudPH0vQlzybtXajPxYFfs9w762NoarjObC3gu76D1jzBBFzhdRelkGpDbSLNTIsKhEDDRpgAjBWJ9icfw== - dependencies: - "@sentry/types" "7.57.0" - "@sentry/utils" "7.57.0" - tslib "^2.4.1 || ^1.9.3" - -"@sentry/react@^7.57.0": - version "7.57.0" - resolved "https://registry.yarnpkg.com/@sentry/react/-/react-7.57.0.tgz#cf91f0115bcd2a8306d6c8a39d8e8b53d4b21814" - integrity sha512-XGNTjIoCG3naSmCU8qObd+y+CqAB6NQkGWOp2yyBwp2inyKF2ehJvDh6bIQloBYq2TmOJDa4NfXdMrkilxaLFQ== - dependencies: - "@sentry/browser" "7.57.0" - "@sentry/types" "7.57.0" - "@sentry/utils" "7.57.0" - hoist-non-react-statics "^3.3.2" - tslib "^2.4.1 || ^1.9.3" - -"@sentry/replay@7.57.0": - version "7.57.0" - resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.57.0.tgz#c8f7eae7b7edc9d32c3d2955b337f3b3c76dff39" - integrity sha512-pN4ryNS3J5EYbkXvR+O/+hseAJha7XDl8mPFtK0OGTHG10JzCi4tQJazblHQdpb5QBaMMPCeZ+isyfoQLDNXnw== - dependencies: - "@sentry/core" "7.57.0" - "@sentry/types" "7.57.0" - "@sentry/utils" "7.57.0" - -"@sentry/types@7.57.0": - version "7.57.0" - resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.57.0.tgz#4fdb80cbd49ba034dd8d9be0c0005a016d5db3ce" - integrity sha512-D7ifoUfxuVCUyktIr5Gc+jXUbtcUMmfHdTtTbf1XCZHua5mJceK9wtl3YCg3eq/HK2Ppd52BKnTzEcS5ZKQM+w== - -"@sentry/utils@7.57.0": - version "7.57.0" - resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.57.0.tgz#8253c6fcf35138b4c424234b8da1596e11b98ad8" - integrity sha512-YXrkMCiNklqkXctn4mKYkrzNCf/dfVcRUQrkXjeBC+PHXbcpPyaJgInNvztR7Skl8lE3JPGPN4v5XhLxK1bUUg== - dependencies: - "@sentry/types" "7.57.0" - tslib "^2.4.1 || ^1.9.3" - "@sinclair/typebox@^0.24.1": version "0.24.51" resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.51.tgz#645f33fe4e02defe26f2f5c0410e1c094eac7f5f" @@ -11441,11 +11377,6 @@ tslib@^2.1.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== -"tslib@^2.4.1 || ^1.9.3": - version "2.6.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.0.tgz#b295854684dbda164e181d259a22cd779dcd7bc3" - integrity sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA== - tsutils@^3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"