@goodaofi/bonds-sdk 3.0.140 → 3.0.142
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/main.js +4 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -68784,6 +68784,8 @@ const transformSaleData = (rawData, isFake) => {
|
|
|
68784
68784
|
const gooTGEPrice = 4;
|
|
68785
68785
|
const stages = rawData.map((stage, index) => {
|
|
68786
68786
|
var _a;
|
|
68787
|
+
// Override startTime for refund stage
|
|
68788
|
+
const startTime = stage.key === 'refund' ? 1858530087 : stage.startTime;
|
|
68787
68789
|
const hardCapSats = parseInt(stage.hardCapSats);
|
|
68788
68790
|
const totalBilledSats = parseInt(stage.totalBilledSats);
|
|
68789
68791
|
const activeReservationsSats = parseInt(stage.activeReservationsSats);
|
|
@@ -68824,12 +68826,12 @@ const transformSaleData = (rawData, isFake) => {
|
|
|
68824
68826
|
});
|
|
68825
68827
|
const progressPercentage = hardCapSats > 0 ? (totalBilledSats / hardCapSats) * 100 : 0;
|
|
68826
68828
|
const remainingPercentage = hardCapSats > 0 ? ((hardCapSats - totalBilledSats) / hardCapSats) * 100 : 50;
|
|
68827
|
-
const isActive = now >=
|
|
68829
|
+
const isActive = now >= startTime && now < stage.endTime;
|
|
68828
68830
|
const hasEnded = now >= stage.endTime;
|
|
68829
68831
|
return {
|
|
68830
68832
|
stageNumber,
|
|
68831
68833
|
key: stage.key,
|
|
68832
|
-
startTime
|
|
68834
|
+
startTime,
|
|
68833
68835
|
endTime: stage.endTime,
|
|
68834
68836
|
hardCapSats,
|
|
68835
68837
|
totalBilledSats,
|