@goodaofi/bonds-sdk 3.0.141 → 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.
Files changed (2) hide show
  1. package/dist/main.js +4 -2
  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 >= stage.startTime && now < stage.endTime;
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: stage.startTime,
68834
+ startTime,
68833
68835
  endTime: stage.endTime,
68834
68836
  hardCapSats,
68835
68837
  totalBilledSats,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Goo Money Bond SDK",
4
4
  "author": "Goo Money",
5
5
  "license": "MIT",
6
- "version": "3.0.141",
6
+ "version": "3.0.142",
7
7
  "proxy": "https://realtime-api-pr-99.herokuapp.com",
8
8
  "module": "dist/main.js",
9
9
  "type": "module",