From 7744b6817075efbaf72f51128e78963130c6237b Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Sat, 5 Oct 2019 22:06:46 +0530 Subject: [PATCH] fixed dydx withdraw --- contracts/ProxyLogics/instaDydx.sol | 2 -- 1 file changed, 2 deletions(-) diff --git a/contracts/ProxyLogics/instaDydx.sol b/contracts/ProxyLogics/instaDydx.sol index 2775590..8021333 100644 --- a/contracts/ProxyLogics/instaDydx.sol +++ b/contracts/ProxyLogics/instaDydx.sol @@ -243,8 +243,6 @@ contract DydxResolver is Helpers { if (erc20Addr == getAddressETH()) { PayableProxySoloMarginContract soloPayable = PayableProxySoloMarginContract(getSoloPayableAddress()); soloPayable.operate(getAccountArgs(), getActionsArgs(marketId, toWithdraw, false), msg.sender); - SoloMarginContract solo = SoloMarginContract(getSoloAddress()); - solo.operate(getAccountArgs(), getActionsArgs(marketId, toWithdraw, false)); ERC20Interface wethContract = ERC20Interface(getAddressWETH()); uint wethBal = wethContract.balanceOf(address(this)); toWithdraw = toWithdraw < wethBal ? wethBal : toWithdraw;