@meteora-ag/dlmm 1.5.2-rc.0 → 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 +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
|
@@ -11858,7 +11858,7 @@ var DLMM = class {
|
|
|
11858
11858
|
];
|
|
11859
11859
|
console.log(
|
|
11860
11860
|
"\u{1F680} ~ DLMM ~ getPositionsByUserAndLbPair ~ positions:",
|
|
11861
|
-
positions
|
|
11861
|
+
positions[0].liquidityShares().map((p) => p.toString())
|
|
11862
11862
|
);
|
|
11863
11863
|
if (!positions) {
|
|
11864
11864
|
throw new Error("Error fetching positions");
|
|
@@ -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()));
|