@t2000/sdk 0.16.13 → 0.16.14

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.cjs CHANGED
@@ -3447,21 +3447,15 @@ To access invested funds: t2000 invest sell ${params.amount} ${asset}`,
3447
3447
  investmentCostBasis += pos.costBasis;
3448
3448
  }
3449
3449
  }
3450
- let strategySuiTotal = 0;
3451
3450
  for (const key of this.portfolio.getAllStrategyKeys()) {
3452
3451
  for (const sp of this.portfolio.getStrategyPositions(key)) {
3453
3452
  if (!(sp.asset in INVESTMENT_ASSETS)) continue;
3453
+ if (sp.asset === "SUI") continue;
3454
3454
  const price = assetPrices[sp.asset] ?? 0;
3455
3455
  investmentValue += sp.totalAmount * price;
3456
3456
  investmentCostBasis += sp.costBasis;
3457
- if (sp.asset === "SUI") strategySuiTotal += sp.totalAmount;
3458
3457
  }
3459
3458
  }
3460
- if (strategySuiTotal > 0) {
3461
- const suiPrice2 = assetPrices["SUI"] ?? 0;
3462
- const gasSui = Math.max(0, bal.gasReserve.sui - strategySuiTotal);
3463
- bal.gasReserve = { sui: gasSui, usdEquiv: gasSui * suiPrice2 };
3464
- }
3465
3459
  bal.investment = investmentValue;
3466
3460
  bal.investmentPnL = investmentValue - investmentCostBasis;
3467
3461
  } catch {