diff --git a/contracts/protocols/curve_susd.sol b/contracts/protocols/curve_susd.sol index 942935d..48f2ab5 100644 --- a/contracts/protocols/curve_susd.sol +++ b/contracts/protocols/curve_susd.sol @@ -242,5 +242,5 @@ contract Resolver is CurveHelpers { contract InstaCurveResolver is Resolver { - string public constant name = "Curve-SUSD-Resolver-v1.2"; + string public constant name = "Curve-SUSD-Resolver-v1.3"; } \ No newline at end of file diff --git a/contracts/protocols/curve_y.sol b/contracts/protocols/curve_y.sol index fafcff8..1818fbe 100644 --- a/contracts/protocols/curve_y.sol +++ b/contracts/protocols/curve_y.sol @@ -199,7 +199,7 @@ contract Resolver is CurveHelpers { ICurve curve = ICurve(getCurveSwapAddr()); curveAmt = curve.calc_token_amount(amts, true); virtualPrice = curve.get_virtual_price(); - unitAmt = getDepositUnitAmt(token, yAmt, curveAmt, slippage); + unitAmt = getDepositUnitAmt(token, depositAmt, curveAmt, slippage); } function getWithdrawAmount(address token, uint withdrawAmt, uint slippage) @@ -214,7 +214,7 @@ contract Resolver is CurveHelpers { ICurve curve = ICurve(getCurveSwapAddr()); curveAmt = curve.calc_token_amount(amts, false); virtualPrice = curve.get_virtual_price(); - unitAmt = getWithdrawtUnitAmt(token, yAmt, curveAmt, slippage); + unitAmt = getWithdrawtUnitAmt(token, withdrawAmt, curveAmt, slippage); } function getWithdrawTokenAmount(address token, uint curveAmt, uint slippage)