Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bancorprotocol/contracts-solidity
Bancor Protocol Contracts
https://github.com/bancorprotocol/contracts-solidity
Last synced: 2 months ago
JSON representation
Bancor Protocol Contracts
- Host: GitHub
- URL: https://github.com/bancorprotocol/contracts-solidity
- Owner: bancorprotocol
- License: other
- Created: 2017-02-15T17:38:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-06T16:54:41.000Z (8 months ago)
- Last Synced: 2024-04-18T14:58:04.497Z (2 months ago)
- Language: JavaScript
- Size: 18.3 MB
- Stars: 827
- Watchers: 58
- Forks: 387
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Lists
- my-awesome-stars - bancorprotocol/contracts-solidity - Bancor Protocol Contracts (JavaScript)
- awesome-solidity - bancorprotocol/contract-solidity - Bancor Protocol contracts. (Resources)
- awesome-solidity - bancorprotocol/contract-solidity - Bancor Protocol contracts. (Resources)
- awesome-solidity - bancorprotocol/contract-solidity - Bancor Protocol contracts. (Resources)
- web3-awesome - contracts-solidity
- best-of-crypto - GitHub - 9% open · ⏱️ 26.10.2023): (Automated Market Maker (AMM))
README
## These are the legacy (v2.1) contracts. Bancor V3 contracts are available at https://github.com/bancorprotocol/contracts-v3 ##
# Bancor Protocol Contracts v0.7
[![Docs](https://img.shields.io/badge/docs-%F0%9F%93%84-blue)](https://docs.bancor.network/)
[![NPM Package](https://img.shields.io/npm/v/@bancor/contracts-solidity.svg)](https://www.npmjs.org/package/@bancor/contracts-solidity)## Overview
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).
## Config
In order to use some plugins, API keys or custom network with secret config we need a config.json file. You can check `hardhat.config.js` for more details.
```json
{
"apiKeys": {
"etherscan": ""
},"networks": {
"mainnet": {
"url": ""
}
}
}
```## Upgradeability
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.
## Language
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.
## Warning
Bancor is a work in progress. Make sure you understand the risks before using it.
## Testing
### Prerequisites
- node 12.20.0
- yarn 1.22.0### Installation
- `yarn install`
### Verification
- Verifying all the contracts:
- `yarn test` (quick testing)
- `yarn coverage` (full coverage)### [Utilities](utils/README.md)
## Collaborators
- **[Yudi Levi](https://github.com/yudilevi)**
- **[Barak Manos](https://github.com/barakman)**
- **[Leonid Beder](https://github.com/lbeder)**
- **[Ilana Pinhas](https://github.com/ilanapi)**
- **[David Benchimol](https://github.com/davidbancor)**
- **[Or Dadosh](https://github.com/ordd)**
- **[Martin Holst Swende](https://github.com/holiman)**## License
Bancor Protocol is open source and distributed under the Apache License v2.0