@meteora-ag/dlmm 1.6.0-rc.14 → 1.6.0-rc.16

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
@@ -13072,6 +13072,7 @@ function findBaseDeltaX(amountX, minDeltaId, maxDeltaId, binStep, activeId, minX
13072
13072
  const cDelta = new (0, _bnjs2.default)(m).mul(pm);
13073
13073
  c = c.add(cDelta);
13074
13074
  }
13075
+ console.log(amountX.sub(minX0).shln(SCALE_OFFSET).div(c.sub(b)).toString());
13075
13076
  return amountX.sub(minX0).shln(SCALE_OFFSET).div(c.sub(b));
13076
13077
  }
13077
13078
  function findX0AndDeltaX(amountX, minDeltaId, maxDeltaId, binStep, activeId) {
@@ -13090,7 +13091,9 @@ function findX0AndDeltaX(amountX, minDeltaId, maxDeltaId, binStep, activeId) {
13090
13091
  activeId,
13091
13092
  minX0
13092
13093
  );
13094
+ console.log("\u{1F680} ~ baseDeltaX:", baseDeltaX.toString());
13093
13095
  const x0 = minDeltaId.neg().mul(baseDeltaX).add(minX0);
13096
+ console.log("\u{1F680} ~ x0:", x0.toString());
13094
13097
  while (true) {
13095
13098
  const amountInBins = getAmountInBinsAskSide(
13096
13099
  activeId,