@glowlabs-org/utils 0.1.1 → 0.1.2

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/esm/index.js CHANGED
@@ -18935,7 +18935,7 @@ async function createWeeklyReport({ week, gcaUrls, apiUrl, }) {
18935
18935
  throw new Error(`farm ${farm.shortId} has no rewardSplits`);
18936
18936
  if (farm.carbonCreditsProduced < 0) {
18937
18937
  console.log(`Farm: ${farm.shortId} has ${farm.carbonCreditsProduced} carbon credits produced`);
18938
- throw new Error("Carbon credits produced is less than 0");
18938
+ throw new Error("Carbon credits produced is less than 0 for farm " + farm.shortId);
18939
18939
  }
18940
18940
  totalCreditsProduced18dp += parseUnits(customToFixed(farm.carbonCreditsProduced, 18), 18);
18941
18941
  const sumGlow = farm.rewardSplits.reduce((acc, r) => acc + r.glowSplitPercent, 0);