This commit is contained in:
Daniel
2022-11-05 11:00:07 +01:00
parent d339403c31
commit 77a1320ff0
2 changed files with 13 additions and 0 deletions

1
packages/react-app/src/hooks/index.js vendored Normal file
View File

@@ -0,0 +1 @@
export { usePools } from "./usePools";

View File

@@ -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();
}