@meteora-ag/dlmm 1.6.0-rc.15 → 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 +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13072,7 +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.
|
|
13075
|
+
console.log(amountX.sub(minX0).shln(SCALE_OFFSET).div(c.sub(b)).toString());
|
|
13076
13076
|
return amountX.sub(minX0).shln(SCALE_OFFSET).div(c.sub(b));
|
|
13077
13077
|
}
|
|
13078
13078
|
function findX0AndDeltaX(amountX, minDeltaId, maxDeltaId, binStep, activeId) {
|
|
@@ -13091,7 +13091,9 @@ function findX0AndDeltaX(amountX, minDeltaId, maxDeltaId, binStep, activeId) {
|
|
|
13091
13091
|
activeId,
|
|
13092
13092
|
minX0
|
|
13093
13093
|
);
|
|
13094
|
+
console.log("\u{1F680} ~ baseDeltaX:", baseDeltaX.toString());
|
|
13094
13095
|
const x0 = minDeltaId.neg().mul(baseDeltaX).add(minX0);
|
|
13096
|
+
console.log("\u{1F680} ~ x0:", x0.toString());
|
|
13095
13097
|
while (true) {
|
|
13096
13098
|
const amountInBins = getAmountInBinsAskSide(
|
|
13097
13099
|
activeId,
|