Skip to content

Commit

Permalink
update liquidate
Browse files Browse the repository at this point in the history
  • Loading branch information
q1q0 committed Sep 9, 2023
1 parent e59fb91 commit f9bf503
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/mainnet/connectors/crv_USD/main.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f9bf503

Please sign in to comment.