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
6

0.6.33

Diff

Changelog

Source

0.6.33

General

  • Replaced the local ERC20Token/TokenHandler with OpenZepplin's ERC20/SafeERC20
  • Moved from npm to yarn
  • Added FixedRatePoolConverter (type 4)

StandardPoolConverter

  • Added sourceAmountAndFee function that returns the source amount and fee based on a target amount

LiquidityProtection

  • Pool spot rate is now recorded on deposit instead of the average rate
yudilevi
published 0.6.32 •

Changelog

Source

0.6.32

LiquidityProtection

  • Updated settings contract conventions
yudilevi
published 0.6.31 •

Changelog

Source

0.6.31

LiquidityProtection

  • Added support for disabling adding liquidity with a specific reserve
  • Added support for multipler event subscribers
yudilevi
published 0.6.30 •

Changelog

Source

0.6.30

LiquidityProtection

  • Added LiquidityProtectionSystemStore contract that holds the system balance/minted amounts
  • Added a dedicated wallet contract for liquidity protection
yudilevi
published 0.6.29 •

Changelog

Source

0.6.29

General

  • Replaced the local SafeMath contract with OpenZepplin's version
  • Renamed Math contract to MathEx contract to prevent conflicts

LiquidityProtection

  • Added LiquidityProtectionStats contract that holds totals & provider specific stats
  • Added an event subscriber contract that receives liquidity add/remove events
yudilevi
published 0.6.28 •

Changelog

Source

0.6.28

LiquidityProtection

  • Removed support for protecting/unprotecting existing pool tokens
  • Added a function that returns the current available space in the pool (poolAvailableSpace)

ConverterUpgrader

  • Added support for upgrading a converter with reserve tokens that revert on transfer(0)
yudilevi
published 0.6.27 •

Changelog

Source

0.6.27

General

  • Added a gas optimized standard pool converter (type 3) for 2 reserves, 50%/50% weights
  • Added Checkpoint store contract for tracking any actions that happen at a specific point in time
  • Optimized some of the generic Math functions
  • Removed legacy code
  • Added prettier to the code

ConverterRegistry

  • Creating a standard type 1 pool will result in a type 3 pool

ConverterUpgrader

  • Upgrading a standard type 1 pool will result in a new type 3 pool

LiquidityProtection

  • New flexible and more secure network token minting limit system
  • Liquidity cannot be added and removed in the same block anymore
  • Settings moved into a dedicated contract
  • Removed the high tier pool system
  • Optimized calculations to reduce potential overflows/underflows
  • Added addLiquidityFor function that allows creating a position for a different wallet
  • Removed the transferLiquidity function
  • Added on-chain tracking for when users remove liquidity
  • Fixed an issue that triggererd an exception in the poolROI view function in certain cases
yudilevi
published 0.6.26 •

Changelog

Source

0.6.26

LiquidityProtection

  • Added support for high tier pools
  • Fixed an issue in the system ratio limit
yudilevi
published 0.6.25 •

Changelog

Source

0.6.25

LiquidityProtection

  • Updated to use the TokenGovernance contract for both the network token & the governance token
  • Minor gas optimization
yudilevi
published 0.6.24 •

Changelog

Source

0.6.24

General

  • Added prettier

LiquidityProtection

  • Fixed a potential overflow exception in removeLiquidityTargetAmount
  • Binary size optimization
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