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

bug: OrderEventLabel::Traded does not get stored reliably #2265

Closed
MartinquaXD opened this issue Jan 11, 2024 · 1 comment
Closed

bug: OrderEventLabel::Traded does not get stored reliably #2265

MartinquaXD opened this issue Jan 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@MartinquaXD
Copy link
Contributor

MartinquaXD commented Jan 11, 2024

Problem

Currently we store OrderEventLabel::Traded after the autopilot's /settle call returned successfully.
But it's possible that the call times out or the called driver has some other issue which would result in the Traded event not being stored although the order was settled.

Impact

This has no impact on the user because the order events labels are just for debugging purposes but it can show false negatives in the Time to Happy Moo SLI dashboard that analyzes this data.

To reproduce

Probably enough to use an existing e2e test that settles an order with a temporary patch to the driver that returns an error after the /settle handler saw the successfully submitted tx.

Expected behaviour

We should have a Traded event even if the /settle call returned some error if the order was in fact traded on chain regardless.

Additional context

logs where that issue happened for this order which was settled in this tx
One option to tackle this would be to move the logic that stores the Traded events into the logic that runs during event indexing. That way we'll for sure get the event.

@MartinquaXD MartinquaXD added the bug Something isn't working label Jan 11, 2024
Copy link

This issue has been marked as stale because it has been inactive a while. Please update this issue or it will be automatically closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant