-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show JIT orders on COW explorer (#2920)
# Description Fixes #2825 # Changes <!-- List of detailed changes (how the change is accomplished) --> - [x] Added `jit_orders` database table and read/write functions - [x] Refactored `domain::Settlement` so that user orders and JIT orders can be differentiated using `Trade` enum. - [x] Saved JIT orders from OnSettlementEventUpdater - [x] Return jit orders on /get_order and /get_trades _Todo in follow up PR: return on get_order_by_tx and get_order_by_owner_ ## How to test 1. Updated unit tests for surplus/fee calculation 2. Added one new unit test for settlement with cow amm. 3. Added unit test for read/write to the new database table. 4. Jit order expanded to prove that jit orders are returned on endpoints. I would suggest to review in IDE, since it's not easy to follow the changes as code diff.
- Loading branch information
Showing
22 changed files
with
1,438 additions
and
728 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
Oops, something went wrong.