@gala-chain/launchpad-sdk 3.27.1 → 3.27.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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.27.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: use GSwap SDK's native price impact calculation instead of custom formula
8
+
9
+ The custom price impact calculation was inaccurate. The GSwap SDK already provides a correct
10
+ `priceImpact` field in its quote responses that accounts for the actual exchange rate and pool
11
+ slippage. We now use that directly instead of computing our own formula.
12
+
13
+ This fixes issues where small swaps incorrectly showed 0% impact and large swaps showed incorrect
14
+ values.
15
+
3
16
  ## 3.27.1
4
17
 
5
18
  ### 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.2";
7
7
  //# sourceMappingURL=version.generated.d.ts.map