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