@gala-chain/launchpad-sdk 3.27.1 → 3.27.3

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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.27.3
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: return raw price impact values with full precision instead of rounding to 2 decimals
8
+
9
+ Changed price impact return format from `.toFixed(2)` to `.toString()` to preserve the full
10
+ precision of GSwap SDK's price impact calculations. This allows consumers to see the actual price
11
+ impact values without rounding loss.
12
+
13
+ ## 3.27.2
14
+
15
+ ### Patch Changes
16
+
17
+ - fix: use GSwap SDK's native price impact calculation instead of custom formula
18
+
19
+ The custom price impact calculation was inaccurate. The GSwap SDK already provides a correct
20
+ `priceImpact` field in its quote responses that accounts for the actual exchange rate and pool
21
+ slippage. We now use that directly instead of computing our own formula.
22
+
23
+ This fixes issues where small swaps incorrectly showed 0% impact and large swaps showed incorrect
24
+ values.
25
+
3
26
  ## 3.27.1
4
27
 
5
28
  ### Patch Changes
@@ -3,5 +3,5 @@
3
3
  * This file is generated by scripts/inject-version.ts during build
4
4
  * DO NOT EDIT MANUALLY
5
5
  */
6
- export declare const SDK_VERSION = "3.27.1";
6
+ export declare const SDK_VERSION = "3.27.3";
7
7
  //# sourceMappingURL=version.generated.d.ts.map