Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 5f91700

Browse files
reverted to old interface
1 parent f211003 commit 5f91700

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

contracts/ILiquidator.sol

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ interface ILiquidator {
3535
uint256 repayAmount,
3636
ICErc20 cErc20,
3737
ICErc20 cTokenCollateral,
38-
uint256 minOutputAmount,
39-
bool redeemCollateral
38+
uint256 minOutputAmount
4039
) external returns (uint256);
4140

4241
function safeLiquidateToTokensWithFlashLoan(

contracts/IonicLiquidator.sol

+1-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ contract IonicLiquidator is OwnableUpgradeable, ILiquidator, IUniswapV2Callee, I
134134
uint256 repayAmount,
135135
ICErc20 cErc20,
136136
ICErc20 cTokenCollateral,
137-
uint256 minOutputAmount,
138-
bool redeemCollateral
137+
uint256 minOutputAmount
139138
) external onlyPERPermissioned(borrower, cTokenCollateral) returns (uint256) {
140139
// Transfer tokens in, approve to cErc20, and liquidate borrow
141140
require(repayAmount > 0, "Repay amount (transaction value) must be greater than 0.");

contracts/IonicUniV3Liquidator.sol

+1-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ contract IonicUniV3Liquidator is OwnableUpgradeable, ILiquidator, IUniswapV3Flas
9393
uint256 repayAmount,
9494
ICErc20 cErc20,
9595
ICErc20 cTokenCollateral,
96-
uint256 minOutputAmount,
97-
bool redeemCollateral
96+
uint256 minOutputAmount
9897
) external onlyPERPermissioned(borrower, cTokenCollateral) returns (uint256) {
9998
// Transfer tokens in, approve to cErc20, and liquidate borrow
10099
require(repayAmount > 0, "Repay amount (transaction value) must be greater than 0.");

0 commit comments

Comments
 (0)