@meteora-ag/dlmm 1.5.3 → 1.5.4
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13320,7 +13320,7 @@ var DLMM = class {
|
|
|
13320
13320
|
),
|
|
13321
13321
|
swapForY
|
|
13322
13322
|
);
|
|
13323
|
-
const priceImpact = new Decimal6(totalOutAmount.toString()).sub(new Decimal6(outAmountWithoutSlippage.toString())).div(new Decimal6(outAmountWithoutSlippage.toString())).mul(new Decimal6(100));
|
|
13323
|
+
const priceImpact = new Decimal6(totalOutAmount.toString()).sub(new Decimal6(outAmountWithoutSlippage.toString())).div(new Decimal6(outAmountWithoutSlippage.toString())).mul(new Decimal6(100)).abs();
|
|
13324
13324
|
const endPrice = getPriceOfBinByBinId(
|
|
13325
13325
|
lastFilledActiveBinId.toNumber(),
|
|
13326
13326
|
this.lbPair.binStep
|