bug: changed approve address

This commit is contained in:
Samyak Jain 2020-05-06 15:02:35 +10:00
parent 9439b2f676
commit fb026bb91e

View File

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