Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Jul 26, 2024
1 parent c059903 commit e43a859
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/client/src/getPools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
Expand Down

0 comments on commit e43a859

Please sign in to comment.