From 1552411409968aa5e1eece3162088c1e2df4f67e Mon Sep 17 00:00:00 2001 From: Samyak Jain Date: Fri, 31 May 2019 19:17:56 +0530 Subject: [PATCH] removed unnecessary things --- contracts/ProxyLogics/InstaCompound.sol | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/contracts/ProxyLogics/InstaCompound.sol b/contracts/ProxyLogics/InstaCompound.sol index a1450ba..76f4df1 100644 --- a/contracts/ProxyLogics/InstaCompound.sol +++ b/contracts/ProxyLogics/InstaCompound.sol @@ -102,17 +102,8 @@ contract Helpers is DSMath { } /** - * @dev get CETH Address + * @dev Transfer ETH/ERC20 to user */ - function getCETHAddress() public pure returns (address cEthAdd) { - cEthAdd = 0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5; - } - - function getTokenAmt(CTokenInterface cToken, uint cTokenAmt) public returns(uint tokenAmt) { - uint exchangeRate = cToken.exchangeRateCurrent(); - tokenAmt = wmul(exchangeRate, cTokenAmt); - } - function transferToken(address erc20) internal { if (erc20 == getAddressETH()) { msg.sender.transfer(address(this).balance); @@ -240,7 +231,7 @@ contract CompoundResolver is Helpers { ) external payable { if (erc20 == getAddressETH()) { - CETHInterface cToken = CETHInterface(getCETHAddress()); + CETHInterface cToken = CETHInterface(cErc20); cToken.repayBorrowBehalf.value(msg.value)(borrower); } else { CERC20Interface cToken = CERC20Interface(cErc20);