@meteora-ag/dlmm 1.6.0-rc.5 → 1.6.0-rc.6
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18385,19 +18385,19 @@ var DLMM = class {
|
|
|
18385
18385
|
slippage
|
|
18386
18386
|
);
|
|
18387
18387
|
const postInstructions = [];
|
|
18388
|
-
if (this.tokenX.publicKey.equals(_spltoken.NATIVE_MINT) &&
|
|
18388
|
+
if (this.tokenX.publicKey.equals(_spltoken.NATIVE_MINT) && simulationResult.actualAmountXDeposited.gtn(0)) {
|
|
18389
18389
|
const wrapSOLIx = wrapSOLInstruction(
|
|
18390
18390
|
owner,
|
|
18391
18391
|
userTokenX,
|
|
18392
|
-
BigInt(
|
|
18392
|
+
BigInt(simulationResult.actualAmountXDeposited.toString())
|
|
18393
18393
|
);
|
|
18394
18394
|
preInstructions.push(...wrapSOLIx);
|
|
18395
18395
|
}
|
|
18396
|
-
if (this.tokenY.publicKey.equals(_spltoken.NATIVE_MINT) &&
|
|
18396
|
+
if (this.tokenY.publicKey.equals(_spltoken.NATIVE_MINT) && simulationResult.actualAmountYDeposited.gtn(0)) {
|
|
18397
18397
|
const wrapSOLIx = wrapSOLInstruction(
|
|
18398
18398
|
owner,
|
|
18399
18399
|
userTokenY,
|
|
18400
|
-
BigInt(
|
|
18400
|
+
BigInt(simulationResult.actualAmountYDeposited.toString())
|
|
18401
18401
|
);
|
|
18402
18402
|
preInstructions.push(...wrapSOLIx);
|
|
18403
18403
|
}
|