@jup-ag/lend 0.1.5 → 0.1.6
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/earn/index.mjs +6 -3
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/earn/index.mjs
CHANGED
|
@@ -28,9 +28,12 @@ const getOrCreateATAInstruction = async (owner, mint, connection) => {
|
|
|
28
28
|
// allowOwnerOffCurve - supports PDA owners
|
|
29
29
|
tokenProgram
|
|
30
30
|
);
|
|
31
|
-
const account = await getAccount(
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
const account = await getAccount(
|
|
32
|
+
connection,
|
|
33
|
+
associatedTokenAccount,
|
|
34
|
+
"confirmed",
|
|
35
|
+
tokenProgram
|
|
36
|
+
).catch(() => null);
|
|
34
37
|
const ixs = [];
|
|
35
38
|
if (!account) {
|
|
36
39
|
ixs.push(
|
package/dist/index.mjs
CHANGED