@meteora-ag/dlmm 1.5.2-rc.1 → 1.5.2-rc.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 +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14828,6 +14828,10 @@ var DLMM = class {
|
|
|
14828
14828
|
const binSupply = bin.supply;
|
|
14829
14829
|
const posShare = posShares[idx];
|
|
14830
14830
|
const posBinRewardInfo = positionRewardInfos[idx];
|
|
14831
|
+
if (bin.binId === 17629) {
|
|
14832
|
+
console.log("supply", binSupply.toString());
|
|
14833
|
+
console.log("share", posShare.toString());
|
|
14834
|
+
}
|
|
14831
14835
|
const positionXAmount = binSupply.eq(ZERO) ? ZERO : posShare.mul(bin.xAmount).div(binSupply);
|
|
14832
14836
|
const positionYAmount = binSupply.eq(ZERO) ? ZERO : posShare.mul(bin.yAmount).div(binSupply);
|
|
14833
14837
|
totalXAmount = totalXAmount.add(new (0, _decimaljs2.default)(positionXAmount.toString()));
|