@compass-labs/widgets 0.1.39 → 0.1.41

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.
@@ -838,7 +838,6 @@ async function handlePositions(client, params) {
838
838
  const aavePositions = raw.aave || [];
839
839
  for (const a of aavePositions) {
840
840
  const balance = a.balance || "0";
841
- if (parseFloat(balance) <= 0) continue;
842
841
  const symbol = (a.reserveSymbol || a.reserve_symbol || "UNKNOWN").toUpperCase();
843
842
  const pnl = a.pnl;
844
843
  positions.push({
@@ -871,7 +870,6 @@ async function handlePositions(client, params) {
871
870
  const vaultPositions = raw.vaults || [];
872
871
  for (const v of vaultPositions) {
873
872
  const balance = v.balance || "0";
874
- if (parseFloat(balance) <= 0) continue;
875
873
  const symbol = (v.underlyingSymbol || v.underlying_symbol || "TOKEN").toUpperCase();
876
874
  const vaultName = v.vaultName || v.vault_name || `${symbol} Vault`;
877
875
  const pnl = v.pnl;
@@ -906,7 +904,6 @@ async function handlePositions(client, params) {
906
904
  const pendlePositions = raw.pendlePt || raw.pendle_pt || [];
907
905
  for (const p of pendlePositions) {
908
906
  const balance = p.ptBalance || p.pt_balance || p.balance || "0";
909
- if (parseFloat(balance) <= 0) continue;
910
907
  const symbol = (p.underlyingSymbol || p.underlying_symbol || "PT").toUpperCase();
911
908
  const pnl = p.pnl;
912
909
  positions.push({