Update getFactoryInfo.js

This commit is contained in:
Daniel
2022-11-05 11:40:27 +01:00
parent c7dd0cc666
commit 72625511cb

View File

@@ -2,5 +2,14 @@ import { abis } from "@my-app/contracts";
import { getPairsInfo } from "./getPairsInfo"; import { getPairsInfo } from "./getPairsInfo";
export const getFactoryInfo = async (factoryAddress, web3) => { export const getFactoryInfo = async (factoryAddress, web3) => {
const factory = new web3.eth.Contract(abis.factory, factoryAddress);
const factoryInfo = {
feeTo: null,
feeToSetter: null,
allPairsLength: null,
allPairs: [],
};
} }