Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bancor/contracts-solidity

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bancor/contracts-solidity

The solidity version of the Bancor smart contracts is composed of many different components that work together to create the Bancor Network deployment.

  • 0.7.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61
increased by1.67%
Maintainers
4
Weekly downloads
 
Created
Source

🎉🎉 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

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)

Utilities

Collaborators

License

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

FAQs

Package last updated on 08 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc