diff --git a/contracts/ProxyLogics/instaDydx.sol b/contracts/ProxyLogics/instaDydx.sol index 24d4683..2c560a5 100644 --- a/contracts/ProxyLogics/instaDydx.sol +++ b/contracts/ProxyLogics/instaDydx.sol @@ -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 */