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

Commit 0c02c77

Browse files
added relevant changes to v3 and renamed modifier
1 parent e4f7e48 commit 0c02c77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/IonicLiquidator.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ contract IonicLiquidator is OwnableUpgradeable, ILiquidator, IUniswapV2Callee, I
169169
ICErc20 cTokenCollateral,
170170
uint256 minOutputAmount
171171
) external onlyPERPermissioned(borrower, cTokenCollateral) returns (uint256) {
172-
_safeLiquidate(borrower, repayAmount, cErc20, cTokenCollateral, minOutputAmount);
172+
return _safeLiquidate(borrower, repayAmount, cErc20, cTokenCollateral, minOutputAmount);
173173
}
174174

175175
function safeLiquidatePyth(
@@ -180,7 +180,7 @@ contract IonicLiquidator is OwnableUpgradeable, ILiquidator, IUniswapV2Callee, I
180180
uint256 minOutputAmount
181181
) external returns (uint256) {
182182
require(expressRelay.isPermissioned(address(this), abi.encode(borrower)), "invalid liquidation");
183-
_safeLiquidate(borrower, repayAmount, cErc20, cTokenCollateral, minOutputAmount);
183+
return _safeLiquidate(borrower, repayAmount, cErc20, cTokenCollateral, minOutputAmount);
184184
}
185185

186186
/**

0 commit comments

Comments
 (0)