@huma-finance/widgets 0.0.77-beta.1014 → 0.0.77-beta.1018
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
|
@@ -182934,9 +182934,9 @@ function Transfer$9({
|
|
|
182934
182934
|
underlyingTokenProgram: TOKEN_PROGRAM_ID,
|
|
182935
182935
|
trancheTokenProgram: TOKEN_2022_PROGRAM_ID
|
|
182936
182936
|
}).transaction();
|
|
182937
|
-
yr.add(Mr), yr.instructions.unshift(
|
|
182937
|
+
yr.add(Mr), Pr && yr.instructions.unshift(
|
|
182938
182938
|
ComputeBudgetProgram$1.setComputeUnitLimit({
|
|
182939
|
-
units:
|
|
182939
|
+
units: 145e3
|
|
182940
182940
|
})
|
|
182941
182941
|
);
|
|
182942
182942
|
} else {
|
|
@@ -182950,9 +182950,9 @@ function Transfer$9({
|
|
|
182950
182950
|
lenderUnderlyingToken: Sr,
|
|
182951
182951
|
tokenProgram: TOKEN_PROGRAM_ID
|
|
182952
182952
|
}).transaction();
|
|
182953
|
-
yr.add(Mr), yr.instructions.unshift(
|
|
182953
|
+
yr.add(Mr), Pr && yr.instructions.unshift(
|
|
182954
182954
|
ComputeBudgetProgram$1.setComputeUnitLimit({
|
|
182955
|
-
units:
|
|
182955
|
+
units: 105e3
|
|
182956
182956
|
})
|
|
182957
182957
|
);
|
|
182958
182958
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huma-finance/widgets",
|
|
3
|
-
"version": "0.0.77-beta.
|
|
3
|
+
"version": "0.0.77-beta.1018+9a1f291",
|
|
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.77-beta.
|
|
26
|
-
"@huma-finance/shared": "^0.0.77-beta.
|
|
27
|
-
"@huma-finance/web-shared": "^0.0.77-beta.
|
|
25
|
+
"@huma-finance/sdk": "^0.0.77-beta.1018+9a1f291",
|
|
26
|
+
"@huma-finance/shared": "^0.0.77-beta.1018+9a1f291",
|
|
27
|
+
"@huma-finance/web-shared": "^0.0.77-beta.1018+9a1f291",
|
|
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": "9a1f291759a73d0577826594d514d010bea0c8c8"
|
|
194
194
|
}
|
|
@@ -105,11 +105,13 @@ export function Transfer({
|
|
|
105
105
|
.transaction()
|
|
106
106
|
tx.add(disburseTx)
|
|
107
107
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
if (createdAccounts) {
|
|
109
|
+
tx.instructions.unshift(
|
|
110
|
+
ComputeBudgetProgram.setComputeUnitLimit({
|
|
111
|
+
units: 105_000,
|
|
112
|
+
}),
|
|
113
|
+
)
|
|
114
|
+
}
|
|
113
115
|
} else {
|
|
114
116
|
const withdrawAfterPoolClosureTx = await program.methods
|
|
115
117
|
.withdrawAfterPoolClosure()
|
|
@@ -128,11 +130,13 @@ export function Transfer({
|
|
|
128
130
|
.transaction()
|
|
129
131
|
tx.add(withdrawAfterPoolClosureTx)
|
|
130
132
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
if (createdAccounts) {
|
|
134
|
+
tx.instructions.unshift(
|
|
135
|
+
ComputeBudgetProgram.setComputeUnitLimit({
|
|
136
|
+
units: 145_000,
|
|
137
|
+
}),
|
|
138
|
+
)
|
|
139
|
+
}
|
|
136
140
|
}
|
|
137
141
|
|
|
138
142
|
setTransaction(tx)
|