@meteora-ag/dlmm 1.5.0-sam.4 → 1.5.0-sam.5
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 +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9395,7 +9395,7 @@ function toAmountsBothSideByStrategy(activeId, binStep, minBinId, maxBinId, amou
|
|
|
9395
9395
|
console.log("\u{1F680} ~ isSingleSideX:", isSingleSideX);
|
|
9396
9396
|
switch (strategyType) {
|
|
9397
9397
|
case 0 /* Spot */: {
|
|
9398
|
-
console.log(activeId < minBinId || activeId > maxBinId);
|
|
9398
|
+
console.log("test0", activeId < minBinId || activeId > maxBinId);
|
|
9399
9399
|
if (activeId < minBinId || activeId > maxBinId) {
|
|
9400
9400
|
const weights = toWeightSpotBalanced(minBinId, maxBinId);
|
|
9401
9401
|
return toAmountBothSide(
|
|
@@ -9413,6 +9413,7 @@ function toAmountsBothSideByStrategy(activeId, binStep, minBinId, maxBinId, amou
|
|
|
9413
9413
|
}
|
|
9414
9414
|
const amountsInBin = [];
|
|
9415
9415
|
if (!isSingleSideX) {
|
|
9416
|
+
console.log("test", minBinId <= activeId);
|
|
9416
9417
|
if (minBinId <= activeId) {
|
|
9417
9418
|
const weights = toWeightSpotBalanced(minBinId, activeId);
|
|
9418
9419
|
console.log("\u{1F680} ~ weights:", weights);
|
|
@@ -9432,8 +9433,10 @@ function toAmountsBothSideByStrategy(activeId, binStep, minBinId, maxBinId, amou
|
|
|
9432
9433
|
});
|
|
9433
9434
|
}
|
|
9434
9435
|
}
|
|
9436
|
+
console.log("test2", activeId < maxBinId);
|
|
9435
9437
|
if (activeId < maxBinId) {
|
|
9436
9438
|
const weights = toWeightSpotBalanced(activeId + 1, maxBinId);
|
|
9439
|
+
console.log("\u{1F680} ~ weights:", weights);
|
|
9437
9440
|
const amounts = toAmountAskSide(
|
|
9438
9441
|
activeId,
|
|
9439
9442
|
binStep,
|
|
@@ -9442,6 +9445,7 @@ function toAmountsBothSideByStrategy(activeId, binStep, minBinId, maxBinId, amou
|
|
|
9442
9445
|
mintX,
|
|
9443
9446
|
clock
|
|
9444
9447
|
);
|
|
9448
|
+
console.log("\u{1F680} ~ amounts:", amounts);
|
|
9445
9449
|
for (let bin of amounts) {
|
|
9446
9450
|
amountsInBin.push({
|
|
9447
9451
|
binId: bin.binId,
|