@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 CHANGED
@@ -7045,21 +7045,23 @@ var DLMM = class {
7045
7045
  _nullishCoalesce(_optionalChain([opt, 'optionalAccess', _40 => _40.programId]), () => ( LBCLMM_PROGRAM_IDS[cluster])),
7046
7046
  provider
7047
7047
  );
7048
- const positions = await program.account.position.all([
7049
- {
7050
- memcmp: {
7051
- bytes: _bytes.bs58.encode(userPubKey.toBuffer()),
7052
- offset: 8 + 32
7048
+ const [positions, positionsV2] = await Promise.all([
7049
+ program.account.position.all([
7050
+ {
7051
+ memcmp: {
7052
+ bytes: _bytes.bs58.encode(userPubKey.toBuffer()),
7053
+ offset: 8 + 32
7054
+ }
7053
7055
  }
7054
- }
7055
- ]);
7056
- const positionsV2 = await program.account.positionV2.all([
7057
- {
7058
- memcmp: {
7059
- bytes: _bytes.bs58.encode(userPubKey.toBuffer()),
7060
- offset: 8 + 32
7056
+ ]),
7057
+ program.account.positionV2.all([
7058
+ {
7059
+ memcmp: {
7060
+ bytes: _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();