mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update contracts/mainnet/connectors/uniswap/v3_auto_router/helpers.sol
This commit is contained in:
parent
38c3d3e222
commit
2e8ba1d846
|
@ -43,7 +43,7 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
buyAmt = sub(finalBal, initalBal);
|
buyAmt = sub(finalBal, initalBal);
|
||||||
require(_slippageAmt <= buyAmt, "Too much slippage");
|
require(_slippageAmt <= buyAmt, "Too much slippage");
|
||||||
|
|
||||||
isEth = address(buyToken) == ethAddr;
|
isEth = address(swapData.buyToken) == ethAddr;
|
||||||
convertWethToEth(isEth,buyToken,buyAmt);
|
convertWethToEth(isEth,buyToken,buyAmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user