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

new test for closing trades after maturity #196

Merged
merged 6 commits into from
Oct 2, 2024
Merged

Conversation

dpaiton
Copy link
Contributor

@dpaiton dpaiton commented Sep 23, 2024

Resolved Issues

#197

Description

This PR adds a test to ensure that the calculate_close_long and calculate_close_short function correctly handle proceeds going to LPs after maturity.

@dpaiton dpaiton changed the title new test for closing long after maturity new test for closing trades after maturity Sep 24, 2024
@dpaiton dpaiton marked this pull request as ready for review September 24, 2024 17:14
@dpaiton dpaiton linked an issue Sep 24, 2024 that may be closed by this pull request
@dpaiton dpaiton requested a review from MazyGio September 30, 2024 16:10
Copy link
Contributor

@MazyGio MazyGio left a comment

Choose a reason for hiding this comment

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

Looks great! Good test, something similar tripped us up for a bit during testnet

@dpaiton dpaiton merged commit 5dca80f into main Oct 2, 2024
8 checks passed
@dpaiton dpaiton deleted the dpaiton/close-long-test branch October 2, 2024 00:40
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.

SDK calc_close_* not discounting zombie interest
2 participants