You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (IERC20(deal.token1).balanceOf(address(this)) >= deal.amount1) {
No need to check for balanceOf() before transfer() because it is already check in the original ERC20 contracts. Using if/else statement introduce new use case to handle and test. This is useless and must be removed.
The text was updated successfully, but these errors were encountered:
v1-core/packages/hardhat/contracts/Swapper.sol
Line 113 in 96bc553
No need to check for balanceOf() before transfer() because it is already check in the original ERC20 contracts. Using if/else statement introduce new use case to handle and test. This is useless and must be removed.
The text was updated successfully, but these errors were encountered: