removed unnecessarry code

This commit is contained in:
Samyak Jain 2019-10-04 22:10:11 +05:30
parent 3b86bf9dec
commit 2be3b1543d

View File

@ -134,21 +134,6 @@ contract Helpers is DSMath {
addr = 0xa8b39829cE2246f89B31C013b8Cde15506Fb9A76;
}
/**
* @dev Transfer ETH/ERC20 to user
*/
function transferToken(address erc20) internal {
if (erc20 == getAddressETH()) {
msg.sender.transfer(address(this).balance);
} else {
ERC20Interface erc20Contract = ERC20Interface(erc20);
uint srcBal = erc20Contract.balanceOf(address(this));
if (srcBal > 0) {
erc20Contract.transfer(msg.sender, srcBal);
}
}
}
/**
* @dev setting allowance to dydx for the "user proxy" if required
*/