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: remove unnecessary fresh price filtering #103

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

ali-bahjati
Copy link
Collaborator

@ali-bahjati ali-bahjati commented Dec 15, 2023

This change removes a check in the code that does not allow multiple updates within the same timestamp (second based) pass through. last_info.timestamp is always less than or equal to info.timestamp. So, this condition last_info.timestamp < info.timestamp filters newer updates in the same timestamp and essentially caps our publishing frequency to 1s. It was intended to work for Solana but the publishing frequency itself takes care of it. This change might result in increased Sol burn but the action to reduce it should be reducing the frequency. Please note that in some filterings after, the same update prices are ignored so most of the fee savings should remain there.

This change removes a check in the code that does not allow multiple
updates within the same timestamp to passthrough. `last_info.timestamp`
is always less than or equal to `info.timestamp`. So, this condition
`last_info.timestamp < info.timestamp` filters newer updates in the same
timestamp and essentially caps our publishing frequency to 1s. It was
intended to work for Solana but the publishing frequency itself takes
care of it. This change might result in increased Sol burn but the
actions to reduce it should be reducing the frequency. Please note that
in some filterings after, the same update prices are ignored so most of
the fee savings should remain there.
@ali-bahjati ali-bahjati merged commit f08a52a into main Dec 15, 2023
2 checks passed
@ali-bahjati ali-bahjati deleted the fix/remove-bad-filter branch December 15, 2023 16:28
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