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

test(twap): add overflow tests for geometric TWAP #3540

Closed
p0mvn opened this issue Nov 27, 2022 · 0 comments · Fixed by #3809
Closed

test(twap): add overflow tests for geometric TWAP #3540

p0mvn opened this issue Nov 27, 2022 · 0 comments · Fixed by #3809

Comments

@p0mvn
Copy link
Member

p0mvn commented Nov 27, 2022

Background

Geometric TWAP needs overflow tests here

Suggested Design

Add potentially overflowing tests with:

  • max spot price
  • large time delta
    • 2 days
    • 100 days
  • both

If math functions panic, identify and document the maximum values at which the tests do not panic.

Acceptance Criteria

  • requested tests added
  • if panics, occur find the maximum values that do not and create a follow-up issue to investigate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant