From e43a859b23d7c5c6602b5b99b9c4524d815b2eaf Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Fri, 26 Jul 2024 15:07:06 +0300 Subject: [PATCH] lint --- packages/client/src/getPools.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/client/src/getPools.ts b/packages/client/src/getPools.ts index 6bdeee99..37302317 100644 --- a/packages/client/src/getPools.ts +++ b/packages/client/src/getPools.ts @@ -66,12 +66,12 @@ export const getPools = async function (this: ZetaChainClient) { ); const calls = uniquePairs.map(({ tokenA, tokenB }) => ({ - target: systemContractAddress, callData: systemContract.interface.encodeFunctionData("uniswapv2PairFor", [ uniswapV2FactoryAddress, tokenA, tokenB, ]), + target: systemContractAddress, })); const { returnData } = await multicallContract.callStatic.aggregate(calls); @@ -93,22 +93,22 @@ export const getPools = async function (this: ZetaChainClient) { const pairCalls = validPairs .map((pair: string) => [ { - target: pair, callData: new ethers.utils.Interface( UniswapV2Pair.abi ).encodeFunctionData("token0"), + target: pair, }, { - target: pair, callData: new ethers.utils.Interface( UniswapV2Pair.abi ).encodeFunctionData("token1"), + target: pair, }, { - target: pair, callData: new ethers.utils.Interface( UniswapV2Pair.abi ).encodeFunctionData("getReserves"), + target: pair, }, ]) .flat();