-
Notifications
You must be signed in to change notification settings - Fork 126
Closed
Milestone
Description
Each market (asset pair) on the DEX server will be run by a Market Manager. The market manager integrates a number of core components, employing a book manager, order matcher, swap executor, etc. to run each market. The DEX manager will control a number of such market managers.
A market manager has the following functions:
- Coordinate epochs (timing), and the creation of their queues.
- Validate incoming orders from the communications hub, relying on the asset backend (e.g. DCR backend) and account manager.
- Add valid orders to the active epoch queue.
- Initiate order matching at the end of an epoch via the matching engine.
- Update the order book with new standing orders, and remove matched orders, via the book manager.
- Initiate swaps for matched orders via the swap executor.
- Recording all of the above operations via the persistent storage backend(s).
This will arguably be ❤️ of the DEX.
Metadata
Metadata
Assignees
Labels
No labels