TokenBridge Contracts 2.3.3 Release


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 founds 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 unit test for incorrect length of signatures arrays #204
  • Add fee value check #209
  • Fix claimTokens to support all token transfers #213
  • 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
  • Improve contracts names as per the security audit recommendations #226
  • Remove address mask in parseMessage #227
  • Fix missing required block confirmation check in ForeignBridgeNativeToErc #229
  • Improve revert pattern as per the security audit recommendations #235
  • Use external modifier instead of public as per the security audit recommendations #236
  • Add validators amount limit #239
  • Add Solhint solidity linter #240
  • Update ERC677BridgeTokenRewardable to optimize the gas usage #242
  • Fix random method visibility in BaseFeeManager #246

Besides these modifications the following changes were included in this version:


  • Improve checks of configuration parameters for contracts deployment #228


  • Update ERC677BridgeToken transferFrom to call contractFallback #220
  • Update package name and version #230
  • Support zero fallback gas price in erc-to-erc mode #234
1 Like