@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.
@@ -19,7 +19,10 @@ function useSymmContext() {
19
19
  function SymmProvider({
20
20
  chainId = 42161,
21
21
  address,
22
- symmCoreConfig,
22
+ symmCoreConfig = {
23
+ apiUrl: "https://nginx-server-staging.up.railway.app",
24
+ wsUrl: "wss://nginx-server-staging.up.railway.app"
25
+ },
23
26
  symmioConfig,
24
27
  children
25
28
  }) {
@@ -24691,14 +24694,6 @@ function useSymmPositions(params) {
24691
24694
  const chainId = params.chainId ?? ctxChainId;
24692
24695
  const internalEnabled = !!symmCoreClient && !!(accountAddress || resolvedAddress);
24693
24696
  const enabled = internalEnabled && (params.query?.enabled ?? true);
24694
- console.log({
24695
- symmCoreClient,
24696
- accountAddress,
24697
- resolvedAddress,
24698
- chainId,
24699
- internalEnabled,
24700
- enabled
24701
- });
24702
24697
  return reactQuery.useQuery({
24703
24698
  ...params.query,
24704
24699
  queryKey: symmKeys.positions({
@@ -24706,17 +24701,12 @@ function useSymmPositions(params) {
24706
24701
  address: resolvedAddress,
24707
24702
  chainId
24708
24703
  }),
24709
- queryFn: () => {
24710
- const result = symmCoreClient.positions.getOpen({
24711
- accountAddress,
24712
- address: resolvedAddress,
24713
- chainId
24714
- });
24715
- console.log({ result });
24716
- return result;
24717
- },
24718
- enabled,
24719
- refetchInterval: params.query?.refetchInterval ?? 3e3
24704
+ queryFn: () => symmCoreClient.positions.getOpen({
24705
+ accountAddress,
24706
+ address: resolvedAddress,
24707
+ chainId
24708
+ }),
24709
+ enabled
24720
24710
  });
24721
24711
  }
24722
24712
  function useSymmOpenOrders(params) {