mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Minor fix
This commit is contained in:
parent
1e7ef19452
commit
e664e91a41
|
@ -192,7 +192,7 @@ contract LiquidityHelpers is UniswapHelpers {
|
|||
address(_tokenB),
|
||||
_amtA,
|
||||
_amtB,
|
||||
getMinAmount(_tokenA, _amtB, slippage),
|
||||
getMinAmount(_tokenA, _amtA, slippage),
|
||||
getMinAmount(_tokenB, _amtB, slippage),
|
||||
address(this),
|
||||
now + deadline // TODO - deadline?
|
||||
|
@ -216,8 +216,8 @@ contract LiquidityHelpers is UniswapHelpers {
|
|||
_uniAmt = _amt == uint(-1) ? uniToken.balanceOf(address(this)) : _amt;
|
||||
uniToken.approve(address(router), _uniAmt);
|
||||
|
||||
uint minAmtA = convert18ToDec(_tokenA.decimals(), wmul(unitAmtA, _amt));
|
||||
uint minAmtB = convert18ToDec(_tokenB.decimals(), wmul(unitAmtB, _amt));
|
||||
uint minAmtA = convert18ToDec(_tokenA.decimals(), wmul(unitAmtA, _uniAmt));
|
||||
uint minAmtB = convert18ToDec(_tokenB.decimals(), wmul(unitAmtB, _uniAmt));
|
||||
|
||||
(_amtA, _amtB) = router.removeLiquidity(
|
||||
address(_tokenA),
|
||||
|
|
Loading…
Reference in New Issue
Block a user