@meteora-ag/dlmm 1.4.7-rc.0 → 1.4.7-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 +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14265,10 +14265,10 @@ var DLMM = class {
|
|
|
14265
14265
|
} else {
|
|
14266
14266
|
const createPositionOwnerTokenXIx = _spltoken.createAssociatedTokenAccountIdempotentInstruction.call(void 0,
|
|
14267
14267
|
payer,
|
|
14268
|
+
positionOwnerTokenX,
|
|
14268
14269
|
positionOwner,
|
|
14269
14270
|
this.lbPair.tokenXMint,
|
|
14270
|
-
this.tokenX.owner
|
|
14271
|
-
positionOwnerTokenX
|
|
14271
|
+
this.tokenX.owner
|
|
14272
14272
|
);
|
|
14273
14273
|
preInstructions.push(createPositionOwnerTokenXIx);
|
|
14274
14274
|
const transferIx = _spltoken.createTransferCheckedInstruction.call(void 0,
|
|
@@ -14571,9 +14571,12 @@ var DLMM = class {
|
|
|
14571
14571
|
this.lbPair,
|
|
14572
14572
|
_nullishCoalesce(_optionalChain([this, 'access', _94 => _94.binArrayBitmapExtension, 'optionalAccess', _95 => _95.account]), () => ( null))
|
|
14573
14573
|
);
|
|
14574
|
+
const marketPriceBinArrayIndex = binIdToBinArrayIndex(
|
|
14575
|
+
new (0, _anchor.BN)(marketPriceBinId)
|
|
14576
|
+
);
|
|
14574
14577
|
const accountsToFetch = [];
|
|
14575
14578
|
const binArrayBitMapExtensionPubkey = isOverflowDefaultBinArrayBitmap(
|
|
14576
|
-
new (0, _anchor.BN)(
|
|
14579
|
+
new (0, _anchor.BN)(marketPriceBinArrayIndex)
|
|
14577
14580
|
) ? deriveBinArrayBitmapExtension(this.pubkey, this.program.programId)[0] : null;
|
|
14578
14581
|
binArrayBitMapExtensionPubkey && accountsToFetch.push(binArrayBitMapExtensionPubkey);
|
|
14579
14582
|
const [fromBinArrayPubkey] = deriveBinArray(
|
|
@@ -14611,7 +14614,6 @@ var DLMM = class {
|
|
|
14611
14614
|
preInstructions.push(initializeBitmapExtensionIx);
|
|
14612
14615
|
}
|
|
14613
14616
|
}
|
|
14614
|
-
console.log({ binArrayBitmapExtension });
|
|
14615
14617
|
if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _97 => _97[1]])) {
|
|
14616
14618
|
fromBinArray = fromBinArrayPubkey;
|
|
14617
14619
|
}
|