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

Commit f211003

Browse files
changed ILiquidator interface
1 parent e16b3bc commit f211003

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

contracts/ILiquidator.sol

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,20 @@ interface ILiquidator {
3939
bool redeemCollateral
4040
) external returns (uint256);
4141

42-
function safeLiquidateToTokensWithFlashLoan(LiquidateToTokensWithFlashSwapVars calldata vars)
43-
external
44-
returns (uint256);
42+
function safeLiquidateToTokensWithFlashLoan(
43+
LiquidateToTokensWithFlashSwapVars calldata vars
44+
) external returns (uint256);
4545

4646
function _whitelistRedemptionStrategy(IRedemptionStrategy strategy, bool whitelisted) external;
4747

48-
function _whitelistRedemptionStrategies(IRedemptionStrategy[] calldata strategies, bool[] calldata whitelisted)
49-
external;
48+
function _whitelistRedemptionStrategies(
49+
IRedemptionStrategy[] calldata strategies,
50+
bool[] calldata whitelisted
51+
) external;
52+
53+
function setExpressRelay(address _expressRelay) external;
54+
55+
function setPoolLens(address _poolLens) external;
56+
57+
function setHealthFactorThreshold(uint256 _healthFactorThreshold) external;
5058
}

contracts/IonicLiquidator.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ contract IonicLiquidator is OwnableUpgradeable, ILiquidator, IUniswapV2Callee, I
451451
expressRelay = IExpressRelay(_expressRelay);
452452
}
453453

454-
function setPoolLens(PoolLens _poolLens) external onlyOwner {
455-
lens = _poolLens;
454+
function setPoolLens(address _poolLens) external onlyOwner {
455+
lens = PoolLens(_poolLens);
456456
}
457457

458458
function setHealthFactorThreshold(uint256 _healthFactorThreshold) external onlyOwner {

contracts/IonicUniV3Liquidator.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ contract IonicUniV3Liquidator is OwnableUpgradeable, ILiquidator, IUniswapV3Flas
386386
expressRelay = IExpressRelay(_expressRelay);
387387
}
388388

389-
function setPoolLens(PoolLens _poolLens) external onlyOwner {
390-
lens = _poolLens;
389+
function setPoolLens(address _poolLens) external onlyOwner {
390+
lens = PoolLens(_poolLens);
391391
}
392392

393393
function setHealthFactorThreshold(uint256 _healthFactorThreshold) external onlyOwner {

contracts/test/liquidators/IonicLiquidatorTest.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ contract IonicLiquidatorTest is UpgradesBaseTest {
196196
vm.stopPrank();
197197

198198
vm.startPrank(0x1155b614971f16758C92c4890eD338C9e3ede6b7);
199-
liquidatorV3.setPoolLens(lens);
199+
liquidatorV3.setPoolLens(address(lens));
200200
liquidatorV3.setHealthFactorThreshold(1e18);
201201
vm.stopPrank();
202202

0 commit comments

Comments
 (0)