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(TwabLib): remove one mload in oldestTwab #197

Merged

Conversation

PierrickGT
Copy link
Contributor

No description provided.

@@ -362,8 +361,8 @@ library TwabLib {
return
ObservationLib.Observation({
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm; this line should be using calculate next twab. Yeah?

Copy link
Contributor Author

@PierrickGT PierrickGT Oct 6, 2021

Choose a reason for hiding this comment

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

Not sure I understand. This is the function _computeNextTwab used across this file.

Copy link
Contributor

Choose a reason for hiding this comment

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

lol oh this is the function. my bad

@@ -362,8 +361,8 @@ library TwabLib {
return
ObservationLib.Observation({
Copy link
Contributor

Choose a reason for hiding this comment

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

lol oh this is the function. my bad

@PierrickGT PierrickGT merged commit d36195d into master Oct 6, 2021
@PierrickGT PierrickGT deleted the pool-1671-ticketoldesttwab-potential-optimization branch October 6, 2021 20:08
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.

2 participants