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
[CT-856] Add order replacement to fix vault causing orderbook flickering #1602
[CT-856] Add order replacement to fix vault causing orderbook flickering #1602
Changes from 54 commits
2196eb5
53f021b
feddcca
e087c19
557be43
751bae7
5f3e64e
b534c21
92e19d3
078b321
83cc892
fc81475
a35fe85
ff5df30
a114fac
0ae3f40
adddd22
be7e698
1f18e20
31acb76
176d37c
062ff0d
c43565a
4d13eb5
c1388bb
23f0c10
6ea9d26
6f0ab7d
66a55c9
cf1f888
fe03736
7a2afea
8dee4c9
53fe081
915e31f
e4bb2dd
15061e2
25a445e
1489677
b332cd9
e99086c
366e7de
747ffaa
4f0415e
a61803a
aff6855
4ca5ed4
060ba2e
27641a4
2993902
e2f6aa1
ee19948
dbb28d8
5c6f5ba
2be3558
61022c6
4e6c761
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.
Add documentation for
IndexerEventManager
.The addition of
IndexerEventManager
to theApp
struct is significant, especially given its role in event management. It would be beneficial for maintainability and clarity to add a comment explaining its purpose and usage in the context of the application.Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
The logic for handling internal and external orders is well-implemented. Consider adding more detailed logging for the steps involved, especially around the conditions that lead to early returns.
Also applies to: 118-146
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.
remove new line
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.
@dydxwill, the new line you mentioned has been noted for removal. If there's anything else you need, feel free to let me know!
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.
Consider adding metrics or more detailed logging for vaults that are skipped.
This could provide better visibility into the operation of this function, especially when diagnosing issues in production environments.
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.
The logic for refreshing CLOB orders is complex but correctly handles the cancellation and placement of orders. Consider adding more detailed logging for the steps involved, especially around the conditions that lead to early returns.
Also applies to: 107-159
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.
as discussed above, might be good to check whether
i
is a valid indexThere 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.
what would happen in ender/vulcan/socks if we simplify this clause to always send
OrderReplacementEvent
?