From f9bf50373948e8cae2da1cfb79cab2f835d9da88 Mon Sep 17 00:00:00 2001 From: q1q0 Date: Sat, 9 Sep 2023 18:35:54 -0400 Subject: [PATCH] update liquidate --- contracts/mainnet/connectors/crv_USD/main.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/mainnet/connectors/crv_USD/main.sol b/contracts/mainnet/connectors/crv_USD/main.sol index 7cb3a8b9..3337486d 100644 --- a/contracts/mainnet/connectors/crv_USD/main.sol +++ b/contracts/mainnet/connectors/crv_USD/main.sol @@ -223,6 +223,9 @@ abstract contract CurveUSDResolver is Helpers, Events { IController controller = getController(_collateralAddress, controllerVersion); 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); setUint(setId, _min_x);