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

@bancor/contracts-solidity

Package Overview
Dependencies
Maintainers
10
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bancor/contracts-solidity - npm Package Versions

1
45

0.6.3

Diff

Changelog

Source

0.6.3

BancorNetwork

  • Fixed an issue in the backward compatibility layer for older converters

ConverterUpgrader

  • Fixed an issue in the backward compatibility layer for older converters
yudilevi
published 0.6.2 •

Changelog

Source

0.6.2

BancorNetwork

  • Added backward compatibility to rateByPath
yudilevi
published 0.6.1 •

Changelog

Source

0.6.1

ConverterRegistry

  • Fixed a bug that prevented removal of older converters from the registry
yudilevi
published 0.6.0 •

Changelog

Source

0.6.0

General

  • Major upgrade, many improvements and design changes (new backward compatibility layer still supports most of older interfaces)
  • Major gas optimization on conversions
  • New design to allow different converter types
  • Removed EtherToken functionality in favor of using ETH directly (the contract is still used for backward compatibility)
  • Added revert error messages
  • Improved support for non standard token transfer/transferFrom functions
  • Many other minor changes, bug fixes and cleanups

BancorNetwork

  • Added a new conversionPath function
  • getReturnByPath is now replaced by rateByPath
  • all conversion functions are now replaced by convertByPath

BancorConverter

  • Converters are now broken into different contracts with ConverterBase as the base contract
  • New entity introduced - Converter Anchor. The anchor rerpresents the converter id and is the non upgradable component of the converter
  • New converterType function to allow identifying the converter
  • There are now two major converter types - Liquid Token Converter & Liquidity Pool Converter
  • Add/Remove liquidity functions moved to the new liquidity pool converter
  • New add/remove liquidity functions - addLiquidity now accepts the reserve amounts instead of the pool token amount
  • It's now possible to add liquidity to empty liquidity pools
  • It's no longer possible to convert into pool tokens (these can only be acquired by adding liquidity)
  • Conversions cannot be executed directly against converters anymore - all conversions should be executed through the BancorNetwork contract
  • New TokenRateUpdate event that gets emitted for rate changes between any two tokens (reserve/reserve, pool/reserve etc.)
  • PriceDataEvent is now deprecated in favor of the new TokenRateUpdate event

ConverterRegistry

  • Added newConverter factory function to simplify converter creation process
  • Converters cannot be added to the registry directly anymore, instead use the new factory function
  • Converters are now accessible by their anchors instead of by their smart tokens
  • Smart token functions/events are now replaced with anchor functions/events

BancorX

  • Removed support for smart tokens for security reasons. Allowance should be used instead
1
45
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