@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 CHANGED
@@ -13320,7 +13320,7 @@ var DLMM = class {
13320
13320
  ),
13321
13321
  swapForY
13322
13322
  );
13323
- const priceImpact = new (0, _decimaljs2.default)(totalOutAmount.toString()).sub(new (0, _decimaljs2.default)(outAmountWithoutSlippage.toString())).div(new (0, _decimaljs2.default)(outAmountWithoutSlippage.toString())).mul(new (0, _decimaljs2.default)(100));
13323
+ const priceImpact = new (0, _decimaljs2.default)(totalOutAmount.toString()).sub(new (0, _decimaljs2.default)(outAmountWithoutSlippage.toString())).div(new (0, _decimaljs2.default)(outAmountWithoutSlippage.toString())).mul(new (0, _decimaljs2.default)(100)).abs();
13324
13324
  const endPrice = getPriceOfBinByBinId(
13325
13325
  lastFilledActiveBinId.toNumber(),
13326
13326
  this.lbPair.binStep