mirror of
https://github.com/Instadapp/dsa-resolvers-deprecated.git
synced 2024-07-29 22:38:16 +00:00
Updated susd and y pool resolver
This commit is contained in:
parent
c5374d83b9
commit
7876a9cb64
|
@ -242,5 +242,5 @@ contract Resolver is CurveHelpers {
|
||||||
|
|
||||||
|
|
||||||
contract InstaCurveResolver is Resolver {
|
contract InstaCurveResolver is Resolver {
|
||||||
string public constant name = "Curve-SUSD-Resolver-v1.2";
|
string public constant name = "Curve-SUSD-Resolver-v1.3";
|
||||||
}
|
}
|
|
@ -199,7 +199,7 @@ contract Resolver is CurveHelpers {
|
||||||
ICurve curve = ICurve(getCurveSwapAddr());
|
ICurve curve = ICurve(getCurveSwapAddr());
|
||||||
curveAmt = curve.calc_token_amount(amts, true);
|
curveAmt = curve.calc_token_amount(amts, true);
|
||||||
virtualPrice = curve.get_virtual_price();
|
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)
|
function getWithdrawAmount(address token, uint withdrawAmt, uint slippage)
|
||||||
|
@ -214,7 +214,7 @@ contract Resolver is CurveHelpers {
|
||||||
ICurve curve = ICurve(getCurveSwapAddr());
|
ICurve curve = ICurve(getCurveSwapAddr());
|
||||||
curveAmt = curve.calc_token_amount(amts, false);
|
curveAmt = curve.calc_token_amount(amts, false);
|
||||||
virtualPrice = curve.get_virtual_price();
|
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)
|
function getWithdrawTokenAmount(address token, uint curveAmt, uint slippage)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user