mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
minor change
This commit is contained in:
parent
ea7037e2dd
commit
7c9faf98df
|
@ -409,8 +409,8 @@ contract UniswapResolver is UniswapLiquidity {
|
||||||
(TokenInterface _buyAddr, TokenInterface _sellAddr) = changeEthAddress(buyAddr, sellAddr);
|
(TokenInterface _buyAddr, TokenInterface _sellAddr) = changeEthAddress(buyAddr, sellAddr);
|
||||||
address[] memory paths = getPaths(address(_buyAddr), address(_sellAddr));
|
address[] memory paths = getPaths(address(_buyAddr), address(_sellAddr));
|
||||||
|
|
||||||
uint __buyAmt18 = convertTo18(_buyAddr.decimals(), _buyAmt);
|
uint _buyAmt18 = convertTo18(_buyAddr.decimals(), _buyAmt);
|
||||||
uint _slippageAmt = convert18ToDec(_sellAddr.decimals(), wmul(unitAmt, __buyAmt18));
|
uint _slippageAmt = convert18ToDec(_sellAddr.decimals(), wmul(unitAmt, _buyAmt18));
|
||||||
|
|
||||||
IUniswapV2Router01 router = IUniswapV2Router01(getUniswapAddr());
|
IUniswapV2Router01 router = IUniswapV2Router01(getUniswapAddr());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user