@meteora-ag/dlmm 1.7.1-rc.1 → 1.7.2
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 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19459,13 +19459,13 @@ var DLMM = class {
|
|
|
19459
19459
|
totalXAmount = totalXAmount.add(new (0, _decimaljs2.default)(positionXAmount.toString()));
|
|
19460
19460
|
totalYAmount = totalYAmount.add(new (0, _decimaljs2.default)(positionYAmount.toString()));
|
|
19461
19461
|
const feeInfo = feeInfos[idx];
|
|
19462
|
-
const newFeeX = mulShr(
|
|
19462
|
+
const newFeeX = posShare.isZero() ? new (0, _anchor.BN)(0) : mulShr(
|
|
19463
19463
|
posShares[idx].shrn(SCALE_OFFSET),
|
|
19464
19464
|
bin.feeAmountXPerTokenStored.sub(feeInfo.feeXPerTokenComplete),
|
|
19465
19465
|
SCALE_OFFSET,
|
|
19466
19466
|
1 /* Down */
|
|
19467
19467
|
);
|
|
19468
|
-
const newFeeY = mulShr(
|
|
19468
|
+
const newFeeY = posShare.isZero() ? new (0, _anchor.BN)(0) : mulShr(
|
|
19469
19469
|
posShares[idx].shrn(SCALE_OFFSET),
|
|
19470
19470
|
bin.feeAmountYPerTokenStored.sub(feeInfo.feeYPerTokenComplete),
|
|
19471
19471
|
SCALE_OFFSET,
|
|
@@ -19497,7 +19497,7 @@ var DLMM = class {
|
|
|
19497
19497
|
const delta = rewardPerTokenStored.sub(
|
|
19498
19498
|
posBinRewardInfo.rewardPerTokenCompletes[j]
|
|
19499
19499
|
);
|
|
19500
|
-
const newReward = mulShr(
|
|
19500
|
+
const newReward = posShares[idx].isZero() ? new (0, _anchor.BN)(0) : mulShr(
|
|
19501
19501
|
delta,
|
|
19502
19502
|
posShares[idx].shrn(SCALE_OFFSET),
|
|
19503
19503
|
SCALE_OFFSET,
|