hooks
This commit is contained in:
1
packages/react-app/src/hooks/index.js
vendored
Normal file
1
packages/react-app/src/hooks/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { usePools } from "./usePools";
|
||||
12
packages/react-app/src/hooks/usePools.js
vendored
12
packages/react-app/src/hooks/usePools.js
vendored
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user