@huma-finance/widgets 0.0.63-beta.757 → 0.0.63-beta.761
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
CHANGED
|
@@ -8971,19 +8971,6 @@ function Transfer$6(_ref) {
|
|
|
8971
8971
|
}).transaction();
|
|
8972
8972
|
tx.add(createLenderAccountsTx);
|
|
8973
8973
|
}
|
|
8974
|
-
const depositTx = await program.methods.deposit(supplyBigNumber).accountsPartial({
|
|
8975
|
-
approvedLender,
|
|
8976
|
-
depositor: publicKey,
|
|
8977
|
-
poolConfig: poolInfo.poolConfig,
|
|
8978
|
-
underlyingMint: poolInfo.underlyingMint.address,
|
|
8979
|
-
trancheMint: selectedTranche === 'senior' ? poolInfo.seniorTrancheMint : poolInfo.juniorTrancheMint,
|
|
8980
|
-
poolUnderlyingToken: poolInfo.poolUnderlyingTokenAccount,
|
|
8981
|
-
depositorUnderlyingToken: underlyingTokenATA,
|
|
8982
|
-
depositorTrancheToken: selectedTranche === 'senior' ? seniorTrancheATA : juniorTrancheATA,
|
|
8983
|
-
humaConfig: poolInfo.humaConfig,
|
|
8984
|
-
underlyingTokenProgram: splToken.TOKEN_PROGRAM_ID
|
|
8985
|
-
}).transaction();
|
|
8986
|
-
tx.add(depositTx);
|
|
8987
8974
|
|
|
8988
8975
|
// Approve automatic redemptions
|
|
8989
8976
|
const sharesAmount = shared.convertToShares(selectedTranche === 'senior' ? BigInt((_poolState$seniorTran = poolState.seniorTrancheAssets) !== null && _poolState$seniorTran !== void 0 ? _poolState$seniorTran : 0) : BigInt((_poolState$juniorTran = poolState.juniorTrancheAssets) !== null && _poolState$juniorTran !== void 0 ? _poolState$juniorTran : 0), selectedTranche === 'senior' ? BigInt((_seniorTrancheMintSup = seniorTrancheMintSupply === null || seniorTrancheMintSupply === void 0 ? void 0 : seniorTrancheMintSupply.toString()) !== null && _seniorTrancheMintSup !== void 0 ? _seniorTrancheMintSup : 0) : BigInt((_juniorTrancheMintSup = juniorTrancheMintSupply === null || juniorTrancheMintSupply === void 0 ? void 0 : juniorTrancheMintSupply.toString()) !== null && _juniorTrancheMintSup !== void 0 ? _juniorTrancheMintSup : 0), BigInt(supplyBigNumber.toString()));
|
|
@@ -8997,6 +8984,19 @@ function Transfer$6(_ref) {
|
|
|
8997
8984
|
poolInfo.trancheDecimals, undefined,
|
|
8998
8985
|
// multiSigners
|
|
8999
8986
|
splToken.TOKEN_2022_PROGRAM_ID));
|
|
8987
|
+
const depositTx = await program.methods.deposit(supplyBigNumber).accountsPartial({
|
|
8988
|
+
approvedLender,
|
|
8989
|
+
depositor: publicKey,
|
|
8990
|
+
poolConfig: poolInfo.poolConfig,
|
|
8991
|
+
underlyingMint: poolInfo.underlyingMint.address,
|
|
8992
|
+
trancheMint: selectedTranche === 'senior' ? poolInfo.seniorTrancheMint : poolInfo.juniorTrancheMint,
|
|
8993
|
+
poolUnderlyingToken: poolInfo.poolUnderlyingTokenAccount,
|
|
8994
|
+
depositorUnderlyingToken: underlyingTokenATA,
|
|
8995
|
+
depositorTrancheToken: selectedTranche === 'senior' ? seniorTrancheATA : juniorTrancheATA,
|
|
8996
|
+
humaConfig: poolInfo.humaConfig,
|
|
8997
|
+
underlyingTokenProgram: splToken.TOKEN_PROGRAM_ID
|
|
8998
|
+
}).transaction();
|
|
8999
|
+
tx.add(depositTx);
|
|
9000
9000
|
setTransaction(tx);
|
|
9001
9001
|
}
|
|
9002
9002
|
getTx();
|
|
@@ -9428,8 +9428,8 @@ function Transfer$5(_ref) {
|
|
|
9428
9428
|
poolSeniorTrancheATA,
|
|
9429
9429
|
poolJuniorTrancheATA
|
|
9430
9430
|
} = shared.getTokenAccounts(poolInfo, publicKey);
|
|
9431
|
-
const tx = await program.methods.addRedemptionRequest(redeemBN).accountsPartial({
|
|
9432
|
-
|
|
9431
|
+
const tx = await program.methods.addRedemptionRequest(publicKey, redeemBN).accountsPartial({
|
|
9432
|
+
signer: publicKey,
|
|
9433
9433
|
humaConfig: poolInfo.humaConfig,
|
|
9434
9434
|
poolConfig: poolInfo.poolConfig,
|
|
9435
9435
|
trancheMint: selectedTranche === 'senior' ? poolInfo.seniorTrancheMint : poolInfo.juniorTrancheMint,
|