mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Minor changes
This commit is contained in:
parent
8b5038463c
commit
3758af3698
|
@ -176,7 +176,9 @@ contract UniswapHelpers is Stores, DSMath {
|
||||||
return
|
return
|
||||||
Babylonian
|
Babylonian
|
||||||
.sqrt(
|
.sqrt(
|
||||||
reserveIn.mul(userIn.mul(3988000).add(reserveIn.mul(3988009)))
|
reserveIn.mul(
|
||||||
|
userIn.mul(3988000).add(reserveIn.mul(3988009))
|
||||||
|
)
|
||||||
).sub(reserveIn.mul(1997)) / 1994;
|
).sub(reserveIn.mul(1997)) / 1994;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -240,7 +242,7 @@ contract LiquidityHelpers is UniswapHelpers {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function _addLiquiditySingle(
|
function _addSingleLiquidity(
|
||||||
address tokenA,
|
address tokenA,
|
||||||
address tokenB,
|
address tokenB,
|
||||||
uint amountA,
|
uint amountA,
|
||||||
|
@ -450,7 +452,7 @@ contract UniswapLiquidity is LiquidityHelpers {
|
||||||
) external payable {
|
) external payable {
|
||||||
uint _amt = getUint(getId, amountA);
|
uint _amt = getUint(getId, amountA);
|
||||||
|
|
||||||
(uint _amtA, uint _amtB, uint _uniAmt) = _addLiquiditySingle(
|
(uint _amtA, uint _amtB, uint _uniAmt) = _addSingleLiquidity(
|
||||||
tokenA,
|
tokenA,
|
||||||
tokenB,
|
tokenB,
|
||||||
_amt,
|
_amt,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user