@xitadel-fi/sdk 0.1.7 → 0.1.8
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/sdk/src/program.js +4 -6
- package/package.json +1 -1
package/dist/sdk/src/program.js
CHANGED
|
@@ -571,7 +571,6 @@ class XitadelProgram {
|
|
|
571
571
|
lttConfigPda,
|
|
572
572
|
poolAuthority,
|
|
573
573
|
pool,
|
|
574
|
-
poolb,
|
|
575
574
|
lpMint,
|
|
576
575
|
ammConfig,
|
|
577
576
|
ammConfigB,
|
|
@@ -584,8 +583,6 @@ class XitadelProgram {
|
|
|
584
583
|
stableVaultAtaB,
|
|
585
584
|
payerLttTokenAccount,
|
|
586
585
|
payerStableCoinTokenAccount,
|
|
587
|
-
positionNftMintKeypair.publicKey,
|
|
588
|
-
positionNftMintKeypairB.publicKey,
|
|
589
586
|
positionNftAccount,
|
|
590
587
|
positionNftAccountB,
|
|
591
588
|
position,
|
|
@@ -597,12 +594,13 @@ class XitadelProgram {
|
|
|
597
594
|
spl_token_1.TOKEN_2022_PROGRAM_ID,
|
|
598
595
|
eventAuthority,
|
|
599
596
|
params.cpAmmProgramId,
|
|
597
|
+
poolb,
|
|
600
598
|
web3_js_1.SYSVAR_RENT_PUBKEY,
|
|
601
599
|
];
|
|
602
|
-
const uniqueAddressesStr = new Set(allAddresses.map(
|
|
603
|
-
const uniqueAddresses = Array.from(uniqueAddressesStr).map(
|
|
600
|
+
const uniqueAddressesStr = new Set(allAddresses.map(a => a.toBase58()));
|
|
601
|
+
const uniqueAddresses = Array.from(uniqueAddressesStr).map(a => new web3_js_1.PublicKey(a));
|
|
604
602
|
const extendLookupTableIxs = [];
|
|
605
|
-
const chunkSize =
|
|
603
|
+
const chunkSize = 15;
|
|
606
604
|
for (let i = 0; i < uniqueAddresses.length; i += chunkSize) {
|
|
607
605
|
extendLookupTableIxs.push(web3_js_1.AddressLookupTableProgram.extendLookupTable({
|
|
608
606
|
payer: signer,
|