@lavarage/sdk 7.5.3 → 7.5.4
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/index.ts +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5416,7 +5416,7 @@ var borrowV2 = (lavarageProgram, offer, marginSOL, leverage, randomSeed, quoteTo
|
|
|
5416
5416
|
});
|
|
5417
5417
|
var openTradeV1 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage, randomSeed, tokenProgram, partnerFeeRecipient, partnerFeeMarkup, computeBudgetMicroLamports, platformFeeRecipient, splitTransactions, discountBps, referralBps) => __async(void 0, null, function* () {
|
|
5418
5418
|
let partnerFeeMarkupAsPkey;
|
|
5419
|
-
const referralVaultProgram = new Program2(IDL, REFFERAL_VAULT_PROGRAM_ID);
|
|
5419
|
+
const referralVaultProgram = new Program2(IDL, REFFERAL_VAULT_PROGRAM_ID, lavarageProgram.provider);
|
|
5420
5420
|
if (partnerFeeMarkup) {
|
|
5421
5421
|
const feeBuffer = Buffer.alloc(8);
|
|
5422
5422
|
feeBuffer.writeBigUInt64LE(BigInt(partnerFeeMarkup));
|
|
@@ -5630,7 +5630,7 @@ var openTradeV1 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
5630
5630
|
});
|
|
5631
5631
|
var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage, randomSeed, quoteToken, tokenProgram, partnerFeeRecipient, partnerFeeMarkup, computeBudgetMicroLamports, platformFeeRecipient, splitTransactions, discountBps, referralBps) => __async(void 0, null, function* () {
|
|
5632
5632
|
let partnerFeeMarkupAsPkey;
|
|
5633
|
-
const referralVaultProgram = new Program2(IDL, REFFERAL_VAULT_PROGRAM_ID);
|
|
5633
|
+
const referralVaultProgram = new Program2(IDL, REFFERAL_VAULT_PROGRAM_ID, lavarageProgram.provider);
|
|
5634
5634
|
if (partnerFeeMarkup) {
|
|
5635
5635
|
const feeBuffer = Buffer.alloc(8);
|
|
5636
5636
|
feeBuffer.writeBigUInt64LE(BigInt(partnerFeeMarkup));
|