This is a simple on-chain OTC market for MKR. You can either pick an order from the order book (in which case delivery will happen instantly), or submit a new order yourself.
Maker Market is undergoing alpha testing: Proceed at your own risk, and use only small amounts of ETH and MKR.
This dapp uses Meteor as frontend; the contract side can be tested and deployed using dapple.
Ensure you have a locally running ethereum node.
Requirements:
- geth
brew install ethereum
(orapt-get
for ubuntu) - solidity https://solidity.readthedocs.org/en/latest/installing-solidity.html
- meteor
curl https://install.meteor.com/ | sh
- Global dapple,
npm install -g dapple meteor-build-client
Clone and install:
git clone https://github.com/MakerDAO/maker-market
cd maker-market
git submodule update --init --recursive
npm install
npm run build
You need to build the JS wrappers for the Dapple contracts:
npm run build
To run the frontend, start meteor:
cd frontend && meteor
If you got the error message File not found: build/meteor.js
, then you forgot to run the build step from above.
You can access the user interface on http://localhost:3000/
To deploy the frontend to Github Pages:
gulp deploy
new SimpleMarket: 927556 gas
SimpleMarket.offer: 140395-186235 gas
SimpleMarket.cancel: 33882 gas
SimpleMarket.buy: 49306-51707 gas
See https://waffle.io/MakerDAO/maker-otc
- Simple Market contract by Nikolai Mushegian
- User interface design by Daniel Brockman
- Blockchain Script by Chris Hitchcott