@lavarage/sdk 6.3.0 → 6.3.1
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 +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/index.ts +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2719,12 +2719,12 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
2719
2719
|
systemProgram: import_web3.SystemProgram.programId,
|
|
2720
2720
|
clock: import_web3.SYSVAR_CLOCK_PUBKEY,
|
|
2721
2721
|
randomAccountAsId: randomSeed.publicKey.toBase58(),
|
|
2722
|
-
feeTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, new import_web3.PublicKey("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF")),
|
|
2722
|
+
feeTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, new import_web3.PublicKey("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF"), true, quoteTokenProgram),
|
|
2723
2723
|
toTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, lavarageProgram.provider.publicKey, true, quoteTokenProgram),
|
|
2724
|
-
tokenProgram,
|
|
2725
|
-
fromTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, offer.account.nodeWallet, true,
|
|
2724
|
+
tokenProgram: quoteTokenProgram,
|
|
2725
|
+
fromTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, offer.account.nodeWallet, true, quoteTokenProgram)
|
|
2726
2726
|
}).remainingAccounts(partnerFeeRecipient && partnerFeeMarkupAsPkey ? [{
|
|
2727
|
-
pubkey: partnerFeeRecipient,
|
|
2727
|
+
pubkey: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, partnerFeeRecipient, false, quoteTokenProgram),
|
|
2728
2728
|
isSigner: false,
|
|
2729
2729
|
isWritable: true
|
|
2730
2730
|
}, {
|
|
@@ -2768,7 +2768,7 @@ var createTpDelegate = (lavarageProgram, position, tpPrice, tpTolerence, prioFee
|
|
|
2768
2768
|
delegatedAccount: position.publicKey,
|
|
2769
2769
|
systemProgram: import_web3.SystemProgram.programId
|
|
2770
2770
|
}).remainingAccounts(partnerFeeRecipient ? [{
|
|
2771
|
-
pubkey: quoteToken.toBase58() == "So11111111111111111111111111111111111111112" ? partnerFeeRecipient : (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, partnerFeeRecipient,
|
|
2771
|
+
pubkey: quoteToken.toBase58() == "So11111111111111111111111111111111111111112" ? partnerFeeRecipient : (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, partnerFeeRecipient, false),
|
|
2772
2772
|
isSigner: false,
|
|
2773
2773
|
isWritable: true
|
|
2774
2774
|
}] : []).instruction();
|
|
@@ -2800,7 +2800,7 @@ var modifyTpDelegate = (lavarageProgram, position, tpPrice, tpTolerence, prioFee
|
|
|
2800
2800
|
delegatedAccount: position.publicKey,
|
|
2801
2801
|
systemProgram: import_web3.SystemProgram.programId
|
|
2802
2802
|
}).remainingAccounts(partnerFeeRecipient ? [{
|
|
2803
|
-
pubkey: quoteToken.toBase58() == "So11111111111111111111111111111111111111112" ? partnerFeeRecipient : (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, partnerFeeRecipient,
|
|
2803
|
+
pubkey: quoteToken.toBase58() == "So11111111111111111111111111111111111111112" ? partnerFeeRecipient : (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, partnerFeeRecipient, false),
|
|
2804
2804
|
isSigner: false,
|
|
2805
2805
|
isWritable: true
|
|
2806
2806
|
}] : []).instruction();
|
|
@@ -3086,7 +3086,7 @@ var closeTradeV2 = (lavarageProgram, position, offer, jupInstruction, quoteToken
|
|
|
3086
3086
|
toTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, pool.account.nodeWallet, true, quoteTokenProgram),
|
|
3087
3087
|
mint: quoteToken
|
|
3088
3088
|
}).remainingAccounts(partnerFeeRecipient && partnerFeeMarkupAsPkey ? [{
|
|
3089
|
-
pubkey: partnerFeeRecipient,
|
|
3089
|
+
pubkey: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, partnerFeeRecipient, false, quoteTokenProgram),
|
|
3090
3090
|
isSigner: false,
|
|
3091
3091
|
isWritable: true
|
|
3092
3092
|
}, {
|