@pear-protocol/symmio-client 0.2.22 → 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.
- package/dist/react/index.js +6 -19
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +6 -19
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react/index.mjs
CHANGED
|
@@ -24692,14 +24692,6 @@ function useSymmPositions(params) {
|
|
|
24692
24692
|
const chainId = params.chainId ?? ctxChainId;
|
|
24693
24693
|
const internalEnabled = !!symmCoreClient && !!(accountAddress || resolvedAddress);
|
|
24694
24694
|
const enabled = internalEnabled && (params.query?.enabled ?? true);
|
|
24695
|
-
console.log({
|
|
24696
|
-
symmCoreClient,
|
|
24697
|
-
accountAddress,
|
|
24698
|
-
resolvedAddress,
|
|
24699
|
-
chainId,
|
|
24700
|
-
internalEnabled,
|
|
24701
|
-
enabled
|
|
24702
|
-
});
|
|
24703
24695
|
return useQuery({
|
|
24704
24696
|
...params.query,
|
|
24705
24697
|
queryKey: symmKeys.positions({
|
|
@@ -24707,17 +24699,12 @@ function useSymmPositions(params) {
|
|
|
24707
24699
|
address: resolvedAddress,
|
|
24708
24700
|
chainId
|
|
24709
24701
|
}),
|
|
24710
|
-
queryFn: () => {
|
|
24711
|
-
|
|
24712
|
-
|
|
24713
|
-
|
|
24714
|
-
|
|
24715
|
-
|
|
24716
|
-
console.log({ result });
|
|
24717
|
-
return result;
|
|
24718
|
-
},
|
|
24719
|
-
enabled,
|
|
24720
|
-
refetchInterval: params.query?.refetchInterval ?? 3e3
|
|
24702
|
+
queryFn: () => symmCoreClient.positions.getOpen({
|
|
24703
|
+
accountAddress,
|
|
24704
|
+
address: resolvedAddress,
|
|
24705
|
+
chainId
|
|
24706
|
+
}),
|
|
24707
|
+
enabled
|
|
24721
24708
|
});
|
|
24722
24709
|
}
|
|
24723
24710
|
function useSymmOpenOrders(params) {
|