@lavarage/sdk 6.8.5 → 6.8.7
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/lending.ts +2 -2
- package/package.json +1 -1
package/lending.ts
CHANGED
|
@@ -293,7 +293,7 @@ export async function createOffer(
|
|
|
293
293
|
|
|
294
294
|
let nodeWalletAccount, nodeWalletSigner, createNodeWalletInstruction, nodeWalletPubKey;
|
|
295
295
|
|
|
296
|
-
if (params.
|
|
296
|
+
if (params.quoteMint === "So11111111111111111111111111111111111111112") {
|
|
297
297
|
const nodeWallets = await lavarageProgram.account.nodeWallet.all();
|
|
298
298
|
nodeWalletAccount = nodeWallets.find((wallet) =>
|
|
299
299
|
wallet.account.nodeOperator.equals(new PublicKey(params.poolOwner)),
|
|
@@ -312,7 +312,7 @@ export async function createOffer(
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
if (!nodeWalletAccount) {
|
|
315
|
+
if (!nodeWalletAccount?.account) {
|
|
316
316
|
// Determine if this is V2 based on mint (SOL = V1, others = V2)
|
|
317
317
|
const isSOL = params.quoteMint === "So11111111111111111111111111111111111111112";
|
|
318
318
|
|