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

fix: end timestamp when span not 0 #165

Merged
merged 1 commit into from
Sep 5, 2023
Merged

Conversation

mfw78
Copy link
Collaborator

@mfw78 mfw78 commented Sep 5, 2023

This PR:

  1. Optimises the end timestamp for TWAPs when span != 0 (ie. durationType != AUTO).
  2. Closes twap order may expire earlier if span is set #164

@mfw78 mfw78 requested a review from anxolin September 5, 2023 11:24
@mfw78 mfw78 self-assigned this Sep 5, 2023
Copy link
Contributor

@alfetopito alfetopito left a comment

Choose a reason for hiding this comment

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

Should we have a unit test for this?

@mfw78
Copy link
Collaborator Author

mfw78 commented Sep 5, 2023

Should we have a unit test for this?

I thought about this and thought that unit tests when dealing with this math may be more suitable to implement at the same time as some of the tests forthcoming mentioned in comments.

@mfw78 mfw78 merged commit a31aff4 into poll-validate Sep 5, 2023
5 of 8 checks passed
@mfw78 mfw78 deleted the fix-span-endtimestamp branch September 5, 2023 12:07
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants