Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(orderbook): add back fully matched orders
This fixes the functionality of non-strict mode to add peer orders back to the order book after they were matched but failed to swap. Previously we would only add back orders that were partially matched, by removing the remaining order from the order book, adding the partially matched quantity back to it, and then adding it back to the order book. This also adds back orders that were fully matched and removed from the order book during matching after they fail to swap. Closes #1816.
- Loading branch information