@routstr/sdk 0.3.4 → 0.3.5

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.
@@ -1426,9 +1426,7 @@ var createStorageAdapterFromStore = (store) => ({
1426
1426
  const distributionMap = {};
1427
1427
  for (const entry of apiKeys) {
1428
1428
  const sum = entry.balance || 0;
1429
- if (sum > 0) {
1430
- distributionMap[entry.baseUrl] = (distributionMap[entry.baseUrl] || 0) + sum;
1431
- }
1429
+ distributionMap[entry.baseUrl] = (distributionMap[entry.baseUrl] || 0) + sum;
1432
1430
  }
1433
1431
  return Object.entries(distributionMap).map(([baseUrl, amt]) => ({ baseUrl, amount: amt })).sort((a, b) => b.amount - a.amount);
1434
1432
  },