Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: aggregate in the same slot #394
feat: aggregate in the same slot #394
Changes from all commits
7523aa2
9c1ad0c
ce47715
2a2e2d8
e88c187
2216b04
29403a9
3dfbc75
a756c22
8922a9c
760f5eb
dc2f0e7
89a8e7a
59359f2
b24cb44
cb96cca
c0ddc28
1605d94
9b1b7e0
ddfc4ab
e4c585e
6bb795c
18912de
9725869
26a07d5
42aadde
97f9fdf
05b5519
5817b1d
72196d8
dc91c22
563e170
1f3eac9
1523216
4596c6e
11d6086
ac7508d
77cced8
178a750
caaecc1
5121d1d
b8f3484
f2c96f0
6bf147c
7e53f79
149dec4
0ff1061
6000143
eeccb2a
87ddfde
c976989
404f012
7aa7f94
144bf94
6b539db
5be3e09
458f143
49cf2b9
490e658
0d404c3
9c3a9a7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
valid_slot_
field doesn't make that much sense anymore after the change, should we deprecate itThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I think we can do it in a separate PR, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be more readable if you move the assignments for
prev_twap_
,prev_twac_
,prev_price_cumulative
to the block where you assignprev_slot_
,prev_price_
etc..There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm the reason why I moved it here is because it requires the aggregate to be updated before
twap
,twac
,prev_price_cumulative
, if I moved it up beforec_upd_aggregate
then this might be updated even if the aggregate didn't succeed