MCPcopy Index your code
hub / github.com/bancorprotocol/contracts-solidity

github.com/bancorprotocol/contracts-solidity @v1.22.10

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.22.10 ↗ · + Follow
514 symbols 1,719 edges 147 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

# Bancor Protocol Contracts v0.6 (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).

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 10.16.0
  • npm 6.9.0
  • python 3.7.3
  • web3.py 4.9.2

Installation

  • npm install

Verification

Utilities

Collaborators

License

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

Core symbols most depended-on inside this repo

require
called by 236
solidity/python/FormulaSolidityPort/__init__.py
transfer
called by 98
solidity/python/Utilities/V2Flow/engine/__init__.py
getReserve1Address
called by 45
solidity/test/LiquidTokenConverter.js
addProtectedLiquidity
called by 44
solidity/test/LiquidityProtection.js
addLiquidity
called by 39
solidity/python/Utilities/V2Flow/engine/__init__.py
execute
called by 38
solidity/utils/test_deployment.js
initConverter
called by 37
solidity/test/Converter.js
getReserve1Address
called by 36
solidity/test/StandardPoolConverter.js

Shape

Function 457
Method 48
Class 9

Languages

TypeScript54%
Python46%

Modules by API surface

solidity/python/FormulaSolidityPort/__init__.py41 symbols
solidity/python/Utilities/V2Flow/engine/__init__.py30 symbols
solidity/utils/migrate_stats_amounts.js23 symbols
solidity/utils/migrate_stats_pools.js22 symbols
solidity/test/StandardPoolConverter.js20 symbols
solidity/test/LiquidityPoolV1Converter.js20 symbols
solidity/test/LiquidityProtection.js14 symbols
solidity/utils/test_deployment.js13 symbols
solidity/python/AutoGenerate/common/functions.py13 symbols
solidity/utils/verify_stats_amounts.js12 symbols
solidity/utils/migrate_settings.js12 symbols
solidity/test/ConverterUpgrader.js12 symbols

Datastores touched

(mongodb)Database · 1 repos

For agents

$ claude mcp add contracts-solidity \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page