diff --git a/packages/react-app/src/hooks/index.js b/packages/react-app/src/hooks/index.js new file mode 100644 index 0000000..18d9202 --- /dev/null +++ b/packages/react-app/src/hooks/index.js @@ -0,0 +1 @@ +export { usePools } from "./usePools"; diff --git a/packages/react-app/src/hooks/usePools.js b/packages/react-app/src/hooks/usePools.js index e69de29..35481a7 100644 --- a/packages/react-app/src/hooks/usePools.js +++ b/packages/react-app/src/hooks/usePools.js @@ -0,0 +1,12 @@ +import Web3 from "web3"; //one of the most popular packages when interacting with smart contracts +import { useEffect, useState } from "react"; +import { useConfig } from "@usedapp/core"; + +import { ROUTER_ADDRESS } from "../config"; + +export const usePools = () => { + const { readOnlyChainId, readOnlyUrls } = useConfig(); +} + + +