mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
bug: changed approve address
This commit is contained in:
parent
9439b2f676
commit
fb026bb91e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user