-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] | ||
/// @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. | ||
|