@pear-protocol/symmio-client 0.2.21 → 0.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,10 @@ function useSymmContext() {
17
17
  function SymmProvider({
18
18
  chainId = 42161,
19
19
  address,
20
- symmCoreConfig,
20
+ symmCoreConfig = {
21
+ apiUrl: "https://nginx-server-staging.up.railway.app",
22
+ wsUrl: "wss://nginx-server-staging.up.railway.app"
23
+ },
21
24
  symmioConfig,
22
25
  children
23
26
  }) {
@@ -24689,14 +24692,6 @@ function useSymmPositions(params) {
24689
24692
  const chainId = params.chainId ?? ctxChainId;
24690
24693
  const internalEnabled = !!symmCoreClient && !!(accountAddress || resolvedAddress);
24691
24694
  const enabled = internalEnabled && (params.query?.enabled ?? true);
24692
- console.log({
24693
- symmCoreClient,
24694
- accountAddress,
24695
- resolvedAddress,
24696
- chainId,
24697
- internalEnabled,
24698
- enabled
24699
- });
24700
24695
  return useQuery({
24701
24696
  ...params.query,
24702
24697
  queryKey: symmKeys.positions({
@@ -24704,17 +24699,12 @@ function useSymmPositions(params) {
24704
24699
  address: resolvedAddress,
24705
24700
  chainId
24706
24701
  }),
24707
- queryFn: () => {
24708
- const result = symmCoreClient.positions.getOpen({
24709
- accountAddress,
24710
- address: resolvedAddress,
24711
- chainId
24712
- });
24713
- console.log({ result });
24714
- return result;
24715
- },
24716
- enabled,
24717
- refetchInterval: params.query?.refetchInterval ?? 3e3
24702
+ queryFn: () => symmCoreClient.positions.getOpen({
24703
+ accountAddress,
24704
+ address: resolvedAddress,
24705
+ chainId
24706
+ }),
24707
+ enabled
24718
24708
  });
24719
24709
  }
24720
24710
  function useSymmOpenOrders(params) {