Add basic token buy/sell escrow orders
Opened this issue · 1 comments
simondlr commented
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.
- Create a contract with order filling functionality and setting a price someone else will pay per unit.
- Approve a certain amount of tokens one wants to sell to this contract.
- 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 commented
Maker has already built a simple OTC. https://github.com/makerdao/maker-otc. http://makerdao.github.io/maker-otc/