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

Add basic token buy/sell escrow orders #12

Open
simondlr opened this issue May 14, 2016 · 1 comment
Open

Add basic token buy/sell escrow orders #12

simondlr opened this issue May 14, 2016 · 1 comment

Comments

@simondlr
Copy link
Contributor

EtherEx has a more complicated order matching system. For starters, one can build simple buy/order systems for tokens buy making an buy/sell escrow contract.

It's quite simple.

  1. Create a contract with order filling functionality and setting a price someone else will pay per unit.
  2. Approve a certain amount of tokens one wants to sell to this contract.
  3. Someone else can then come in, send ether to it and then approved tokens are transferred to person buying the tokens.

Piper Merriam has built a simple version of this here: https://gist.github.com/pipermerriam/68ab56ad47358193a4d4ecf367f2e683

A variant of this was built by avsa. See here: https://ethereum.org/token#automatic-selling-and-buying

@simondlr
Copy link
Contributor Author

Maker has already built a simple OTC. https://github.com/makerdao/maker-otc. http://makerdao.github.io/maker-otc/

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