We build a simulator of Bancor, which helps to explain the difference between Bancor market and Classic market.
Python 2.7 + Anaconda 2.7
- Recommended, run Bancor-Simulator.ipynb in ipython notebook, then follow the comments.
- Run main-Bancor.py and main-Classic.py in python. The customers.py presents the python class for customer simulating. The smartToken.py is the python class for smartToken in Bancor market, which includes the Bancor protocol. And the market.py is the python class for Bancor Market and Classic Market simulating.
- Figures file contains figures generated by main-Bancor.py and main-Classic.py, which record the experiment results.
- Result file contains temporary text results generated by main-Bancor.py and main-Classic.py.
- Code-Notation.pdf contains illustration of codes in this simulator.