mirror of
https://github.com/Instadapp/dsa-resolvers-deprecated.git
synced 2024-07-29 22:38:16 +00:00
Removed TODO
This commit is contained in:
parent
f4f8c8b4fa
commit
d6b919de97
|
|
@ -153,7 +153,7 @@ contract CurveHelpers is Helpers {
|
||||||
uint _depositAmt = convertTo18(TokenInterface(token).decimals(), depositAmt);
|
uint _depositAmt = convertTo18(TokenInterface(token).decimals(), depositAmt);
|
||||||
uint _curveAmt = convertTo18(TokenInterface(getCurveTokenAddr()).decimals(), curveAmt);
|
uint _curveAmt = convertTo18(TokenInterface(getCurveTokenAddr()).decimals(), curveAmt);
|
||||||
unitAmt = wdiv(_curveAmt, _depositAmt);
|
unitAmt = wdiv(_curveAmt, _depositAmt);
|
||||||
unitAmt = wmul(unitAmt, sub(WAD, slippage)); // TODO - check
|
unitAmt = wmul(unitAmt, sub(WAD, slippage));
|
||||||
}
|
}
|
||||||
|
|
||||||
function getWithdrawtUnitAmt(
|
function getWithdrawtUnitAmt(
|
||||||
|
|
@ -165,7 +165,7 @@ contract CurveHelpers is Helpers {
|
||||||
uint _withdrawAmt = convertTo18(TokenInterface(token).decimals(), withdrawAmt);
|
uint _withdrawAmt = convertTo18(TokenInterface(token).decimals(), withdrawAmt);
|
||||||
uint _curveAmt = convertTo18(TokenInterface(getCurveTokenAddr()).decimals(), curveAmt);
|
uint _curveAmt = convertTo18(TokenInterface(getCurveTokenAddr()).decimals(), curveAmt);
|
||||||
unitAmt = wdiv(_curveAmt, _withdrawAmt);
|
unitAmt = wdiv(_curveAmt, _withdrawAmt);
|
||||||
unitAmt = wmul(unitAmt, add(WAD, slippage)); // TODO - check
|
unitAmt = wmul(unitAmt, add(WAD, slippage));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user