@pioneer-platform/pioneer-sdk 8.12.5 → 8.12.7

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
@@ -3877,6 +3877,9 @@ class SDK {
3877
3877
  }
3878
3878
  }
3879
3879
  await this.getBalances();
3880
+ console.log(tag, "Loading charts (tokens + portfolio)...");
3881
+ await this.getCharts();
3882
+ console.log(tag, `Charts loaded. Total balances: ${this.balances.length}`);
3880
3883
  await this.syncMarket();
3881
3884
  const dashboardData = {
3882
3885
  networks: [],
package/dist/index.es.js CHANGED
@@ -4053,6 +4053,9 @@ class SDK {
4053
4053
  }
4054
4054
  }
4055
4055
  await this.getBalances();
4056
+ console.log(tag, "Loading charts (tokens + portfolio)...");
4057
+ await this.getCharts();
4058
+ console.log(tag, `Charts loaded. Total balances: ${this.balances.length}`);
4056
4059
  await this.syncMarket();
4057
4060
  const dashboardData = {
4058
4061
  networks: [],
package/dist/index.js CHANGED
@@ -4053,6 +4053,9 @@ class SDK {
4053
4053
  }
4054
4054
  }
4055
4055
  await this.getBalances();
4056
+ console.log(tag, "Loading charts (tokens + portfolio)...");
4057
+ await this.getCharts();
4058
+ console.log(tag, `Charts loaded. Total balances: ${this.balances.length}`);
4056
4059
  await this.syncMarket();
4057
4060
  const dashboardData = {
4058
4061
  networks: [],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "highlander",
3
3
  "name": "@pioneer-platform/pioneer-sdk",
4
- "version": "8.12.5",
4
+ "version": "8.12.7",
5
5
  "dependencies": {
6
6
  "@keepkey/keepkey-sdk": "^0.2.62",
7
7
  "@pioneer-platform/loggerdog": "^8.11.0",
package/src/index.ts CHANGED
@@ -786,6 +786,12 @@ export class SDK {
786
786
  }
787
787
  await this.getBalances();
788
788
 
789
+ // Load charts (portfolio + ERC20 tokens + staking positions)
790
+ // This is CRITICAL for discovering user's token balances (USDT, USDC, etc.)
791
+ console.log(tag, 'Loading charts (tokens + portfolio)...');
792
+ await this.getCharts();
793
+ console.log(tag, `Charts loaded. Total balances: ${this.balances.length}`);
794
+
789
795
  // Sync market prices for all balances
790
796
  await this.syncMarket();
791
797