@gala-chain/launchpad-sdk 3.20.0 → 3.20.1
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/CHANGELOG.md +23 -0
- package/dist/constants/version.generated.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.20.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix isGraduated flag calculation to use correct saleStatus value
|
|
8
|
+
|
|
9
|
+
**Bug Fix:**
|
|
10
|
+
- Fixed `GalaChainService` calculation of `isGraduated` flag
|
|
11
|
+
- Was: `isGraduated = response.Data.saleStatus === 'Completed'` ❌
|
|
12
|
+
- Now: `isGraduated = response.Data.saleStatus === 'Finished'` ✅
|
|
13
|
+
- Backend actually returns `saleStatus: "Finished"` for graduated tokens, not `"Completed"`
|
|
14
|
+
- `DexService` now correctly uses reliable `isGraduated` flag for graduation detection
|
|
15
|
+
|
|
16
|
+
**Impact:**
|
|
17
|
+
- `fetchLaunchpadTokenSpotPrice()` now correctly identifies graduated tokens using `isGraduated`
|
|
18
|
+
- Tokens with `isGraduated: true` (saleStatus: "Finished") use `/v1/trade/price` DEX endpoint
|
|
19
|
+
- Ensures accurate spot pricing for graduated launchpad tokens like GALADOG
|
|
20
|
+
- No breaking changes - behavior corrected to match backend state progression
|
|
21
|
+
|
|
22
|
+
**Result:**
|
|
23
|
+
- GALADOG: `isGraduated: true` (saleStatus: "Finished") → Uses DEX endpoint ✅
|
|
24
|
+
- Other tokens: `isGraduated: false` (saleStatus: "Ongoing") → Uses bonding curve ✅
|
|
25
|
+
|
|
3
26
|
## 3.20.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|