forked from sherlock-audit/2024-11-autonomint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIBorrowLiquidation.sol
More file actions
33 lines (26 loc) · 840 Bytes
/
IBorrowLiquidation.sol
File metadata and controls
33 lines (26 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
import "./CDSInterface.sol";
import "./IBorrowing.sol";
interface IBorrowLiquidation {
error BorrowLiquidation_LiquidateBurnFailed();
error BorrowLiq_ApproveFailed();
function liquidateBorrowPosition(
address user,
uint64 index,
uint64 currentEthPrice,
IBorrowing.LiquidationType liquidationType,
uint256 lastCumulativeRate
) external payable returns (CDSInterface.LiquidationInfo memory);
function closeThePositionInSynthetix() external;
function executeOrdersInSynthetix(
bytes[] calldata priceUpdateData
) external;
event Liquidate(
uint64 index,
uint128 liquidationAmount,
uint128 profits,
uint128 ethAmount,
uint256 availableLiquidationAmount
);
}