@huma-finance/widgets 0.0.69 → 0.0.70-beta.867

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
@@ -6491,6 +6491,7 @@ function ApproveLenderBase(_ref) {
6491
6491
  chainType,
6492
6492
  networkType,
6493
6493
  chainSpecificData,
6494
+ documentHash,
6494
6495
  changeTranche
6495
6496
  } = _ref;
6496
6497
  const isDev = checkIsDev();
@@ -6504,7 +6505,7 @@ function ApproveLenderBase(_ref) {
6504
6505
  while (tryAttempts > 0) {
6505
6506
  try {
6506
6507
  tryAttempts -= 1;
6507
- await IdentityServiceV2.approveLender(networkType, account, chainId, trancheVault, isDev, chainSpecificData);
6508
+ await IdentityServiceV2.approveLender(networkType, account, chainId, trancheVault, documentHash, isDev, chainSpecificData);
6508
6509
  tryAttempts = 0;
6509
6510
  } catch (e) {
6510
6511
  if (tryAttempts === 0) {
@@ -6517,7 +6518,7 @@ function ApproveLenderBase(_ref) {
6517
6518
  }
6518
6519
  }
6519
6520
  }
6520
- }, [account, chainId, chainSpecificData, dispatch, isDev, networkType]);
6521
+ }, [account, chainId, chainSpecificData, dispatch, documentHash, isDev, networkType]);
6521
6522
  useEffect(() => {
6522
6523
  const approveLenderAsync = async () => {
6523
6524
  if (account && chainId) {
@@ -6544,6 +6545,7 @@ function ApproveLender$1(_ref) {
6544
6545
  let {
6545
6546
  poolInfo,
6546
6547
  isUniTranche,
6548
+ documentHash,
6547
6549
  changeTranche
6548
6550
  } = _ref;
6549
6551
  const solanaChainInfo = SOLANA_CHAIN_INFO[poolInfo.chainId];
@@ -6557,6 +6559,7 @@ function ApproveLender$1(_ref) {
6557
6559
  huma_program_id: solanaChainInfo.poolProgram,
6558
6560
  pool_id: poolInfo.poolId
6559
6561
  },
6562
+ documentHash: documentHash,
6560
6563
  changeTranche: changeTranche
6561
6564
  });
6562
6565
  }
@@ -6963,6 +6966,7 @@ function SolanaLendSupply(_ref) {
6963
6966
  }), step === WIDGET_STEP.ApproveLender && jsx(ApproveLender$1, {
6964
6967
  poolInfo: poolInfo,
6965
6968
  isUniTranche: !!isUniTranche,
6969
+ documentHash: documentHash,
6966
6970
  changeTranche: setSelectedTranche
6967
6971
  }), step === WIDGET_STEP.ChooseTranche && jsx(ChooseTranche$2, {
6968
6972
  poolUnderlyingToken: poolInfo.underlyingMint,
@@ -8587,12 +8591,14 @@ function ApproveLender(_ref) {
8587
8591
  let {
8588
8592
  poolInfo,
8589
8593
  isUniTranche,
8594
+ documentHash,
8590
8595
  changeTranche
8591
8596
  } = _ref;
8592
8597
  return jsx(ApproveLenderBase, {
8593
8598
  juniorTrancheVault: poolInfo.juniorTrancheVault,
8594
8599
  seniorTrancheVault: poolInfo.seniorTrancheVault,
8595
8600
  isUniTranche: isUniTranche,
8601
+ documentHash: documentHash,
8596
8602
  chainType: CHAIN_TYPE.EVM,
8597
8603
  networkType: getEvmNetworkType(poolInfo.chainId),
8598
8604
  changeTranche: changeTranche
@@ -8926,6 +8932,7 @@ function LendSupplyV2(_ref) {
8926
8932
  }), step === WIDGET_STEP.ApproveLender && jsx(ApproveLender, {
8927
8933
  poolInfo: poolInfo,
8928
8934
  isUniTranche: isUniTranche,
8935
+ documentHash: documentHash,
8929
8936
  changeTranche: setSelectedTranche
8930
8937
  }), step === WIDGET_STEP.ChooseAmount && jsx(ChooseAmount$4, {
8931
8938
  poolInfo: poolInfo,