@huma-finance/widgets 0.0.79 → 0.0.80-beta.1079
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
CHANGED
|
@@ -184229,7 +184229,15 @@ function Transfer$9({
|
|
|
184229
184229
|
)
|
|
184230
184230
|
));
|
|
184231
184231
|
}
|
|
184232
|
-
if (
|
|
184232
|
+
if (yr.add(
|
|
184233
|
+
createAssociatedTokenAccountIdempotentInstruction(
|
|
184234
|
+
cr,
|
|
184235
|
+
Rr,
|
|
184236
|
+
cr,
|
|
184237
|
+
new PublicKey$2(Cr),
|
|
184238
|
+
TOKEN_2022_PROGRAM_ID
|
|
184239
|
+
)
|
|
184240
|
+
), ur) {
|
|
184233
184241
|
const Mr = await dr.methods.withdrawAfterPoolClosure().accountsPartial({
|
|
184234
184242
|
lender: cr,
|
|
184235
184243
|
humaConfig: ar.humaConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huma-finance/widgets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.80-beta.1079+8d198fb",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"@ethersproject/contracts": "^5.7.0",
|
|
23
23
|
"@ethersproject/experimental": "^5.7.0",
|
|
24
24
|
"@ethersproject/units": "^5.6.0",
|
|
25
|
-
"@huma-finance/sdk": "^0.0.
|
|
26
|
-
"@huma-finance/shared": "^0.0.
|
|
27
|
-
"@huma-finance/web-shared": "^0.0.
|
|
25
|
+
"@huma-finance/sdk": "^0.0.80-beta.1079+8d198fb",
|
|
26
|
+
"@huma-finance/shared": "^0.0.80-beta.1079+8d198fb",
|
|
27
|
+
"@huma-finance/web-shared": "^0.0.80-beta.1079+8d198fb",
|
|
28
28
|
"@mui/x-date-pickers": "^5.0.7",
|
|
29
29
|
"@notifi-network/notifi-frontend-client": "^1.1.2",
|
|
30
30
|
"@notifi-network/notifi-react": "^1.1.2",
|
|
@@ -190,5 +190,5 @@
|
|
|
190
190
|
"optionalDependencies": {
|
|
191
191
|
"encoding": "^0.1.13"
|
|
192
192
|
},
|
|
193
|
-
"gitHead": "
|
|
193
|
+
"gitHead": "8d198fb139436a4c983f7d5b845ab446445072cd"
|
|
194
194
|
}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
import { useHumaProgram } from '@huma-finance/web-shared'
|
|
7
7
|
import {
|
|
8
8
|
ASSOCIATED_TOKEN_PROGRAM_ID,
|
|
9
|
+
createAssociatedTokenAccountIdempotentInstruction,
|
|
9
10
|
createAssociatedTokenAccountInstruction,
|
|
10
11
|
getAccount,
|
|
11
12
|
TOKEN_2022_PROGRAM_ID,
|
|
@@ -89,6 +90,16 @@ export function Transfer({
|
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
|
|
93
|
+
tx.add(
|
|
94
|
+
createAssociatedTokenAccountIdempotentInstruction(
|
|
95
|
+
publicKey,
|
|
96
|
+
lenderTrancheToken,
|
|
97
|
+
publicKey,
|
|
98
|
+
new PublicKey(trancheMint),
|
|
99
|
+
TOKEN_2022_PROGRAM_ID,
|
|
100
|
+
),
|
|
101
|
+
)
|
|
102
|
+
|
|
92
103
|
if (!poolIsClosed) {
|
|
93
104
|
const disburseTx = await program.methods
|
|
94
105
|
.disburse()
|