Skip to content

Commit

Permalink
add minor fixers
Browse files Browse the repository at this point in the history
  • Loading branch information
aburkut committed May 16, 2024
1 parent 3bc052b commit 818c309
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/dex/uniswap-v3/uniswap-v3-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ async function checkOnChainPricing(
) {
// Quoter address
// const exchangeAddress = '0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6';
// const readerIface = quoterIface;

const sum = prices.reduce((acc, curr) => (acc += curr), 0n);

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 @@ -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;
Expand Down Expand Up @@ -112,7 +112,7 @@ export class UniswapV3

logger: Logger;

protected uniswapMulti: Contract;
private uniswapMulti: Contract;
protected stateMultiContract: Contract;

protected notExistingPoolSetKey: string;
Expand Down
8 changes: 4 additions & 4 deletions src/lib/multi-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 818c309

Please sign in to comment.