@pear-protocol/hyperliquid-sdk 0.0.67 → 0.0.68
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/index.js +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -673,6 +673,12 @@ const useHyperliquidNativeWebSocket = ({ address, enabled = true, }) => {
|
|
|
673
673
|
break;
|
|
674
674
|
case 'allDexsClearinghouseState':
|
|
675
675
|
{
|
|
676
|
+
// If the user is not authenticated, ignore clearinghouse state to avoid
|
|
677
|
+
// populating summaries with the default zero address data.
|
|
678
|
+
if (!address) {
|
|
679
|
+
setAggregatedClearingHouseState(null);
|
|
680
|
+
break;
|
|
681
|
+
}
|
|
676
682
|
const data = response.data;
|
|
677
683
|
const states = (data.clearinghouseStates || [])
|
|
678
684
|
.map(([, s]) => s)
|