@gearbox-protocol/sdk 17.3.1 → 17.5.0-next.1
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.
- package/dist/cjs/model/charts.js +5 -0
- package/dist/cjs/model/opportunities.schema.js +4 -1
- package/dist/cjs/onchain/market/credit/CreditSuiteStrategy.js +2 -0
- package/dist/cjs/sdk/opportunities/OpportunitiesNamespace.js +8 -5
- package/dist/esm/model/charts.js +5 -0
- package/dist/esm/model/opportunities.schema.js +5 -2
- package/dist/esm/onchain/market/credit/CreditSuiteStrategy.js +2 -0
- package/dist/esm/sdk/opportunities/OpportunitiesNamespace.js +8 -5
- package/dist/types/model/charts.d.ts +5 -2
- package/dist/types/model/charts.schema.d.ts +8 -0
- package/dist/types/model/opportunities.d.ts +17 -0
- package/dist/types/model/opportunities.schema.d.ts +39 -0
- package/dist/types/model/positions.schema.d.ts +9 -0
- package/package.json +1 -1
package/dist/cjs/model/charts.js
CHANGED
|
@@ -26,10 +26,13 @@ const CHART_RANGES = [
|
|
|
26
26
|
];
|
|
27
27
|
/**
|
|
28
28
|
* Every metric a pool opportunity can chart.
|
|
29
|
+
*
|
|
30
|
+
* `rewardsApyAvg7d` is the trailing seven-day average yield from rewards.
|
|
29
31
|
**/
|
|
30
32
|
const POOL_OPPORTUNITY_CHART_METRICS = [
|
|
31
33
|
"depositApy",
|
|
32
34
|
"depositApyAvg7d",
|
|
35
|
+
"rewardsApyAvg7d",
|
|
33
36
|
"dieselRate",
|
|
34
37
|
"supplied",
|
|
35
38
|
"borrowed",
|
|
@@ -44,6 +47,7 @@ const POOL_OPPORTUNITY_CHART_METRICS = [
|
|
|
44
47
|
const STRATEGY_OPPORTUNITY_CHART_METRICS = [
|
|
45
48
|
"borrowApy",
|
|
46
49
|
"borrowApyAvg7d",
|
|
50
|
+
"rewardsApyAvg7d",
|
|
47
51
|
"quotaRate",
|
|
48
52
|
"liquidationThreshold",
|
|
49
53
|
"collateralApy",
|
|
@@ -106,6 +110,7 @@ const PROTOCOL_CHART_METRICS = ["tvlUsd"];
|
|
|
106
110
|
const CHART_METRIC_UNITS = {
|
|
107
111
|
depositApy: "bps",
|
|
108
112
|
depositApyAvg7d: "bps",
|
|
113
|
+
rewardsApyAvg7d: "bps",
|
|
109
114
|
borrowApy: "bps",
|
|
110
115
|
borrowApyAvg7d: "bps",
|
|
111
116
|
quotaRate: "bps",
|
|
@@ -31,7 +31,8 @@ const tokenRewardsSchema = zod_v4.z.object({
|
|
|
31
31
|
kind: zod_v4.z.literal("token"),
|
|
32
32
|
token: require_model_primitives_schema.tokenSchema,
|
|
33
33
|
supplyApr: require_model_primitives_schema.bpsSchema.optional(),
|
|
34
|
-
borrowApr: require_model_primitives_schema.bpsSchema.optional()
|
|
34
|
+
borrowApr: require_model_primitives_schema.bpsSchema.optional(),
|
|
35
|
+
links: zod_v4.z.array(zod_v4.z.string()).optional()
|
|
35
36
|
});
|
|
36
37
|
/**
|
|
37
38
|
* {@link PointRewards}
|
|
@@ -112,6 +113,8 @@ const strategyOpportunitySchema = zod_v4.z.object({
|
|
|
112
113
|
totalValue: require_model_compare_schema.offchainOnly(require_model_primitives_schema.amountSchema).optional(),
|
|
113
114
|
utilization: require_model_compare_schema.offchainOnly(require_model_primitives_schema.bpsSchema).optional(),
|
|
114
115
|
availableLiquidity: require_model_compare_schema.tolerance(require_model_primitives_schema.amountSchema, "amount"),
|
|
116
|
+
totalSupply: require_model_compare_schema.onchainOnly(require_model_primitives_schema.amountSchema).optional(),
|
|
117
|
+
feeInterest: require_model_compare_schema.onchainOnly(require_model_primitives_schema.bpsSchema).optional(),
|
|
115
118
|
minDebt: require_model_primitives_schema.amountSchema,
|
|
116
119
|
totalDebtLimit: require_model_primitives_schema.amountSchema,
|
|
117
120
|
maxBorrowAmount: require_model_compare_schema.tolerance(require_model_primitives_schema.amountSchema, "amount"),
|
|
@@ -132,6 +132,8 @@ var CreditSuiteStrategy = class {
|
|
|
132
132
|
borrowApy: require_onchain_market_math.calcBorrowApy(pool.baseInterestRate, cm.feeInterest),
|
|
133
133
|
quotaRate: require_onchain_market_math.calcQuotaRate(market.pool.pqk.quotaRate(targetCollateral), cm.feeInterest),
|
|
134
134
|
availableLiquidity: oracle.toAmount(pool.underlying, pool.availableLiquidity),
|
|
135
|
+
totalSupply: oracle.toAmount(pool.underlying, pool.expectedLiquidity),
|
|
136
|
+
feeInterest: cm.feeInterest,
|
|
135
137
|
minDebt: oracle.toAmount(pool.underlying, suite.creditFacade.minDebt),
|
|
136
138
|
totalDebtLimit: oracle.toAmount(pool.underlying, debtParams?.limit ?? 0n),
|
|
137
139
|
maxBorrowAmount: oracle.toAmount(pool.underlying, this.maxBorrowAmount().amount.value),
|
|
@@ -23,7 +23,7 @@ var OpportunitiesNamespace = class extends require_sdk_AbstractNamespace.Abstrac
|
|
|
23
23
|
merge = {
|
|
24
24
|
list: (onchain, offchain) => require_sdk_utils_mergeChains.mergeChainList(onchain, offchain, this.maxOffchainLagSeconds),
|
|
25
25
|
pool: (onchain, offchain) => require_sdk_utils_mergeChains.mergeChainOne(onchain, offchain, this.maxOffchainLagSeconds),
|
|
26
|
-
strategy: (onchain, offchain) =>
|
|
26
|
+
strategy: (onchain, offchain) => overlayOnchainFields(require_sdk_utils_mergeChains.mergeChainOne(onchain, offchain, this.maxOffchainLagSeconds), onchain)
|
|
27
27
|
};
|
|
28
28
|
#prepare;
|
|
29
29
|
#execute;
|
|
@@ -102,17 +102,20 @@ var OpportunitiesNamespace = class extends require_sdk_AbstractNamespace.Abstrac
|
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
/**
|
|
105
|
-
* Freshness still picks the body;
|
|
106
|
-
*
|
|
105
|
+
* Freshness still picks the body; fields the backend does not serve are taken
|
|
106
|
+
* from a successful chain response.
|
|
107
107
|
**/
|
|
108
|
-
function
|
|
108
|
+
function overlayOnchainFields(merged, onchain) {
|
|
109
109
|
if (!merged || !onchain || onchain.meta.chains[0]?.status !== "success") return merged;
|
|
110
110
|
if (merged === onchain) return merged;
|
|
111
111
|
return {
|
|
112
112
|
...merged,
|
|
113
113
|
data: {
|
|
114
114
|
...merged.data,
|
|
115
|
-
kyc: onchain.data.kyc
|
|
115
|
+
kyc: onchain.data.kyc,
|
|
116
|
+
feeInterest: onchain.data.feeInterest,
|
|
117
|
+
totalSupply: onchain.data.totalSupply,
|
|
118
|
+
availableLiquidity: onchain.data.availableLiquidity
|
|
116
119
|
}
|
|
117
120
|
};
|
|
118
121
|
}
|
package/dist/esm/model/charts.js
CHANGED
|
@@ -25,10 +25,13 @@ const CHART_RANGES = [
|
|
|
25
25
|
];
|
|
26
26
|
/**
|
|
27
27
|
* Every metric a pool opportunity can chart.
|
|
28
|
+
*
|
|
29
|
+
* `rewardsApyAvg7d` is the trailing seven-day average yield from rewards.
|
|
28
30
|
**/
|
|
29
31
|
const POOL_OPPORTUNITY_CHART_METRICS = [
|
|
30
32
|
"depositApy",
|
|
31
33
|
"depositApyAvg7d",
|
|
34
|
+
"rewardsApyAvg7d",
|
|
32
35
|
"dieselRate",
|
|
33
36
|
"supplied",
|
|
34
37
|
"borrowed",
|
|
@@ -43,6 +46,7 @@ const POOL_OPPORTUNITY_CHART_METRICS = [
|
|
|
43
46
|
const STRATEGY_OPPORTUNITY_CHART_METRICS = [
|
|
44
47
|
"borrowApy",
|
|
45
48
|
"borrowApyAvg7d",
|
|
49
|
+
"rewardsApyAvg7d",
|
|
46
50
|
"quotaRate",
|
|
47
51
|
"liquidationThreshold",
|
|
48
52
|
"collateralApy",
|
|
@@ -105,6 +109,7 @@ const PROTOCOL_CHART_METRICS = ["tvlUsd"];
|
|
|
105
109
|
const CHART_METRIC_UNITS = {
|
|
106
110
|
depositApy: "bps",
|
|
107
111
|
depositApyAvg7d: "bps",
|
|
112
|
+
rewardsApyAvg7d: "bps",
|
|
108
113
|
borrowApy: "bps",
|
|
109
114
|
borrowApyAvg7d: "bps",
|
|
110
115
|
quotaRate: "bps",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZodAddress } from "../onchain/utils/zod.js";
|
|
2
|
-
import { offchainOnly, tolerance } from "./compare.schema.js";
|
|
2
|
+
import { offchainOnly, onchainOnly, tolerance } from "./compare.schema.js";
|
|
3
3
|
import { amountSchema, assetTypeSchema, bpsSchema, chainIdSchema, leverageSchema, timestampSchema, tokenSchema, underlyingTokenSchema } from "./primitives.schema.js";
|
|
4
4
|
import { isFilterSet } from "./filters.js";
|
|
5
5
|
import { booleanParamSchema, encodeFlag, filterable } from "./filters.schema.js";
|
|
@@ -30,7 +30,8 @@ const tokenRewardsSchema = z.object({
|
|
|
30
30
|
kind: z.literal("token"),
|
|
31
31
|
token: tokenSchema,
|
|
32
32
|
supplyApr: bpsSchema.optional(),
|
|
33
|
-
borrowApr: bpsSchema.optional()
|
|
33
|
+
borrowApr: bpsSchema.optional(),
|
|
34
|
+
links: z.array(z.string()).optional()
|
|
34
35
|
});
|
|
35
36
|
/**
|
|
36
37
|
* {@link PointRewards}
|
|
@@ -111,6 +112,8 @@ const strategyOpportunitySchema = z.object({
|
|
|
111
112
|
totalValue: offchainOnly(amountSchema).optional(),
|
|
112
113
|
utilization: offchainOnly(bpsSchema).optional(),
|
|
113
114
|
availableLiquidity: tolerance(amountSchema, "amount"),
|
|
115
|
+
totalSupply: onchainOnly(amountSchema).optional(),
|
|
116
|
+
feeInterest: onchainOnly(bpsSchema).optional(),
|
|
114
117
|
minDebt: amountSchema,
|
|
115
118
|
totalDebtLimit: amountSchema,
|
|
116
119
|
maxBorrowAmount: tolerance(amountSchema, "amount"),
|
|
@@ -131,6 +131,8 @@ var CreditSuiteStrategy = class {
|
|
|
131
131
|
borrowApy: calcBorrowApy(pool.baseInterestRate, cm.feeInterest),
|
|
132
132
|
quotaRate: calcQuotaRate(market.pool.pqk.quotaRate(targetCollateral), cm.feeInterest),
|
|
133
133
|
availableLiquidity: oracle.toAmount(pool.underlying, pool.availableLiquidity),
|
|
134
|
+
totalSupply: oracle.toAmount(pool.underlying, pool.expectedLiquidity),
|
|
135
|
+
feeInterest: cm.feeInterest,
|
|
134
136
|
minDebt: oracle.toAmount(pool.underlying, suite.creditFacade.minDebt),
|
|
135
137
|
totalDebtLimit: oracle.toAmount(pool.underlying, debtParams?.limit ?? 0n),
|
|
136
138
|
maxBorrowAmount: oracle.toAmount(pool.underlying, this.maxBorrowAmount().amount.value),
|
|
@@ -22,7 +22,7 @@ var OpportunitiesNamespace = class extends AbstractNamespace {
|
|
|
22
22
|
merge = {
|
|
23
23
|
list: (onchain, offchain) => mergeChainList(onchain, offchain, this.maxOffchainLagSeconds),
|
|
24
24
|
pool: (onchain, offchain) => mergeChainOne(onchain, offchain, this.maxOffchainLagSeconds),
|
|
25
|
-
strategy: (onchain, offchain) =>
|
|
25
|
+
strategy: (onchain, offchain) => overlayOnchainFields(mergeChainOne(onchain, offchain, this.maxOffchainLagSeconds), onchain)
|
|
26
26
|
};
|
|
27
27
|
#prepare;
|
|
28
28
|
#execute;
|
|
@@ -101,17 +101,20 @@ var OpportunitiesNamespace = class extends AbstractNamespace {
|
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
/**
|
|
104
|
-
* Freshness still picks the body;
|
|
105
|
-
*
|
|
104
|
+
* Freshness still picks the body; fields the backend does not serve are taken
|
|
105
|
+
* from a successful chain response.
|
|
106
106
|
**/
|
|
107
|
-
function
|
|
107
|
+
function overlayOnchainFields(merged, onchain) {
|
|
108
108
|
if (!merged || !onchain || onchain.meta.chains[0]?.status !== "success") return merged;
|
|
109
109
|
if (merged === onchain) return merged;
|
|
110
110
|
return {
|
|
111
111
|
...merged,
|
|
112
112
|
data: {
|
|
113
113
|
...merged.data,
|
|
114
|
-
kyc: onchain.data.kyc
|
|
114
|
+
kyc: onchain.data.kyc,
|
|
115
|
+
feeInterest: onchain.data.feeInterest,
|
|
116
|
+
totalSupply: onchain.data.totalSupply,
|
|
117
|
+
availableLiquidity: onchain.data.availableLiquidity
|
|
115
118
|
}
|
|
116
119
|
};
|
|
117
120
|
}
|
|
@@ -21,8 +21,10 @@ declare const CHART_RANGES: readonly ["1d", "1w", "1m", "1y", "max"];
|
|
|
21
21
|
type ChartRange = (typeof CHART_RANGES)[number];
|
|
22
22
|
/**
|
|
23
23
|
* Every metric a pool opportunity can chart.
|
|
24
|
+
*
|
|
25
|
+
* `rewardsApyAvg7d` is the trailing seven-day average yield from rewards.
|
|
24
26
|
**/
|
|
25
|
-
declare const POOL_OPPORTUNITY_CHART_METRICS: readonly ["depositApy", "depositApyAvg7d", "dieselRate", "supplied", "borrowed", "utilization"];
|
|
27
|
+
declare const POOL_OPPORTUNITY_CHART_METRICS: readonly ["depositApy", "depositApyAvg7d", "rewardsApyAvg7d", "dieselRate", "supplied", "borrowed", "utilization"];
|
|
26
28
|
/**
|
|
27
29
|
* Metric a pool opportunity can chart. Derived from the runtime list that also
|
|
28
30
|
* builds the backend's route enum, so the two cannot drift.
|
|
@@ -34,7 +36,7 @@ type PoolOpportunityChartMetric = (typeof POOL_OPPORTUNITY_CHART_METRICS)[number
|
|
|
34
36
|
* `collateralPrice` is the collateral/underlying series a liquidation-price
|
|
35
37
|
* chart draws; the two USD series are the same prices quoted in dollars.
|
|
36
38
|
**/
|
|
37
|
-
declare const STRATEGY_OPPORTUNITY_CHART_METRICS: readonly ["borrowApy", "borrowApyAvg7d", "quotaRate", "liquidationThreshold", "collateralApy", "tvl", "collateralPrice", "collateralUsdPrice", "underlyingUsdPrice"];
|
|
39
|
+
declare const STRATEGY_OPPORTUNITY_CHART_METRICS: readonly ["borrowApy", "borrowApyAvg7d", "rewardsApyAvg7d", "quotaRate", "liquidationThreshold", "collateralApy", "tvl", "collateralPrice", "collateralUsdPrice", "underlyingUsdPrice"];
|
|
38
40
|
/**
|
|
39
41
|
* Metric a strategy opportunity can chart, derived from
|
|
40
42
|
* {@link STRATEGY_OPPORTUNITY_CHART_METRICS}.
|
|
@@ -177,6 +179,7 @@ type ChartUnit =
|
|
|
177
179
|
declare const CHART_METRIC_UNITS: {
|
|
178
180
|
readonly depositApy: "bps";
|
|
179
181
|
readonly depositApyAvg7d: "bps";
|
|
182
|
+
readonly rewardsApyAvg7d: "bps";
|
|
180
183
|
readonly borrowApy: "bps";
|
|
181
184
|
readonly borrowApyAvg7d: "bps";
|
|
182
185
|
readonly quotaRate: "bps";
|
|
@@ -28,6 +28,7 @@ declare const poolOpportunityChartMetricSchema: z.ZodEnum<{
|
|
|
28
28
|
depositApy: "depositApy";
|
|
29
29
|
depositApyAvg7d: "depositApyAvg7d";
|
|
30
30
|
dieselRate: "dieselRate";
|
|
31
|
+
rewardsApyAvg7d: "rewardsApyAvg7d";
|
|
31
32
|
supplied: "supplied";
|
|
32
33
|
utilization: "utilization";
|
|
33
34
|
}>;
|
|
@@ -42,6 +43,7 @@ declare const strategyOpportunityChartMetricSchema: z.ZodEnum<{
|
|
|
42
43
|
collateralUsdPrice: "collateralUsdPrice";
|
|
43
44
|
liquidationThreshold: "liquidationThreshold";
|
|
44
45
|
quotaRate: "quotaRate";
|
|
46
|
+
rewardsApyAvg7d: "rewardsApyAvg7d";
|
|
45
47
|
tvl: "tvl";
|
|
46
48
|
underlyingUsdPrice: "underlyingUsdPrice";
|
|
47
49
|
}>;
|
|
@@ -81,6 +83,7 @@ declare const chartMetricSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
81
83
|
depositApy: "depositApy";
|
|
82
84
|
depositApyAvg7d: "depositApyAvg7d";
|
|
83
85
|
dieselRate: "dieselRate";
|
|
86
|
+
rewardsApyAvg7d: "rewardsApyAvg7d";
|
|
84
87
|
supplied: "supplied";
|
|
85
88
|
utilization: "utilization";
|
|
86
89
|
}>, z.ZodEnum<{
|
|
@@ -91,6 +94,7 @@ declare const chartMetricSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
91
94
|
collateralUsdPrice: "collateralUsdPrice";
|
|
92
95
|
liquidationThreshold: "liquidationThreshold";
|
|
93
96
|
quotaRate: "quotaRate";
|
|
97
|
+
rewardsApyAvg7d: "rewardsApyAvg7d";
|
|
94
98
|
tvl: "tvl";
|
|
95
99
|
underlyingUsdPrice: "underlyingUsdPrice";
|
|
96
100
|
}>, z.ZodEnum<{
|
|
@@ -119,6 +123,7 @@ declare const chartQuerySchema: z.ZodObject<{
|
|
|
119
123
|
depositApy: "depositApy";
|
|
120
124
|
depositApyAvg7d: "depositApyAvg7d";
|
|
121
125
|
dieselRate: "dieselRate";
|
|
126
|
+
rewardsApyAvg7d: "rewardsApyAvg7d";
|
|
122
127
|
supplied: "supplied";
|
|
123
128
|
utilization: "utilization";
|
|
124
129
|
}>, z.ZodEnum<{
|
|
@@ -129,6 +134,7 @@ declare const chartQuerySchema: z.ZodObject<{
|
|
|
129
134
|
collateralUsdPrice: "collateralUsdPrice";
|
|
130
135
|
liquidationThreshold: "liquidationThreshold";
|
|
131
136
|
quotaRate: "quotaRate";
|
|
137
|
+
rewardsApyAvg7d: "rewardsApyAvg7d";
|
|
132
138
|
tvl: "tvl";
|
|
133
139
|
underlyingUsdPrice: "underlyingUsdPrice";
|
|
134
140
|
}>, z.ZodEnum<{
|
|
@@ -194,6 +200,7 @@ declare const chartQueryCodec: z.ZodCodec<z.ZodObject<{
|
|
|
194
200
|
depositApy: "depositApy";
|
|
195
201
|
depositApyAvg7d: "depositApyAvg7d";
|
|
196
202
|
dieselRate: "dieselRate";
|
|
203
|
+
rewardsApyAvg7d: "rewardsApyAvg7d";
|
|
197
204
|
supplied: "supplied";
|
|
198
205
|
utilization: "utilization";
|
|
199
206
|
}>, z.ZodEnum<{
|
|
@@ -204,6 +211,7 @@ declare const chartQueryCodec: z.ZodCodec<z.ZodObject<{
|
|
|
204
211
|
collateralUsdPrice: "collateralUsdPrice";
|
|
205
212
|
liquidationThreshold: "liquidationThreshold";
|
|
206
213
|
quotaRate: "quotaRate";
|
|
214
|
+
rewardsApyAvg7d: "rewardsApyAvg7d";
|
|
207
215
|
tvl: "tvl";
|
|
208
216
|
underlyingUsdPrice: "underlyingUsdPrice";
|
|
209
217
|
}>, z.ZodEnum<{
|
|
@@ -60,6 +60,10 @@ interface TokenRewards {
|
|
|
60
60
|
* @example `45` for +0.45% APR
|
|
61
61
|
**/
|
|
62
62
|
borrowApr?: Bps;
|
|
63
|
+
/**
|
|
64
|
+
* Links with more information about the rewards program.
|
|
65
|
+
**/
|
|
66
|
+
links?: string[];
|
|
63
67
|
}
|
|
64
68
|
/**
|
|
65
69
|
* Rewards accrued as points rather than tokens.
|
|
@@ -325,6 +329,19 @@ interface StrategyOpportunity extends OpportunityBase {
|
|
|
325
329
|
* underlying. Same value the market's {@link PoolOpportunity} reports.
|
|
326
330
|
**/
|
|
327
331
|
availableLiquidity: Amount;
|
|
332
|
+
/**
|
|
333
|
+
* Size of the pool the strategy borrows from, `pool.expectedLiquidity`.
|
|
334
|
+
* Same value the market's {@link PoolOpportunity} reports.
|
|
335
|
+
*
|
|
336
|
+
* @mode onchain
|
|
337
|
+
**/
|
|
338
|
+
totalSupply?: Amount;
|
|
339
|
+
/**
|
|
340
|
+
* Percentage of accrued interest in bps taken by the protocol as profit.
|
|
341
|
+
*
|
|
342
|
+
* @mode onchain
|
|
343
|
+
**/
|
|
344
|
+
feeInterest?: Bps;
|
|
328
345
|
/**
|
|
329
346
|
* Smallest debt a position in this credit manager may hold, denominated in
|
|
330
347
|
* the underlying (`creditFacade.minDebt`).
|
|
@@ -31,6 +31,7 @@ declare const tokenRewardsSchema: z.ZodObject<{
|
|
|
31
31
|
}, z.core.$strip>;
|
|
32
32
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
33
33
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
35
|
}, z.core.$strip>;
|
|
35
36
|
/**
|
|
36
37
|
* {@link PointRewards}
|
|
@@ -58,6 +59,7 @@ declare const rewardsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
58
59
|
}, z.core.$strip>;
|
|
59
60
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
60
61
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
63
|
}, z.core.$strip>, z.ZodObject<{
|
|
62
64
|
kind: z.ZodLiteral<"point">;
|
|
63
65
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -84,6 +86,7 @@ declare const apyBreakdownSchema: z.ZodObject<{
|
|
|
84
86
|
}, z.core.$strip>;
|
|
85
87
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
86
88
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
87
90
|
}, z.core.$strip>, z.ZodObject<{
|
|
88
91
|
kind: z.ZodLiteral<"point">;
|
|
89
92
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -242,6 +245,7 @@ declare const poolOpportunitySchema: z.ZodObject<{
|
|
|
242
245
|
}, z.core.$strip>;
|
|
243
246
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
244
247
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
245
249
|
}, z.core.$strip>, z.ZodObject<{
|
|
246
250
|
kind: z.ZodLiteral<"point">;
|
|
247
251
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -266,6 +270,7 @@ declare const poolOpportunitySchema: z.ZodObject<{
|
|
|
266
270
|
}, z.core.$strip>;
|
|
267
271
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
268
272
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
269
274
|
}, z.core.$strip>, z.ZodObject<{
|
|
270
275
|
kind: z.ZodLiteral<"point">;
|
|
271
276
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -379,6 +384,7 @@ declare const strategyOpportunitySchema: z.ZodObject<{
|
|
|
379
384
|
}, z.core.$strip>;
|
|
380
385
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
381
386
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
382
388
|
}, z.core.$strip>, z.ZodObject<{
|
|
383
389
|
kind: z.ZodLiteral<"point">;
|
|
384
390
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -403,6 +409,7 @@ declare const strategyOpportunitySchema: z.ZodObject<{
|
|
|
403
409
|
}, z.core.$strip>;
|
|
404
410
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
405
411
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
412
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
406
413
|
}, z.core.$strip>, z.ZodObject<{
|
|
407
414
|
kind: z.ZodLiteral<"point">;
|
|
408
415
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -425,6 +432,11 @@ declare const strategyOpportunitySchema: z.ZodObject<{
|
|
|
425
432
|
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
426
433
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
427
434
|
}, z.core.$strip>;
|
|
435
|
+
totalSupply: z.ZodOptional<z.ZodObject<{
|
|
436
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
437
|
+
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
438
|
+
}, z.core.$strip>>;
|
|
439
|
+
feeInterest: z.ZodOptional<z.ZodNumber>;
|
|
428
440
|
minDebt: z.ZodObject<{
|
|
429
441
|
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
430
442
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
@@ -514,6 +526,7 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
514
526
|
}, z.core.$strip>;
|
|
515
527
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
516
528
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
529
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
517
530
|
}, z.core.$strip>, z.ZodObject<{
|
|
518
531
|
kind: z.ZodLiteral<"point">;
|
|
519
532
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -538,6 +551,7 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
538
551
|
}, z.core.$strip>;
|
|
539
552
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
540
553
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
554
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
541
555
|
}, z.core.$strip>, z.ZodObject<{
|
|
542
556
|
kind: z.ZodLiteral<"point">;
|
|
543
557
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -647,6 +661,7 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
647
661
|
}, z.core.$strip>;
|
|
648
662
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
649
663
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
664
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
650
665
|
}, z.core.$strip>, z.ZodObject<{
|
|
651
666
|
kind: z.ZodLiteral<"point">;
|
|
652
667
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -671,6 +686,7 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
671
686
|
}, z.core.$strip>;
|
|
672
687
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
673
688
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
689
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
674
690
|
}, z.core.$strip>, z.ZodObject<{
|
|
675
691
|
kind: z.ZodLiteral<"point">;
|
|
676
692
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -693,6 +709,11 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
693
709
|
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
694
710
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
695
711
|
}, z.core.$strip>;
|
|
712
|
+
totalSupply: z.ZodOptional<z.ZodObject<{
|
|
713
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
714
|
+
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
715
|
+
}, z.core.$strip>>;
|
|
716
|
+
feeInterest: z.ZodOptional<z.ZodNumber>;
|
|
696
717
|
minDebt: z.ZodObject<{
|
|
697
718
|
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
698
719
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
@@ -889,6 +910,7 @@ declare const poolOpportunityDetailSchema: z.ZodObject<{
|
|
|
889
910
|
}, z.core.$strip>;
|
|
890
911
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
891
912
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
913
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
892
914
|
}, z.core.$strip>, z.ZodObject<{
|
|
893
915
|
kind: z.ZodLiteral<"point">;
|
|
894
916
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -913,6 +935,7 @@ declare const poolOpportunityDetailSchema: z.ZodObject<{
|
|
|
913
935
|
}, z.core.$strip>;
|
|
914
936
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
915
937
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
938
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
916
939
|
}, z.core.$strip>, z.ZodObject<{
|
|
917
940
|
kind: z.ZodLiteral<"point">;
|
|
918
941
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -1034,6 +1057,7 @@ declare const strategyOpportunityDetailSchema: z.ZodObject<{
|
|
|
1034
1057
|
}, z.core.$strip>;
|
|
1035
1058
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
1036
1059
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
1060
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1037
1061
|
}, z.core.$strip>, z.ZodObject<{
|
|
1038
1062
|
kind: z.ZodLiteral<"point">;
|
|
1039
1063
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -1058,6 +1082,7 @@ declare const strategyOpportunityDetailSchema: z.ZodObject<{
|
|
|
1058
1082
|
}, z.core.$strip>;
|
|
1059
1083
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
1060
1084
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
1085
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1061
1086
|
}, z.core.$strip>, z.ZodObject<{
|
|
1062
1087
|
kind: z.ZodLiteral<"point">;
|
|
1063
1088
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -1080,6 +1105,11 @@ declare const strategyOpportunityDetailSchema: z.ZodObject<{
|
|
|
1080
1105
|
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
1081
1106
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
1082
1107
|
}, z.core.$strip>;
|
|
1108
|
+
totalSupply: z.ZodOptional<z.ZodObject<{
|
|
1109
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
1110
|
+
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
1111
|
+
}, z.core.$strip>>;
|
|
1112
|
+
feeInterest: z.ZodOptional<z.ZodNumber>;
|
|
1083
1113
|
minDebt: z.ZodObject<{
|
|
1084
1114
|
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
1085
1115
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1209,6 +1239,7 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1209
1239
|
}, z.core.$strip>;
|
|
1210
1240
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
1211
1241
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
1242
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1212
1243
|
}, z.core.$strip>, z.ZodObject<{
|
|
1213
1244
|
kind: z.ZodLiteral<"point">;
|
|
1214
1245
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -1233,6 +1264,7 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1233
1264
|
}, z.core.$strip>;
|
|
1234
1265
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
1235
1266
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
1267
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1236
1268
|
}, z.core.$strip>, z.ZodObject<{
|
|
1237
1269
|
kind: z.ZodLiteral<"point">;
|
|
1238
1270
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -1350,6 +1382,7 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1350
1382
|
}, z.core.$strip>;
|
|
1351
1383
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
1352
1384
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
1385
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1353
1386
|
}, z.core.$strip>, z.ZodObject<{
|
|
1354
1387
|
kind: z.ZodLiteral<"point">;
|
|
1355
1388
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -1374,6 +1407,7 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1374
1407
|
}, z.core.$strip>;
|
|
1375
1408
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
1376
1409
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
1410
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1377
1411
|
}, z.core.$strip>, z.ZodObject<{
|
|
1378
1412
|
kind: z.ZodLiteral<"point">;
|
|
1379
1413
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -1396,6 +1430,11 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1396
1430
|
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
1397
1431
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
1398
1432
|
}, z.core.$strip>;
|
|
1433
|
+
totalSupply: z.ZodOptional<z.ZodObject<{
|
|
1434
|
+
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
1435
|
+
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
1436
|
+
}, z.core.$strip>>;
|
|
1437
|
+
feeInterest: z.ZodOptional<z.ZodNumber>;
|
|
1399
1438
|
minDebt: z.ZodObject<{
|
|
1400
1439
|
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
1401
1440
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
@@ -207,6 +207,7 @@ declare const poolPositionSchema: z.ZodObject<{
|
|
|
207
207
|
}, z.core.$strip>;
|
|
208
208
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
209
209
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
211
|
}, z.core.$strip>, z.ZodObject<{
|
|
211
212
|
kind: z.ZodLiteral<"point">;
|
|
212
213
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -231,6 +232,7 @@ declare const poolPositionSchema: z.ZodObject<{
|
|
|
231
232
|
}, z.core.$strip>;
|
|
232
233
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
233
234
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
234
236
|
}, z.core.$strip>, z.ZodObject<{
|
|
235
237
|
kind: z.ZodLiteral<"point">;
|
|
236
238
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -365,6 +367,7 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
365
367
|
}, z.core.$strip>;
|
|
366
368
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
367
369
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
370
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
368
371
|
}, z.core.$strip>, z.ZodObject<{
|
|
369
372
|
kind: z.ZodLiteral<"point">;
|
|
370
373
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -389,6 +392,7 @@ declare const strategyPositionSchema: z.ZodObject<{
|
|
|
389
392
|
}, z.core.$strip>;
|
|
390
393
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
391
394
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
392
396
|
}, z.core.$strip>, z.ZodObject<{
|
|
393
397
|
kind: z.ZodLiteral<"point">;
|
|
394
398
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -591,6 +595,7 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
591
595
|
}, z.core.$strip>;
|
|
592
596
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
593
597
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
598
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
594
599
|
}, z.core.$strip>, z.ZodObject<{
|
|
595
600
|
kind: z.ZodLiteral<"point">;
|
|
596
601
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -615,6 +620,7 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
615
620
|
}, z.core.$strip>;
|
|
616
621
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
617
622
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
623
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
618
624
|
}, z.core.$strip>, z.ZodObject<{
|
|
619
625
|
kind: z.ZodLiteral<"point">;
|
|
620
626
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -712,6 +718,7 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
712
718
|
}, z.core.$strip>;
|
|
713
719
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
714
720
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
721
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
715
722
|
}, z.core.$strip>, z.ZodObject<{
|
|
716
723
|
kind: z.ZodLiteral<"point">;
|
|
717
724
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -736,6 +743,7 @@ declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
736
743
|
}, z.core.$strip>;
|
|
737
744
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
738
745
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
746
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
739
747
|
}, z.core.$strip>, z.ZodObject<{
|
|
740
748
|
kind: z.ZodLiteral<"point">;
|
|
741
749
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -1011,6 +1019,7 @@ declare const positionsTotalsSchema: z.ZodObject<{
|
|
|
1011
1019
|
}, z.core.$strip>;
|
|
1012
1020
|
supplyApr: z.ZodOptional<z.ZodNumber>;
|
|
1013
1021
|
borrowApr: z.ZodOptional<z.ZodNumber>;
|
|
1022
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1014
1023
|
}, z.core.$strip>, z.ZodObject<{
|
|
1015
1024
|
kind: z.ZodLiteral<"point">;
|
|
1016
1025
|
points: z.ZodArray<z.ZodObject<{
|