@gearbox-protocol/sdk 17.5.0-next.1 → 17.6.0

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.
@@ -41,6 +41,7 @@ const POOL_OPPORTUNITY_CHART_METRICS = [
41
41
  /**
42
42
  * Every metric a strategy opportunity can chart.
43
43
  *
44
+ * `quotaRateAvg7d` is the trailing seven-day average quota rate.
44
45
  * `collateralPrice` is the collateral/underlying series a liquidation-price
45
46
  * chart draws; the two USD series are the same prices quoted in dollars.
46
47
  **/
@@ -49,6 +50,7 @@ const STRATEGY_OPPORTUNITY_CHART_METRICS = [
49
50
  "borrowApyAvg7d",
50
51
  "rewardsApyAvg7d",
51
52
  "quotaRate",
53
+ "quotaRateAvg7d",
52
54
  "liquidationThreshold",
53
55
  "collateralApy",
54
56
  "tvl",
@@ -114,6 +116,7 @@ const CHART_METRIC_UNITS = {
114
116
  borrowApy: "bps",
115
117
  borrowApyAvg7d: "bps",
116
118
  quotaRate: "bps",
119
+ quotaRateAvg7d: "bps",
117
120
  liquidationThreshold: "bps",
118
121
  collateralApy: "bps",
119
122
  supplied: "token",
@@ -40,6 +40,7 @@ const POOL_OPPORTUNITY_CHART_METRICS = [
40
40
  /**
41
41
  * Every metric a strategy opportunity can chart.
42
42
  *
43
+ * `quotaRateAvg7d` is the trailing seven-day average quota rate.
43
44
  * `collateralPrice` is the collateral/underlying series a liquidation-price
44
45
  * chart draws; the two USD series are the same prices quoted in dollars.
45
46
  **/
@@ -48,6 +49,7 @@ const STRATEGY_OPPORTUNITY_CHART_METRICS = [
48
49
  "borrowApyAvg7d",
49
50
  "rewardsApyAvg7d",
50
51
  "quotaRate",
52
+ "quotaRateAvg7d",
51
53
  "liquidationThreshold",
52
54
  "collateralApy",
53
55
  "tvl",
@@ -113,6 +115,7 @@ const CHART_METRIC_UNITS = {
113
115
  borrowApy: "bps",
114
116
  borrowApyAvg7d: "bps",
115
117
  quotaRate: "bps",
118
+ quotaRateAvg7d: "bps",
116
119
  liquidationThreshold: "bps",
117
120
  collateralApy: "bps",
118
121
  supplied: "token",
@@ -33,10 +33,11 @@ type PoolOpportunityChartMetric = (typeof POOL_OPPORTUNITY_CHART_METRICS)[number
33
33
  /**
34
34
  * Every metric a strategy opportunity can chart.
35
35
  *
36
+ * `quotaRateAvg7d` is the trailing seven-day average quota rate.
36
37
  * `collateralPrice` is the collateral/underlying series a liquidation-price
37
38
  * chart draws; the two USD series are the same prices quoted in dollars.
38
39
  **/
39
- declare const STRATEGY_OPPORTUNITY_CHART_METRICS: readonly ["borrowApy", "borrowApyAvg7d", "rewardsApyAvg7d", "quotaRate", "liquidationThreshold", "collateralApy", "tvl", "collateralPrice", "collateralUsdPrice", "underlyingUsdPrice"];
40
+ declare const STRATEGY_OPPORTUNITY_CHART_METRICS: readonly ["borrowApy", "borrowApyAvg7d", "rewardsApyAvg7d", "quotaRate", "quotaRateAvg7d", "liquidationThreshold", "collateralApy", "tvl", "collateralPrice", "collateralUsdPrice", "underlyingUsdPrice"];
40
41
  /**
41
42
  * Metric a strategy opportunity can chart, derived from
42
43
  * {@link STRATEGY_OPPORTUNITY_CHART_METRICS}.
@@ -183,6 +184,7 @@ declare const CHART_METRIC_UNITS: {
183
184
  readonly borrowApy: "bps";
184
185
  readonly borrowApyAvg7d: "bps";
185
186
  readonly quotaRate: "bps";
187
+ readonly quotaRateAvg7d: "bps";
186
188
  readonly liquidationThreshold: "bps";
187
189
  readonly collateralApy: "bps";
188
190
  readonly supplied: "token";
@@ -43,6 +43,7 @@ declare const strategyOpportunityChartMetricSchema: z.ZodEnum<{
43
43
  collateralUsdPrice: "collateralUsdPrice";
44
44
  liquidationThreshold: "liquidationThreshold";
45
45
  quotaRate: "quotaRate";
46
+ quotaRateAvg7d: "quotaRateAvg7d";
46
47
  rewardsApyAvg7d: "rewardsApyAvg7d";
47
48
  tvl: "tvl";
48
49
  underlyingUsdPrice: "underlyingUsdPrice";
@@ -94,6 +95,7 @@ declare const chartMetricSchema: z.ZodUnion<readonly [z.ZodEnum<{
94
95
  collateralUsdPrice: "collateralUsdPrice";
95
96
  liquidationThreshold: "liquidationThreshold";
96
97
  quotaRate: "quotaRate";
98
+ quotaRateAvg7d: "quotaRateAvg7d";
97
99
  rewardsApyAvg7d: "rewardsApyAvg7d";
98
100
  tvl: "tvl";
99
101
  underlyingUsdPrice: "underlyingUsdPrice";
@@ -134,6 +136,7 @@ declare const chartQuerySchema: z.ZodObject<{
134
136
  collateralUsdPrice: "collateralUsdPrice";
135
137
  liquidationThreshold: "liquidationThreshold";
136
138
  quotaRate: "quotaRate";
139
+ quotaRateAvg7d: "quotaRateAvg7d";
137
140
  rewardsApyAvg7d: "rewardsApyAvg7d";
138
141
  tvl: "tvl";
139
142
  underlyingUsdPrice: "underlyingUsdPrice";
@@ -211,6 +214,7 @@ declare const chartQueryCodec: z.ZodCodec<z.ZodObject<{
211
214
  collateralUsdPrice: "collateralUsdPrice";
212
215
  liquidationThreshold: "liquidationThreshold";
213
216
  quotaRate: "quotaRate";
217
+ quotaRateAvg7d: "quotaRateAvg7d";
214
218
  rewardsApyAvg7d: "rewardsApyAvg7d";
215
219
  tvl: "tvl";
216
220
  underlyingUsdPrice: "underlyingUsdPrice";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "17.5.0-next.1",
3
+ "version": "17.6.0",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "repository": {