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: ensure filling/filled orders have matching fee #2386

Merged
merged 4 commits into from
Apr 10, 2024

Conversation

bonomat
Copy link
Contributor

@bonomat bonomat commented Apr 9, 2024

resolves #2382 (hopefully).

It ensures that this bug cannot happen again and sets the matching fee for existing orders in the db.
My interpretation is that this error came from the fact that we introduced a new field matching_fee_sats which was obviously not set for existing orders.

This simplifies our code as it removes genericism and makes things more explicit.
Done is the time with complex `into()`, hello simple code.
Copy link
Contributor

@holzeis holzeis left a comment

Choose a reason for hiding this comment

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

LGTM 👍

fyi: I've deployed this branch on my regtest app and can confirm that this is fixing the issue ;)

…ave_matching_fee/up.sql

Co-authored-by: Richard Holzeis <[email protected]>
@bonomat bonomat enabled auto-merge April 10, 2024 01:17
@bonomat bonomat added this pull request to the merge queue Apr 10, 2024
Merged via the queue into main with commit 03cf117 Apr 10, 2024
21 checks passed
@bonomat bonomat deleted the chore/on-the-trail-of-bugs branch April 10, 2024 01:29
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.

Failed to start 10101! (test app)
2 participants