- added the ConverterRegistry contract
General:
- Added support for non standard ERC-20 tokens
- Added NonStandardTokenRegistry contract to support non standard ERC-20 tokens
Network:
- Removed
convertForMultiple
General:
- Minor cleanups / bug fixes
- Moved to SafeMath
Converters:
- Added
completeXConversion
function to convert from BNT to another token by providing an id rather than amount - Changed the version from bytes32 to uint16
quickConvert
andquickConvertPrioritized
now callconvertForPrioritized3
in the BancorNetwork contract- Renamed
isPurchaseEnabled
toisSaleEnabled
in connector token struct, and validated that sales are enabled for thefromConnector
rather than thetoConnector
in the conversion functions
Network:
verifyTrustedSender
function argumentamount
renamed tocustomVal
- Added
xConvert
andxConvertPrioritized
functions which converts any token to BNT and transfers the result to BancorX - Added
validateXConversion
function to get around the 16 variable function limit in thexConvert
function - Added
convertForPrioritized3
with backwards compatibility to now receive a custom value along with the amount for verifying trusted senders
General:
- Minor cleanups / bug fixes
- Upgraded compiler version to 0.4.24
Converters:
- Replaced the
setRegistry
function withupdateRegistry
function - Removed quickBuyPath from converter
- getReturn now returns the fee as a separate return value
- Converter owner can no longer withdraw connector tokens while the converter is active
- Converter owner can no longer transfer the token ownership once the converter is active
- Added a dedicated
upgrade
function for easier upgrades - Added a
fund
function for increasing liquidity atomically - Added a
liquidate
function for decreasing liquidity atomically even when conversions are disabled
Registry:
- Fixed item removal
General:
- Upgraded compiler version to 0.4.23
- Updated all contracts to make use of the new
constructor
keyword - Removed more local contract dependencies and replaced them with querying the registry
Utilities:
- ContractRegistry - added support for querying the number of items/contract names in the registry
General:
- Added more predefined contract ids
Bug fixes:
- Fixed a crash in BancorConverterUpgrader when trying to upgrade converters with virtual connector balance
Bug fixes:
- Fixed BancorNetwork contract backward compatibility with older converters
General:
- Restructured contract folders
- Upgraded compiler version to 0.4.21
- Replaced from testrpc with ganache
- Other minor cleanups
Converters:
- Gas cost optimizations when converting between 2 connectors, now uses an optimized dedicated formula calculation
- Conversions now trigger 2 separate events - Conversion & PriceDataUpdate
- Added support for multiple conversions in a single atomic transaction
- Added support for conversion whitelist
- Removed the BancorConverterExtensions contract and replaced it with the new ContractRegistry contract
- Added the ability for the owner to also set the manager
- Renamed BancorQuickConverter to BancorNetwork to more accurately reflect its place as the entry point for bancor related functionality
- Removed EIP228 related functionality and deprecated the EIP
Utilities:
- Added support for contract registry to minimize dependencies between contracts
- Added support for a "feature flags" contract that allows contracts to dynamically query other contracts for supported features