-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add liquidate margin test #598
Conversation
Notice that this is the same test as |
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.
Great!
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.
LGTM! Curious what was the motivation behind that test?
This comes from the idea of @daejunpark in #522, where we want to ensure that there is a computation to verify that, even with interest accrual, your borrow position will stay safe. This PR is more modest than testing all the possible functions after some time elapsed, but I think it captures most of the idea |
d87c630
This PR tests the computation to make sure that a borrow position is safe (if nothing changes) for a period
elapsed