@huma-finance/widgets 0.0.70-beta.865 → 0.0.70-beta.869
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/cjs/index.cjs +9 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/components/Lend/components/ApproveLenderBase.tsx +12 -1
- package/src/components/Lend/solanaSupply/2-ApproveLender.tsx +3 -0
- package/src/components/Lend/solanaSupply/index.tsx +1 -0
- package/src/components/Lend/supplyV2/3-ApproveLender.tsx +3 -0
- package/src/components/Lend/supplyV2/index.tsx +1 -0
package/dist/cjs/index.cjs
CHANGED
|
@@ -6508,6 +6508,7 @@ function ApproveLenderBase(_ref) {
|
|
|
6508
6508
|
chainType,
|
|
6509
6509
|
networkType,
|
|
6510
6510
|
chainSpecificData,
|
|
6511
|
+
documentHash,
|
|
6511
6512
|
changeTranche
|
|
6512
6513
|
} = _ref;
|
|
6513
6514
|
const isDev = shared.checkIsDev();
|
|
@@ -6521,7 +6522,7 @@ function ApproveLenderBase(_ref) {
|
|
|
6521
6522
|
while (tryAttempts > 0) {
|
|
6522
6523
|
try {
|
|
6523
6524
|
tryAttempts -= 1;
|
|
6524
|
-
await shared.IdentityServiceV2.approveLender(networkType, account, chainId, trancheVault, isDev, chainSpecificData);
|
|
6525
|
+
await shared.IdentityServiceV2.approveLender(networkType, account, chainId, trancheVault, documentHash, isDev, chainSpecificData);
|
|
6525
6526
|
tryAttempts = 0;
|
|
6526
6527
|
} catch (e) {
|
|
6527
6528
|
if (tryAttempts === 0) {
|
|
@@ -6534,7 +6535,7 @@ function ApproveLenderBase(_ref) {
|
|
|
6534
6535
|
}
|
|
6535
6536
|
}
|
|
6536
6537
|
}
|
|
6537
|
-
}, [account, chainId, chainSpecificData, dispatch, isDev, networkType]);
|
|
6538
|
+
}, [account, chainId, chainSpecificData, dispatch, documentHash, isDev, networkType]);
|
|
6538
6539
|
React.useEffect(() => {
|
|
6539
6540
|
const approveLenderAsync = async () => {
|
|
6540
6541
|
if (account && chainId) {
|
|
@@ -6561,6 +6562,7 @@ function ApproveLender$1(_ref) {
|
|
|
6561
6562
|
let {
|
|
6562
6563
|
poolInfo,
|
|
6563
6564
|
isUniTranche,
|
|
6565
|
+
documentHash,
|
|
6564
6566
|
changeTranche
|
|
6565
6567
|
} = _ref;
|
|
6566
6568
|
const solanaChainInfo = shared.SOLANA_CHAIN_INFO[poolInfo.chainId];
|
|
@@ -6574,6 +6576,7 @@ function ApproveLender$1(_ref) {
|
|
|
6574
6576
|
huma_program_id: solanaChainInfo.poolProgram,
|
|
6575
6577
|
pool_id: poolInfo.poolId
|
|
6576
6578
|
},
|
|
6579
|
+
documentHash: documentHash,
|
|
6577
6580
|
changeTranche: changeTranche
|
|
6578
6581
|
});
|
|
6579
6582
|
}
|
|
@@ -6980,6 +6983,7 @@ function SolanaLendSupply(_ref) {
|
|
|
6980
6983
|
}), step === WIDGET_STEP.ApproveLender && jsxRuntime.jsx(ApproveLender$1, {
|
|
6981
6984
|
poolInfo: poolInfo,
|
|
6982
6985
|
isUniTranche: !!isUniTranche,
|
|
6986
|
+
documentHash: documentHash,
|
|
6983
6987
|
changeTranche: setSelectedTranche
|
|
6984
6988
|
}), step === WIDGET_STEP.ChooseTranche && jsxRuntime.jsx(ChooseTranche$2, {
|
|
6985
6989
|
poolUnderlyingToken: poolInfo.underlyingMint,
|
|
@@ -8604,12 +8608,14 @@ function ApproveLender(_ref) {
|
|
|
8604
8608
|
let {
|
|
8605
8609
|
poolInfo,
|
|
8606
8610
|
isUniTranche,
|
|
8611
|
+
documentHash,
|
|
8607
8612
|
changeTranche
|
|
8608
8613
|
} = _ref;
|
|
8609
8614
|
return jsxRuntime.jsx(ApproveLenderBase, {
|
|
8610
8615
|
juniorTrancheVault: poolInfo.juniorTrancheVault,
|
|
8611
8616
|
seniorTrancheVault: poolInfo.seniorTrancheVault,
|
|
8612
8617
|
isUniTranche: isUniTranche,
|
|
8618
|
+
documentHash: documentHash,
|
|
8613
8619
|
chainType: shared.CHAIN_TYPE.EVM,
|
|
8614
8620
|
networkType: shared.getEvmNetworkType(poolInfo.chainId),
|
|
8615
8621
|
changeTranche: changeTranche
|
|
@@ -8943,6 +8949,7 @@ function LendSupplyV2(_ref) {
|
|
|
8943
8949
|
}), step === WIDGET_STEP.ApproveLender && jsxRuntime.jsx(ApproveLender, {
|
|
8944
8950
|
poolInfo: poolInfo,
|
|
8945
8951
|
isUniTranche: isUniTranche,
|
|
8952
|
+
documentHash: documentHash,
|
|
8946
8953
|
changeTranche: setSelectedTranche
|
|
8947
8954
|
}), step === WIDGET_STEP.ChooseAmount && jsxRuntime.jsx(ChooseAmount$4, {
|
|
8948
8955
|
poolInfo: poolInfo,
|