@huma-finance/widgets 0.0.62-beta.716 → 0.0.62-beta.718

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.
@@ -8789,7 +8789,6 @@ function Transfer$4(_ref) {
8789
8789
  const {
8790
8790
  publicKey
8791
8791
  } = walletAdapterReact.useWallet();
8792
- const sentinel = shared.getSentinelAddress(poolInfo.chainId);
8793
8792
  const {
8794
8793
  supplyAmount
8795
8794
  } = useAppSelector(selectWidgetState);
@@ -8860,7 +8859,7 @@ function Transfer$4(_ref) {
8860
8859
 
8861
8860
  // Approve automatic redemptions
8862
8861
  const sharesAmount = shared.convertToShares(selectedTranche === 'senior' ? new anchor.BN((_poolState$seniorTran = poolState.seniorTrancheAssets) !== null && _poolState$seniorTran !== void 0 ? _poolState$seniorTran : 0) : new anchor.BN((_poolState$juniorTran = poolState.juniorTrancheAssets) !== null && _poolState$juniorTran !== void 0 ? _poolState$juniorTran : 0), selectedTranche === 'senior' ? seniorTrancheMintSupply !== null && seniorTrancheMintSupply !== void 0 ? seniorTrancheMintSupply : new anchor.BN(0) : juniorTrancheMintSupply !== null && juniorTrancheMintSupply !== void 0 ? juniorTrancheMintSupply : new anchor.BN(0), supplyBigNumber);
8863
- tx.add(splToken.createApproveCheckedInstruction(selectedTranche === 'senior' ? seniorTrancheATA : juniorTrancheATA, new web3_js.PublicKey(selectedTranche === 'senior' ? poolInfo.seniorTrancheMint : poolInfo.juniorTrancheMint), new web3_js.PublicKey(sentinel),
8862
+ tx.add(splToken.createApproveCheckedInstruction(selectedTranche === 'senior' ? seniorTrancheATA : juniorTrancheATA, new web3_js.PublicKey(selectedTranche === 'senior' ? poolInfo.seniorTrancheMint : poolInfo.juniorTrancheMint), new web3_js.PublicKey(poolInfo.poolAuthority),
8864
8863
  // delegate
8865
8864
  publicKey,
8866
8865
  // owner of the wallet
@@ -8872,7 +8871,7 @@ function Transfer$4(_ref) {
8872
8871
  setTransaction(tx);
8873
8872
  }
8874
8873
  getTx();
8875
- }, [isLoadingLenderAccounts, juniorLenderApprovedAccountPDA, juniorLenderStateAccount, juniorTrancheMintSupply, poolInfo, poolState.juniorTrancheAssets, poolState.seniorTrancheAssets, program.methods, publicKey, selectedTranche, seniorLenderApprovedAccountPDA, seniorLenderStateAccount, seniorTrancheMintSupply, sentinel, supplyBigNumber, transaction]);
8874
+ }, [isLoadingLenderAccounts, juniorLenderApprovedAccountPDA, juniorLenderStateAccount, juniorTrancheMintSupply, poolInfo, poolState.juniorTrancheAssets, poolState.seniorTrancheAssets, program.methods, publicKey, selectedTranche, seniorLenderApprovedAccountPDA, seniorLenderStateAccount, seniorTrancheMintSupply, supplyBigNumber, transaction]);
8876
8875
  if (isLoadingLenderAccounts) {
8877
8876
  return jsxRuntime.jsx(LoadingModal, {
8878
8877
  title: "Supply"