forked from ArtemKolodko/synthetix
-
Notifications
You must be signed in to change notification settings - Fork 1
/
IPerpsV2MarketSettings.sol
85 lines (56 loc) · 3.04 KB
/
IPerpsV2MarketSettings.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
interface IPerpsV2MarketSettings {
struct Parameters {
uint takerFee;
uint makerFee;
uint takerFeeDelayedOrder;
uint makerFeeDelayedOrder;
uint takerFeeOffchainDelayedOrder;
uint makerFeeOffchainDelayedOrder;
uint maxLeverage;
uint maxMarketValue;
uint maxFundingVelocity;
uint skewScale;
uint nextPriceConfirmWindow;
uint delayedOrderConfirmWindow;
uint minDelayTimeDelta;
uint maxDelayTimeDelta;
uint offchainDelayedOrderMinAge;
uint offchainDelayedOrderMaxAge;
bytes32 offchainMarketKey;
uint offchainPriceDivergence;
uint liquidationPremiumMultiplier;
uint liquidationBufferRatio;
uint maxLiquidationDelta;
uint maxPD;
}
function takerFee(bytes32 _marketKey) external view returns (uint);
function makerFee(bytes32 _marketKey) external view returns (uint);
function takerFeeDelayedOrder(bytes32 _marketKey) external view returns (uint);
function makerFeeDelayedOrder(bytes32 _marketKey) external view returns (uint);
function takerFeeOffchainDelayedOrder(bytes32 _marketKey) external view returns (uint);
function makerFeeOffchainDelayedOrder(bytes32 _marketKey) external view returns (uint);
function nextPriceConfirmWindow(bytes32 _marketKey) external view returns (uint);
function delayedOrderConfirmWindow(bytes32 _marketKey) external view returns (uint);
function offchainDelayedOrderMinAge(bytes32 _marketKey) external view returns (uint);
function offchainDelayedOrderMaxAge(bytes32 _marketKey) external view returns (uint);
function maxLeverage(bytes32 _marketKey) external view returns (uint);
function maxMarketValue(bytes32 _marketKey) external view returns (uint);
function maxFundingVelocity(bytes32 _marketKey) external view returns (uint);
function skewScale(bytes32 _marketKey) external view returns (uint);
function minDelayTimeDelta(bytes32 _marketKey) external view returns (uint);
function maxDelayTimeDelta(bytes32 _marketKey) external view returns (uint);
function offchainMarketKey(bytes32 _marketKey) external view returns (bytes32);
function offchainPriceDivergence(bytes32 _marketKey) external view returns (uint);
function liquidationPremiumMultiplier(bytes32 _marketKey) external view returns (uint);
function maxPD(bytes32 _marketKey) external view returns (uint);
function maxLiquidationDelta(bytes32 _marketKey) external view returns (uint);
function liquidationBufferRatio(bytes32 _marketKey) external view returns (uint);
function parameters(bytes32 _marketKey) external view returns (Parameters memory);
function minKeeperFee() external view returns (uint);
function maxKeeperFee() external view returns (uint);
function liquidationFeeRatio() external view returns (uint);
function minInitialMargin() external view returns (uint);
function keeperLiquidationFee() external view returns (uint);
}