Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receivable E2E testing #374

Merged
merged 14 commits into from
Apr 15, 2024
Merged

Receivable E2E testing #374

merged 14 commits into from
Apr 15, 2024

Conversation

mliu
Copy link
Contributor

@mliu mliu commented Jan 11, 2024

No description provided.

Copy link

height bot commented Jan 11, 2024

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

scripts/deploy-local-test-pools.ts Outdated Show resolved Hide resolved
scripts/deploy-local-test-pools.ts Outdated Show resolved Hide resolved
@@ -17,7 +17,7 @@ task(
.setAction(async (taskArgs: { poolConfigAddr: string }, hre: HardhatRuntimeEnvironment) => {
let borrowerActive: SignerWithAddress;

[, , , , , , , , , , , , , borrowerActive] = await hre.ethers.getSigners();
[, , , , , , , , , , , , borrowerActive] = await hre.ethers.getSigners();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems very error prone. Can we take the length - 1th index of the array instead?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can create a helper function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think length - 1 really solves error proneness of this, which is that the index could always change if someone reorders the signers in the deploy script... We could add a function that takes the getSigners and returns an object so we don't need to rely on the position in the array?

shan-57blocks
shan-57blocks previously approved these changes Jan 11, 2024
@mliu mliu requested review from ljiatu and shan-57blocks February 2, 2024 20:58
await submitRedemptionRequestToTranche(hre, juniorTranche, evaluationAgent);
await submitRedemptionRequestToTranche(hre, seniorTranche, seniorLender);
// Submit redemption requests
await submitRedemptionRequestToTranche(hre, juniorTranche, juniorLender);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remind me if this is the final withdrawal after maturity? If so, we should update this to use the pool closure flow, i.e. closePool() then calling withdrawAfterPoolClosure().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is. I'll look into updating this logic.

@mliu mliu changed the title Receivable WIP updates Receivable E2E testing Mar 13, 2024
@mliu mliu merged commit 61ceeeb into develop Apr 15, 2024
5 checks passed
@mliu mliu deleted the receivable-wip branch April 15, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants