@lavarage/sdk 5.0.1 → 5.1.0
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/index.ts +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2910,7 +2910,7 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
2910
2910
|
feeTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, new import_web3.PublicKey("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF")),
|
|
2911
2911
|
toTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, lavarageProgram.provider.publicKey),
|
|
2912
2912
|
tokenProgram: import_spl_token.TOKEN_PROGRAM_ID,
|
|
2913
|
-
fromTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, offer.account.nodeWallet)
|
|
2913
|
+
fromTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, offer.account.nodeWallet, true)
|
|
2914
2914
|
}).remainingAccounts(partnerFeeRecipient ? [{
|
|
2915
2915
|
pubkey: partnerFeeRecipient,
|
|
2916
2916
|
isSigner: false,
|
|
@@ -3198,7 +3198,7 @@ var closeTradeV2 = (lavarageProgram, position, offer, jupInstruction, quoteToken
|
|
|
3198
3198
|
feeTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, new import_web3.PublicKey("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF")),
|
|
3199
3199
|
fromTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, lavarageProgram.provider.publicKey),
|
|
3200
3200
|
tokenProgram: import_spl_token.TOKEN_PROGRAM_ID,
|
|
3201
|
-
toTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, pool.account.nodeWallet),
|
|
3201
|
+
toTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, pool.account.nodeWallet, true),
|
|
3202
3202
|
mint: quoteToken
|
|
3203
3203
|
}).remainingAccounts(partnerFeeRecipient ? [{
|
|
3204
3204
|
pubkey: partnerFeeRecipient,
|
|
@@ -3217,7 +3217,7 @@ var closeTradeV2 = (lavarageProgram, position, offer, jupInstruction, quoteToken
|
|
|
3217
3217
|
feeTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, new import_web3.PublicKey("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF")),
|
|
3218
3218
|
fromTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, lavarageProgram.provider.publicKey),
|
|
3219
3219
|
tokenProgram: import_spl_token.TOKEN_PROGRAM_ID,
|
|
3220
|
-
toTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, pool.account.nodeWallet),
|
|
3220
|
+
toTokenAccount: (0, import_spl_token.getAssociatedTokenAddressSync)(quoteToken, pool.account.nodeWallet, true),
|
|
3221
3221
|
mint: quoteToken
|
|
3222
3222
|
}).remainingAccounts(partnerFeeRecipient ? [{
|
|
3223
3223
|
pubkey: partnerFeeRecipient,
|