From 25ff6e000db1011c96c5e36ca1859a85665f58e6 Mon Sep 17 00:00:00 2001 From: Alexander Burkut Date: Thu, 17 Aug 2023 17:47:04 +0300 Subject: [PATCH 1/3] BACK-1235: use QuoterV2 for UniswapV3 rpc fallbacks --- src/dex/uniswap-v3/uniswap-v3.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dex/uniswap-v3/uniswap-v3.ts b/src/dex/uniswap-v3/uniswap-v3.ts index 486f29cae..270a3816d 100644 --- a/src/dex/uniswap-v3/uniswap-v3.ts +++ b/src/dex/uniswap-v3/uniswap-v3.ts @@ -42,7 +42,7 @@ import { import { UniswapV3Config, Adapters, PoolsToPreload } from './config'; import { UniswapV3EventPool } from './uniswap-v3-pool'; import UniswapV3RouterABI from '../../abi/uniswap-v3/UniswapV3Router.abi.json'; -import UniswapV3QuoterABI from '../../abi/uniswap-v3/UniswapV3Quoter.abi.json'; +import UniswapV3QuoterV2ABI from '../../abi/uniswap-v3/UniswapV3QuoterV2.abi.json'; import UniswapV3MultiABI from '../../abi/uniswap-v3/UniswapMulti.abi.json'; import DirectSwapABI from '../../abi/DirectSwap.json'; import UniswapV3StateMulticallABI from '../../abi/uniswap-v3/UniswapV3StateMulticall.abi.json'; @@ -107,7 +107,7 @@ export class UniswapV3 protected dexHelper: IDexHelper, protected adapters = Adapters[network] || {}, readonly routerIface = new Interface(UniswapV3RouterABI), - readonly quoterIface = new Interface(UniswapV3QuoterABI), + readonly quoterIface = new Interface(UniswapV3QuoterV2ABI), protected config = UniswapV3Config[dexKey][network], protected poolsToPreload = PoolsToPreload[dexKey]?.[network] || [], ) { From 27b112c84e48231cbfad64f5bdde0a191977bef0 Mon Sep 17 00:00:00 2001 From: Alexander Burkut Date: Thu, 17 Aug 2023 19:13:20 +0300 Subject: [PATCH 2/3] 2.28.10-uni-v3-quoter-v2-interface --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4aa5e4e84..84f07d06d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paraswap/dex-lib", - "version": "2.28.9", + "version": "2.28.10-uni-v3-quoter-v2-interface", "main": "build/index.js", "types": "build/index.d.ts", "repository": "https://github.com/paraswap/paraswap-dex-lib", From c6bc705ab72727cd31cc201c130d3ec6a569649e Mon Sep 17 00:00:00 2001 From: Alexander Burkut Date: Fri, 18 Aug 2023 12:42:31 +0300 Subject: [PATCH 3/3] 2.28.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 84f07d06d..6449d4439 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paraswap/dex-lib", - "version": "2.28.10-uni-v3-quoter-v2-interface", + "version": "2.28.10", "main": "build/index.js", "types": "build/index.d.ts", "repository": "https://github.com/paraswap/paraswap-dex-lib",