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

VAL-143 Snapshot the pool on all loan payments #186

Merged
merged 5 commits into from
Feb 17, 2023
Merged

VAL-143 Snapshot the pool on all loan payments #186

merged 5 commits into from
Feb 17, 2023

Conversation

ams9198
Copy link
Contributor

@ams9198 ams9198 commented Feb 17, 2023

No description provided.

@@ -191,11 +194,15 @@ describe("Business Scenario 1", () => {
);
await loanOne.connect(borrowerOne).completeFullPayment();

// +14 days, request full withdrawal at start of 2nd window
await advanceToDay(startTime, 14);
// +15 days, request full withdrawal at start of 2nd window
Copy link
Contributor Author

@ams9198 ams9198 Feb 17, 2023

Choose a reason for hiding this comment

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

This was actually a bug with the existing test -- +14 days didn't actually advance us to the expected window (the next one). This only became apparent with the loan payments triggering a snapshot.

@@ -241,8 +241,8 @@ describe("Permissioned Business Scenario 1", () => {
);
await loanOne.connect(borrowerOne).completeFullPayment();

// +14 days, request full withdrawal at start of 2nd window
await advanceToDay(startTime, 14);
// +15 days, request full withdrawal at start of 2nd window
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same comment as above.

@@ -263,8 +263,8 @@ describe("Permissioned Business Scenario 1", () => {
);
await loanTwo.connect(borrowerTwo).completeFullPayment();

// Request window is 14 days, so fast forward to +28 days to claim in next window
await advanceToDay(startTime, 28);
// Request window is 14 days, so fast forward to +29 days to claim in next window
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same comment as above

@ams9198 ams9198 merged commit cc1ef9d into circlefin:master Feb 17, 2023
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.

2 participants