@meteora-ag/dlmm 1.0.45 → 1.0.46
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 +15 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7045,21 +7045,23 @@ var DLMM = class {
|
|
|
7045
7045
|
opt?.programId ?? LBCLMM_PROGRAM_IDS[cluster],
|
|
7046
7046
|
provider
|
|
7047
7047
|
);
|
|
7048
|
-
const positions = await
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7048
|
+
const [positions, positionsV2] = await Promise.all([
|
|
7049
|
+
program.account.position.all([
|
|
7050
|
+
{
|
|
7051
|
+
memcmp: {
|
|
7052
|
+
bytes: bs58.encode(userPubKey.toBuffer()),
|
|
7053
|
+
offset: 8 + 32
|
|
7054
|
+
}
|
|
7053
7055
|
}
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7056
|
+
]),
|
|
7057
|
+
program.account.positionV2.all([
|
|
7058
|
+
{
|
|
7059
|
+
memcmp: {
|
|
7060
|
+
bytes: bs58.encode(userPubKey.toBuffer()),
|
|
7061
|
+
offset: 8 + 32
|
|
7062
|
+
}
|
|
7061
7063
|
}
|
|
7062
|
-
|
|
7064
|
+
])
|
|
7063
7065
|
]);
|
|
7064
7066
|
const binArrayPubkeySet = /* @__PURE__ */ new Set();
|
|
7065
7067
|
const lbPairSet = /* @__PURE__ */ new Set();
|