openleverage-contracts
openleverage-contracts copied to clipboard
fix bug in library TransferHelper
ERC20 specification allows transfer token from addressA to addressA. In current codes of contracts/lib/TransferHelper.sol, transfer will be reverted when _from == _to, because balanceAfter == balanceBefore.