@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.
- package/dist/index.d.mts +50 -2
- package/dist/index.d.ts +50 -2
- package/dist/index.js +1650 -1032
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1652 -1034
- package/dist/index.mjs.map +1 -1
- package/dist/server/index.js +0 -3
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +0 -3
- package/dist/server/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/server/index.mjs
CHANGED
|
@@ -836,7 +836,6 @@ async function handlePositions(client, params) {
|
|
|
836
836
|
const aavePositions = raw.aave || [];
|
|
837
837
|
for (const a of aavePositions) {
|
|
838
838
|
const balance = a.balance || "0";
|
|
839
|
-
if (parseFloat(balance) <= 0) continue;
|
|
840
839
|
const symbol = (a.reserveSymbol || a.reserve_symbol || "UNKNOWN").toUpperCase();
|
|
841
840
|
const pnl = a.pnl;
|
|
842
841
|
positions.push({
|
|
@@ -869,7 +868,6 @@ async function handlePositions(client, params) {
|
|
|
869
868
|
const vaultPositions = raw.vaults || [];
|
|
870
869
|
for (const v of vaultPositions) {
|
|
871
870
|
const balance = v.balance || "0";
|
|
872
|
-
if (parseFloat(balance) <= 0) continue;
|
|
873
871
|
const symbol = (v.underlyingSymbol || v.underlying_symbol || "TOKEN").toUpperCase();
|
|
874
872
|
const vaultName = v.vaultName || v.vault_name || `${symbol} Vault`;
|
|
875
873
|
const pnl = v.pnl;
|
|
@@ -904,7 +902,6 @@ async function handlePositions(client, params) {
|
|
|
904
902
|
const pendlePositions = raw.pendlePt || raw.pendle_pt || [];
|
|
905
903
|
for (const p of pendlePositions) {
|
|
906
904
|
const balance = p.ptBalance || p.pt_balance || p.balance || "0";
|
|
907
|
-
if (parseFloat(balance) <= 0) continue;
|
|
908
905
|
const symbol = (p.underlyingSymbol || p.underlying_symbol || "PT").toUpperCase();
|
|
909
906
|
const pnl = p.pnl;
|
|
910
907
|
positions.push({
|