@huma-finance/widgets 0.0.59-beta.480 → 0.0.59-beta.482
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/API.md +1 -0
- package/dist/cjs/index.cjs +363 -76
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +364 -78
- package/dist/index.js.map +1 -1
- package/package.json +6 -4
- package/src/components/Lend/supplyV2/2-Evaluation.tsx +20 -329
- package/src/components/Lend/supplyV2/3-ChooseAmount.tsx +3 -9
- package/src/components/Lend/supplyV2/components/PersonaEvaluation.tsx +361 -0
- package/src/components/Lend/supplyV2/components/SecuritizeEvaluation.tsx +345 -0
- package/src/components/Lend/supplyV2/index.tsx +37 -4
- package/src/components/humaModal/HumaModal.tsx +1 -0
- package/src/store/widgets.reducers.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -184,11 +184,13 @@ interface LendSupplyProps {
|
|
|
184
184
|
* Lend pool supply props
|
|
185
185
|
* @typedef {Object} LendSupplyPropsV2
|
|
186
186
|
* @property {POOL_NAME} poolName The name of the pool.
|
|
187
|
+
* @property {boolean} shouldApproveAll To check if should approve both tranches.
|
|
187
188
|
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
188
189
|
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
189
190
|
*/
|
|
190
191
|
interface LendSupplyPropsV2 {
|
|
191
192
|
poolName: keyof typeof POOL_NAME;
|
|
193
|
+
shouldApproveAll?: boolean;
|
|
192
194
|
handleClose: () => void;
|
|
193
195
|
handleSuccess?: (blockNumber?: number) => void;
|
|
194
196
|
}
|