Update getFactoryInfo.js
This commit is contained in:
11
packages/react-app/src/utils/getFactoryInfo.js
vendored
11
packages/react-app/src/utils/getFactoryInfo.js
vendored
@@ -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: [],
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user