@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/dist/index.js
CHANGED
|
@@ -1281,7 +1281,7 @@ function withdrawFunds(lavarageProgram, params) {
|
|
|
1281
1281
|
function createOffer(lavarageProgram, params) {
|
|
1282
1282
|
return __async(this, null, function* () {
|
|
1283
1283
|
let nodeWalletAccount, nodeWalletSigner, createNodeWalletInstruction, nodeWalletPubKey;
|
|
1284
|
-
if (params.
|
|
1284
|
+
if (params.quoteMint === "So11111111111111111111111111111111111111112") {
|
|
1285
1285
|
const nodeWallets = yield lavarageProgram.account.nodeWallet.all();
|
|
1286
1286
|
nodeWalletAccount = nodeWallets.find(
|
|
1287
1287
|
(wallet) => wallet.account.nodeOperator.equals(new import_web3.PublicKey(params.poolOwner))
|
|
@@ -1299,7 +1299,7 @@ function createOffer(lavarageProgram, params) {
|
|
|
1299
1299
|
};
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
|
-
if (!nodeWalletAccount) {
|
|
1302
|
+
if (!(nodeWalletAccount == null ? void 0 : nodeWalletAccount.account)) {
|
|
1303
1303
|
const isSOL = params.quoteMint === "So11111111111111111111111111111111111111112";
|
|
1304
1304
|
const {
|
|
1305
1305
|
instruction: instruction2,
|