-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(orderbook): automatically remove dust orders
This removes dust orders from the order book as they arise due to orders being partially removed or matched. Dust orders are defined as orders where either side of the trade has less than 100 satoshis of volume. This logic exists in three places. During matching, we check whether the remainder of any maker order is beneath the dust limit. During partial order removal, we check whether the remainder is beneath the dust limit and, if so, remove the entire order instead. Lastly, any remaining order after matching is checked against the dust limit as well. Closes #1798. Follow-up to #1785.
- Loading branch information
Showing
9 changed files
with
295 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.