openleverage-contracts icon indicating copy to clipboard operation
openleverage-contracts copied to clipboard

fix bug in library TransferHelper

Open gzliudan opened this issue 3 years ago • 0 comments

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.

gzliudan avatar Jun 30 '22 14:06 gzliudan