forked from sherlock-audit/2023-06-symmetrical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IPartyAEvents.sol
66 lines (58 loc) · 1.72 KB
/
IPartyAEvents.sol
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// SPDX-License-Identifier: SYMM-Core-Business-Source-License-1.1
// This contract is licensed under the SYMM Core Business Source License 1.1
// Copyright (c) 2023 Symmetry Labs AG
// For more information, see https://docs.symm.io/legal-disclaimer/license
pragma solidity >=0.8.18;
import "../../storages/QuoteStorage.sol";
interface IPartyAEvents {
event SendQuote(
address partyA,
uint256 quoteId,
address[] partyBsWhiteList,
uint256 symbolId,
PositionType positionType,
OrderType orderType,
uint256 price,
uint256 marketPrice,
uint256 quantity,
uint256 cva,
uint256 mm,
uint256 lf,
uint256 maxInterestRate,
uint256 deadline,
QuoteStatus quoteStatus
);
event ExpireQuote(QuoteStatus quoteStatus, uint256 quoteId);
event RequestToCancelQuote(
address partyA,
address partyB,
QuoteStatus quoteStatus,
uint256 quoteId
);
event RequestToClosePosition(
address partyA,
address partyB,
uint256 quoteId,
uint256 closePrice,
uint256 quantityToClose,
OrderType orderType,
uint256 deadline,
QuoteStatus quoteStatus
);
event RequestToCancelCloseRequest(
address partyA,
address partyB,
uint256 quoteId,
QuoteStatus quoteStatus
);
event ForceCancelQuote(uint256 quoteId, QuoteStatus quoteStatus);
event ForceCancelCloseRequest(uint256 quoteId, QuoteStatus quoteStatus);
event ForceClosePosition(
uint256 quoteId,
address partyA,
address partyB,
uint256 filledAmount,
uint256 closedPrice,
QuoteStatus quoteStatus
);
}