From 7876a9cb64a6d57aaaf79d38d78b1d77d1a5bff0 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Sun, 19 Jul 2020 22:54:24 +0530 Subject: [PATCH] Updated susd and y pool resolver --- contracts/protocols/curve_susd.sol | 2 +- contracts/protocols/curve_y.sol | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)