opendex.network
opendex.network copied to clipboard
[Improvement propsal] Adding matcher to protocol
The basic idea of changes to protocol is that nodes don't add orders of other nodes to their local orderbook. Instead there is matchers which run orderbooks and match orders. This solves the problem about if many takers try to take same maker in same time. Everyone can verify that matcher follows matching rules, so there is no need to trust them. And there is matchers in different levels/delays, and node just send order to one low delay matcher, which sends it to higher delay matcher, which again sends it to higher delay matcher. So if you have chosen different matcher than someone, you can still get match with him, thanks to higher delay matcher.
Node choose probably matcher based on amount of orders in matcher's orderbook, and if nodes do like this, everyone will use same matcher. Even if someone have some reason to use some other matcher, then all matchers probably choose same higher dealy matcher to match orders between their orderbooks. So I think there willbe just few matchers(on every pair) + one higher delay matcher which match orders between other matchers. So one order need just send to one matcher, and matcher send it may still to one higher dealy matcher.
This also make it possible to have more order types, so post only orders and trigger price is added.