mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
fixed dydx withdraw
This commit is contained in:
parent
f186a17ae3
commit
7744b68170
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user