@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 +3 -0
- package/dist/index.es.js +3 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
- package/src/index.ts +6 -0
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
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
|
|