Skip to content

Commit

Permalink
Merge pull request #471 from paraswap/aburkut/back-1235-uni-v3-quoter-v2
Browse files Browse the repository at this point in the history
BACK-1235: use QuoterV2 interface for UniswapV3 rpc fallbacks
  • Loading branch information
aburkut authored Aug 18, 2023
2 parents d15f3d5 + c6bc705 commit 3a98160
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paraswap/dex-lib",
"version": "2.28.9",
"version": "2.28.10",
"main": "build/index.js",
"types": "build/index.d.ts",
"repository": "https://github.com/paraswap/paraswap-dex-lib",
Expand Down
4 changes: 2 additions & 2 deletions src/dex/uniswap-v3/uniswap-v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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] || [],
) {
Expand Down

0 comments on commit 3a98160

Please sign in to comment.