GithubHelp home page GithubHelp logo

hongda3141 / contracts-solidity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bancorprotocol/contracts-solidity

0.0 2.0 0.0 14.94 MB

Bancor Protocol Contracts

License: Other

JavaScript 67.10% Solidity 31.79% TypeScript 1.11%

contracts-solidity's Introduction

🎉🎉 Work on Bancor V3 is in progress and future changes will be incrementally merged into this repo. Stay tuned! 🎉🎉

Bancor Protocol Contracts v0.7 (beta)

Docs NPM Package Build Status

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.

{
    "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)

Collaborators

License

Bancor Protocol is open source and distributed under the Apache License v2.0

contracts-solidity's People

Contributors

arachnid avatar asaflocal avatar barakman avatar davidbancor avatar dependabot[bot] avatar dmdque avatar holiman avatar lbeder avatar nhindman23 avatar nuke-web3 avatar ordd avatar ritaurbach avatar rotcivegaf avatar sekisamu avatar snyk-bot avatar yudilevi avatar yudilevi2 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.