-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
… to the proper withdraw period (as per the scenario spec)
@@ -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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above
No description provided.