Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decentralized Exchange on Plasma #2

Open
chriseth opened this issue Jan 25, 2018 · 0 comments
Open

Decentralized Exchange on Plasma #2

chriseth opened this issue Jan 25, 2018 · 0 comments

Comments

@chriseth
Copy link

chriseth commented Jan 25, 2018

I'm just using this as a sketchbook. Please complain if this is the wrong place ;-)

This system is designed for a single token pair.

Messages:

  • create order(buy/sell, amount, price) -> id
  • cancel order(id)
  • combine orders(buys: amounts, prices, sells: amounts, prices)
  • execute order(?) -> ?
  • combine order execution result

Internal nodes combine order books from their children and post the results upwards.

Orders are executed at the root node, and execution results are sent downwards.

Internal nodes have to split up execution results, update order books and also take into account canceled orders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant