@meteora-ag/dlmm 1.5.2-rc.1 → 1.5.2-rc.3
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 +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10796,7 +10796,6 @@ var DLMM = class {
|
|
|
10796
10796
|
const positionsV2 = await program.account.positionV2.all([
|
|
10797
10797
|
positionOwnerFilter(userPubKey)
|
|
10798
10798
|
]);
|
|
10799
|
-
console.log("\u{1F680} ~ DLMM ~ positionsV2:", positionsV2);
|
|
10800
10799
|
const positionWrappers = [
|
|
10801
10800
|
...positionsV2.map((p) => new PositionV2Wrapper(p.publicKey, p.account))
|
|
10802
10801
|
];
|
|
@@ -10956,7 +10955,6 @@ var DLMM = class {
|
|
|
10956
10955
|
rewardMint1,
|
|
10957
10956
|
positionBinArraysMapV2
|
|
10958
10957
|
);
|
|
10959
|
-
console.log("\u{1F680} ~ DLMM ~ positionData:", positionData);
|
|
10960
10958
|
if (positionData) {
|
|
10961
10959
|
positionsMap.set(lbPair.toBase58(), {
|
|
10962
10960
|
publicKey: lbPair,
|
|
@@ -14799,6 +14797,10 @@ var DLMM = class {
|
|
|
14799
14797
|
const lowerBinId = position.lowerBinId();
|
|
14800
14798
|
const upperBinId = position.upperBinId();
|
|
14801
14799
|
const posShares = position.liquidityShares();
|
|
14800
|
+
console.log(
|
|
14801
|
+
"\u{1F680} ~ DLMM ~ posShares:",
|
|
14802
|
+
posShares.map((s) => s.toString())
|
|
14803
|
+
);
|
|
14802
14804
|
const lastUpdatedAt = position.lastUpdatedAt();
|
|
14803
14805
|
const feeInfos = position.feeInfos();
|
|
14804
14806
|
const totalClaimedFeeXAmount = position.totalClaimedFeeXAmount();
|
|
@@ -14828,6 +14830,10 @@ var DLMM = class {
|
|
|
14828
14830
|
const binSupply = bin.supply;
|
|
14829
14831
|
const posShare = posShares[idx];
|
|
14830
14832
|
const posBinRewardInfo = positionRewardInfos[idx];
|
|
14833
|
+
if (bin.binId === 17629) {
|
|
14834
|
+
console.log("supply", binSupply.toString());
|
|
14835
|
+
console.log("share", posShare.toString());
|
|
14836
|
+
}
|
|
14831
14837
|
const positionXAmount = binSupply.eq(ZERO) ? ZERO : posShare.mul(bin.xAmount).div(binSupply);
|
|
14832
14838
|
const positionYAmount = binSupply.eq(ZERO) ? ZERO : posShare.mul(bin.yAmount).div(binSupply);
|
|
14833
14839
|
totalXAmount = totalXAmount.add(new (0, _decimaljs2.default)(positionXAmount.toString()));
|