@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/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.mint === "So11111111111111111111111111111111111111112") {
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lavarage/sdk",
3
- "version": "6.8.5",
3
+ "version": "6.8.7",
4
4
  "description": "Lavarage SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",