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