-
Notifications
You must be signed in to change notification settings - Fork 604
/
Copy pathIFuturesMarketSettings.sol
56 lines (41 loc) · 1.69 KB
/
IFuturesMarketSettings.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
pragma solidity ^0.5.16;
interface IFuturesMarketSettings {
struct Parameters {
uint takerFee;
uint makerFee;
uint takerFeeNextPrice;
uint makerFeeNextPrice;
uint nextPriceConfirmWindow;
uint maxLeverage;
uint maxMarketValueUSD;
uint maxFundingRate;
uint skewScaleUSD;
}
function takerFee(bytes32 _marketKey) external view returns (uint);
function makerFee(bytes32 _marketKey) external view returns (uint);
function takerFeeNextPrice(bytes32 _marketKey) external view returns (uint);
function makerFeeNextPrice(bytes32 _marketKey) external view returns (uint);
function nextPriceConfirmWindow(bytes32 _marketKey) external view returns (uint);
function maxLeverage(bytes32 _marketKey) external view returns (uint);
function maxMarketValueUSD(bytes32 _marketKey) external view returns (uint);
function maxFundingRate(bytes32 _marketKey) external view returns (uint);
function skewScaleUSD(bytes32 _marketKey) external view returns (uint);
function parameters(bytes32 _marketKey)
external
view
returns (
uint _takerFee,
uint _makerFee,
uint _takerFeeNextPrice,
uint _makerFeeNextPrice,
uint _nextPriceConfirmWindow,
uint _maxLeverage,
uint _maxMarketValueUSD,
uint _maxFundingRate,
uint _skewScaleUSD
);
function minKeeperFee() external view returns (uint);
function liquidationFeeRatio() external view returns (uint);
function liquidationBufferRatio() external view returns (uint);
function minInitialMargin() external view returns (uint);
}