@gainsnetwork/sdk 1.0.2-rc1 → 1.0.2-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -96,6 +96,15 @@ const computeOiValues = (pairOi, tokenPriceCollateral) => {
|
|
|
96
96
|
long: totalDynamicLong,
|
|
97
97
|
short: totalDynamicShort,
|
|
98
98
|
},
|
|
99
|
+
// v10-only values for funding fee markets
|
|
100
|
+
v10StaticCollateral: {
|
|
101
|
+
long: pairOi.collateral.long,
|
|
102
|
+
short: pairOi.collateral.short,
|
|
103
|
+
},
|
|
104
|
+
v10DynamicCollateral: {
|
|
105
|
+
long: tokenLongCollateral,
|
|
106
|
+
short: tokenShortCollateral,
|
|
107
|
+
},
|
|
99
108
|
skewToken,
|
|
100
109
|
};
|
|
101
110
|
};
|
|
@@ -65,6 +65,22 @@ export interface ComputedOi {
|
|
|
65
65
|
long: number;
|
|
66
66
|
short: number;
|
|
67
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* @dev v10-only OI using static collateral values
|
|
70
|
+
* @dev Used for funding fee markets display
|
|
71
|
+
*/
|
|
72
|
+
v10StaticCollateral: {
|
|
73
|
+
long: number;
|
|
74
|
+
short: number;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @dev v10-only OI using dynamic values: token * price
|
|
78
|
+
* @dev Used for funding fee markets real-time display
|
|
79
|
+
*/
|
|
80
|
+
v10DynamicCollateral: {
|
|
81
|
+
long: number;
|
|
82
|
+
short: number;
|
|
83
|
+
};
|
|
68
84
|
/**
|
|
69
85
|
* @dev Net skew in tokens (v10+ only)
|
|
70
86
|
* @dev Positive = more longs, negative = more shorts
|