@raydium-io/raydium-sdk-v2 0.2.36-alpha → 0.2.37-alpha
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/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/raydium/cpmm/cpmm.js +1 -1
- package/lib/raydium/cpmm/cpmm.js.map +1 -1
- package/lib/raydium/cpmm/cpmm.mjs +1 -1
- package/lib/raydium/cpmm/cpmm.mjs.map +1 -1
- package/lib/raydium/index.js +1 -1
- package/lib/raydium/index.js.map +1 -1
- package/lib/raydium/index.mjs +1 -1
- package/lib/raydium/index.mjs.map +1 -1
- package/lib/raydium/raydium.js +1 -1
- package/lib/raydium/raydium.js.map +1 -1
- package/lib/raydium/raydium.mjs +1 -1
- package/lib/raydium/raydium.mjs.map +1 -1
- package/package.json +1 -1
- package/src/raydium/cpmm/cpmm.ts +25 -25
package/package.json
CHANGED
package/src/raydium/cpmm/cpmm.ts
CHANGED
|
@@ -1357,31 +1357,31 @@ export default class CpmmModule extends ModuleBase {
|
|
|
1357
1357
|
const tokenAccountB =
|
|
1358
1358
|
tokenAccRecord[poolInfo.mintB.address] || this.scope.account.getAssociatedTokenAccount(mintB, mintBProgram);
|
|
1359
1359
|
|
|
1360
|
-
if (!tokenAccRecord[poolInfo.mintA.address])
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
if (!tokenAccRecord[poolInfo.mintB.address])
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1360
|
+
// if (!tokenAccRecord[poolInfo.mintA.address])
|
|
1361
|
+
// txBuilder.addInstruction({
|
|
1362
|
+
// instructions: [
|
|
1363
|
+
// createAssociatedTokenAccountIdempotentInstruction(
|
|
1364
|
+
// this.scope.ownerPubKey,
|
|
1365
|
+
// tokenAccountA,
|
|
1366
|
+
// this.scope.ownerPubKey,
|
|
1367
|
+
// mintA,
|
|
1368
|
+
// mintAProgram,
|
|
1369
|
+
// ),
|
|
1370
|
+
// ],
|
|
1371
|
+
// });
|
|
1372
|
+
|
|
1373
|
+
// if (!tokenAccRecord[poolInfo.mintB.address])
|
|
1374
|
+
// txBuilder.addInstruction({
|
|
1375
|
+
// instructions: [
|
|
1376
|
+
// createAssociatedTokenAccountIdempotentInstruction(
|
|
1377
|
+
// this.scope.ownerPubKey,
|
|
1378
|
+
// tokenAccountB,
|
|
1379
|
+
// this.scope.ownerPubKey,
|
|
1380
|
+
// mintB,
|
|
1381
|
+
// mintBProgram,
|
|
1382
|
+
// ),
|
|
1383
|
+
// ],
|
|
1384
|
+
// });
|
|
1385
1385
|
|
|
1386
1386
|
tokenAccRecord[poolInfo.mintA.address] = tokenAccountA;
|
|
1387
1387
|
tokenAccRecord[poolInfo.mintB.address] = tokenAccountB;
|