diff --git a/src/PreLiquidation.sol b/src/PreLiquidation.sol index abc057e..8038b4c 100644 --- a/src/PreLiquidation.sol +++ b/src/PreLiquidation.sol @@ -4,8 +4,7 @@ pragma solidity 0.8.27; import {Id, MarketParams, IMorpho, Position, Market} from "../lib/morpho-blue/src/interfaces/IMorpho.sol"; import {IOracle} from "../lib/morpho-blue/src/interfaces/IOracle.sol"; import {UtilsLib} from "../lib/morpho-blue/src/libraries/UtilsLib.sol"; -import {MarketParamsLib} from "../lib/morpho-blue/src/libraries/MarketParamsLib.sol"; -import "../lib/morpho-blue/src/libraries/ConstantsLib.sol"; +import {ORACLE_PRICE_SCALE} from "../lib/morpho-blue/src/libraries/ConstantsLib.sol"; import {WAD, MathLib} from "../lib/morpho-blue/src/libraries/MathLib.sol"; import {SharesMathLib} from "../lib/morpho-blue/src/libraries/SharesMathLib.sol"; import {SafeTransferLib} from "../lib/solmate/src/utils/SafeTransferLib.sol"; @@ -21,8 +20,6 @@ import {IMorphoRepayCallback} from "../lib/morpho-blue/src/interfaces/IMorphoCal /// @custom:contact security@morpho.org /// @notice The Fixed LI, Fixed CF pre-liquidation contract for Morpho. contract PreLiquidation is IPreLiquidation, IMorphoRepayCallback { - using MarketParamsLib for MarketParams; - using UtilsLib for uint256; using SharesMathLib for uint256; using MathLib for uint256; using SafeTransferLib for ERC20; @@ -104,7 +101,7 @@ contract PreLiquidation is IPreLiquidation, IMorphoRepayCallback { /* PRE-LIQUIDATION */ /// @notice Pre-liquidates the given borrower on the market of this contract and with the parameters of this contract. - /// @dev Either `seizedAssets`or `repaidShares` should be zero. + /// @dev Either `seizedAssets` or `repaidShares` should be zero. /// @param borrower The owner of the position. /// @param seizedAssets The amount of collateral to seize. /// @param repaidShares The amount of shares to repay.