TokenBridge Contracts 2.3.3
This version of TokenBridge supports operations in three modes:
- native coin to an bridgeable ERC20 token;
- an ERC20 token to a bridgeable ERC20 token;
- an ERC20 token to a native coin.
The set of changes made in this release is to address comments found during the security audit held by SmartDec. Here is the link to the report:
- Add 0x/sol-coverage code coverage (#191)
- Update setBlockRewardContract method validations (#197)
- Update reward management docs (#202)
- Remove proxyOwner method from proxy contract (#198)
- Refactoring as the security audit recommendations (#203)
- Add fee value check (#209)
- Fix claimTokens to support all token transfers (#213)
- Add unit test for incorrect length of signatures arrays (#204)
- fix fixAssetsAboveLimits imbalance if feeManager used (#218)
- Add claimTokensFromErc677 on erc20-to-erc20 contracts (#219)
- Remove returns from internal initialize method on HomeBridgeErcToErc (#221)
- Use OpenZeppelin SafeMath instead of its copy (#222)
- Remove duplicated logic on top of withinExecutionLimit (#223)
- Remove redundant fallback method on HomeBridgeErcToErc (#224)
- Remove duplicated checks of contracts (#225)
- Remove address mask in parseMessage (#227)
- Improve contracts names as per the security audit recommendations (#226)
- Fix missing required block confirmation check in ForeignBridgeNativeToErc (#229)
- Improve revert pattern as per the security audit recommendations (#235)
- Add validators amount limit (#239)
- Use external modifier instead of public as per the security audit recommendations (#236)
- Add Solhint solidity linter (#240)
- Update ERC677BridgeTokenRewardable to optimize the gas usage (#242)
- Fix random method visibility in BaseFeeManager (#246)
Moreover the next changes were applied additionally: