Fixed a issue

This commit is contained in:
Thrilok Kumar 2020-05-09 09:31:24 +05:30
parent 8a8bbe9649
commit ea2b3edd3d

View File

@ -203,11 +203,11 @@ contract CurveProtocol is CurveHelpers {
_curveAmt = curveSwap.calc_token_amount(_amts, false);
}
curveTokenContract.approve(address(curveSwap), _curveAmt);
uint _amt18 = convertTo18(TokenInterface(token).decimals(), _amt);
uint _slippageAmt = wmul(unitAmt, _amt18);
curveTokenContract.approve(address(curveSwap), _slippageAmt);
curveSwap.remove_liquidity_imbalance(_amts, _slippageAmt);
setUint(setId, _amt);