Skip to content

Decay liquidity history buckets appropriately #2530

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

Closed
wants to merge 1 commit into from

Conversation

jkczyz
Copy link
Contributor

@jkczyz jkczyz commented Aug 27, 2023

e448686 changed the procedure to calling update_history_buckets such that the last_updated time may have had been modified already. Thus, the history buckets were not actually decayed inside calls to update_history_buckets. Fix this by separating buckets decaying from updating.

e448686 changed the procedure to
calling update_history_buckets such that the last_updated time may have
had been modified already. Thus, the history buckets were not actually
decayed inside calls to update_history_buckets. Fix this by separating
buckets decaying from updating.
@tnull
Copy link
Contributor

tnull commented Aug 28, 2023

This unfortunately needs a rebase.

@jkczyz
Copy link
Contributor Author

jkczyz commented Aug 28, 2023

Yup, also I'm not positive it works in the case where the the liquidity balance is not updated. We'd be adding a datapoint to the history buckets, but to un-decayed data without modifying last_updated. Need to re-familiarize myself with how the historical data works.

@TheBlueMatt
Copy link
Collaborator

Alternatively fixed by #2656

@TheBlueMatt
Copy link
Collaborator

#2656 was merged.

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.

3 participants