From 818c309dac00a934a7a649c8edb12b7975443922 Mon Sep 17 00:00:00 2001 From: Alexander Burkut Date: Thu, 16 May 2024 17:44:31 +0300 Subject: [PATCH] add minor fixers --- src/dex/uniswap-v3/uniswap-v3-integration.test.ts | 1 - src/dex/uniswap-v3/uniswap-v3.ts | 4 ++-- src/lib/multi-wrapper.ts | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/dex/uniswap-v3/uniswap-v3-integration.test.ts b/src/dex/uniswap-v3/uniswap-v3-integration.test.ts index d894ba634..24316512c 100644 --- a/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +++ b/src/dex/uniswap-v3/uniswap-v3-integration.test.ts @@ -77,7 +77,6 @@ async function checkOnChainPricing( ) { // Quoter address // const exchangeAddress = '0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6'; - // const readerIface = quoterIface; const sum = prices.reduce((acc, curr) => (acc += curr), 0n); diff --git a/src/dex/uniswap-v3/uniswap-v3.ts b/src/dex/uniswap-v3/uniswap-v3.ts index f257287b4..dee8eadae 100644 --- a/src/dex/uniswap-v3/uniswap-v3.ts +++ b/src/dex/uniswap-v3/uniswap-v3.ts @@ -66,7 +66,7 @@ import { import { OptimalSwapExchange } from '@paraswap/core'; import { OnPoolCreatedCallback, UniswapV3Factory } from './uniswap-v3-factory'; -export type PoolPairsInfo = { +type PoolPairsInfo = { token0: Address; token1: Address; fee: string; @@ -112,7 +112,7 @@ export class UniswapV3 logger: Logger; - protected uniswapMulti: Contract; + private uniswapMulti: Contract; protected stateMultiContract: Contract; protected notExistingPoolSetKey: string; diff --git a/src/lib/multi-wrapper.ts b/src/lib/multi-wrapper.ts index 5aa7fb110..80aff4725 100644 --- a/src/lib/multi-wrapper.ts +++ b/src/lib/multi-wrapper.ts @@ -65,11 +65,11 @@ export class MultiWrapper { } const aggregatedResult = await Promise.all( - allCalls.map(batch => { - return this.multi.methods + allCalls.map(batch => + this.multi.methods .tryAggregate(mandatory, batch) - .call(undefined, blockNumber); - }), + .call(undefined, blockNumber), + ), ); let globalInd = 0;