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

Log when orders are filtered because of missing allowance/balance #482

Merged
merged 3 commits into from
Aug 30, 2022

Conversation

fleupold
Copy link
Contributor

@fleupold fleupold commented Aug 29, 2022

This should make it much simpler to debug issues teams are having with not getting their order matched.

Ideally we would expose this information on the order endpoint so that the explorer can tell the user directly what's wrong (and potentially even persist the last seen state so that we can identify which expired orders weren't actually fillable) but looking at the current design, this is a much more involved task.

Test Plan

Run orderbook, autopilot and UI locally. Place order, afterwards move funds and observe:

Filtering order 0xd4e66c93d079b48b4e947b2636063aeb121f8ae137e13b17d2200c1ae704f3002caef7f0ee82fb0abf1ab0dcd3a093803002e705630d6188 because of insufficient allowance/balance

@fleupold fleupold requested a review from a team as a code owner August 29, 2022 23:05
Copy link
Contributor

@nlordell nlordell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@fleupold fleupold enabled auto-merge (squash) August 30, 2022 14:24
@fleupold fleupold merged commit 9c96210 into main Aug 30, 2022
@fleupold fleupold deleted the log_uncovered_orders branch August 30, 2022 14:29
@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants