mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
update liquidate
This commit is contained in:
parent
e59fb91f6b
commit
f9bf503739
|
@ -223,6 +223,9 @@ abstract contract CurveUSDResolver is Helpers, Events {
|
||||||
IController controller = getController(_collateralAddress, controllerVersion);
|
IController controller = getController(_collateralAddress, controllerVersion);
|
||||||
uint _min_x = getUint(getId, min_x);
|
uint _min_x = getUint(getId, min_x);
|
||||||
|
|
||||||
|
TokenInterface stableCoin = TokenInterface(CRV_USD);
|
||||||
|
approve(stableCoin, address(controller), _min_x);
|
||||||
|
|
||||||
controller.liquidate(address(this), _min_x, _isEth);
|
controller.liquidate(address(this), _min_x, _isEth);
|
||||||
|
|
||||||
setUint(setId, _min_x);
|
setUint(setId, _min_x);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user