mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Fixed a issue
This commit is contained in:
parent
8a8bbe9649
commit
ea2b3edd3d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user