File tree Expand file tree Collapse file tree
apps/hyperdrive-trading/src/ui/hyperdrive/longs/hooks
packages/hyperdrive-js/src/token/eth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { HyperdriveConfig } from "@delvtech/hyperdrive-appconfig";
22import { ClosedLong } from "@delvtech/hyperdrive-js" ;
33import { useQuery } from "@tanstack/react-query" ;
44import { makeQueryKey } from "src/base/makeQueryKey" ;
5- import { useReadHyperdrive } from "src/ui/hyperdrive/hooks/useReadHyperdrive" ;
65import { useOpenOrClosedSearchParam } from "src/ui/markets/hooks/useOpenOrClosedSearchParam" ;
76import { Address } from "viem" ;
87
@@ -17,14 +16,9 @@ export function useTotalClosedLongsValue({
1716 closedLongs : ClosedLong [ ] | undefined ;
1817 enabled : boolean ;
1918} ) : { totalClosedLongsValue : bigint | undefined ; isLoading : boolean } {
20- const readHyperdrive = useReadHyperdrive ( {
21- chainId : hyperdrive . chainId ,
22- address : hyperdrive . address ,
23- } ) ;
2419 const activeOpenOrClosedTab = useOpenOrClosedSearchParam ( ) ;
2520
26- const queryEnabled =
27- ! ! account && ! ! closedLongs && ! ! readHyperdrive && enabled ;
21+ const queryEnabled = ! ! account && ! ! closedLongs && enabled ;
2822
2923 const { data : totalClosedLongsValue , isLoading } = useQuery ( {
3024 queryKey : makeQueryKey ( "totalClosedLongsValue" , {
Original file line number Diff line number Diff line change @@ -23,14 +23,3 @@ export class ReadWriteEth extends ReadEth implements ReadWriteToken {
2323 ) ;
2424 }
2525}
26-
27- export interface MethodNotImplementedErrorOptions {
28- /**
29- * The name of the object that the method was not implemented in.
30- */
31- objectName : string ;
32- /**
33- * The name of the method that was not implemented.
34- */
35- methodName : string ;
36- }
You can’t perform that action at this time.
0 commit comments