From f5d8bbf2d90101eb8fff45fd57c3d6897b2bb9d4 Mon Sep 17 00:00:00 2001 From: Veliko Minkov <2662912+vminkov@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:23:18 +0200 Subject: [PATCH] prettier --- contracts/ILiquidator.sol | 10 ++++++---- contracts/IonicLiquidator.sol | 7 +------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/contracts/ILiquidator.sol b/contracts/ILiquidator.sol index 0a3c9477..c1843433 100644 --- a/contracts/ILiquidator.sol +++ b/contracts/ILiquidator.sol @@ -6,7 +6,6 @@ import "./liquidators/IRedemptionStrategy.sol"; import "./liquidators/IFundsConversionStrategy.sol"; interface ILiquidator { - /** * borrower The borrower's Ethereum address. * repayAmount The amount to repay to liquidate the unhealthy loan. @@ -39,9 +38,12 @@ interface ILiquidator { uint256 minOutputAmount ) external returns (uint256); - function safeLiquidateToTokensWithFlashLoan(LiquidateToTokensWithFlashSwapVars calldata vars) external returns (uint256); + function safeLiquidateToTokensWithFlashLoan(LiquidateToTokensWithFlashSwapVars calldata vars) + external + returns (uint256); function _whitelistRedemptionStrategy(IRedemptionStrategy strategy, bool whitelisted) external; - function _whitelistRedemptionStrategies(IRedemptionStrategy[] calldata strategies, bool[] calldata whitelisted) external; -} \ No newline at end of file + function _whitelistRedemptionStrategies(IRedemptionStrategy[] calldata strategies, bool[] calldata whitelisted) + external; +} diff --git a/contracts/IonicLiquidator.sol b/contracts/IonicLiquidator.sol index dd3cafab..382e3752 100644 --- a/contracts/IonicLiquidator.sol +++ b/contracts/IonicLiquidator.sol @@ -282,12 +282,7 @@ contract IonicLiquidator is OwnableUpgradeable, ILiquidator, IUniswapV2Callee { } // Repay flashloan - return - repayTokenFlashLoan( - vars.cTokenCollateral, - vars.redemptionStrategies, - vars.strategyData - ); + return repayTokenFlashLoan(vars.cTokenCollateral, vars.redemptionStrategies, vars.strategyData); } /**