🎉🎉 Work on Bancor V3 is in progress and future changes will be incrementally merged into this repo. Stay tuned! 🎉🎉
The solidity version of the Bancor smart contracts is composed of many different components that work together to create the Bancor Network deployment.
The main contracts are the BancorNetwork contract (entry point to the system) and the different converter contracts (implementation of liquidity pools and their reserves).
All smart contract functions are public and all upgrades are opt-in. If significant improvements are made to the system a new version will be released. Token owners can choose between moving to the new system or staying in the old one. If possible, new versions will be backwards compatible and able to interact with the old versions.
The terms “reserves” and “connectors” have the same meaning throughout Bancor’s smart contract code and documentation. “Reserve ratio” and “connector weight” are also used interchangeably. “Connector balance” refers to the token inventories held in a liquidity pool's reserves.
Bancor is a work in progress. Make sure you understand the risks before using it.
- node 10.16.0
- yarn 1.22.0
- python 3.7.3
- web3.py 4.9.2
yarn
- Verifying all the contracts:
yarn test
(quick testing)yarn coverage
(full coverage)
- Verifying the BancorFormula contract
Bancor Protocol is open source and distributed under the Apache License v2.0