@kasarlabs/vesu-mcp 0.1.3 → 0.1.5
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/build/index.js +86 -6
- package/build/index.js.map +1 -1
- package/build/interfaces/index.d.ts +661 -8
- package/build/interfaces/index.js +57 -1
- package/build/interfaces/index.js.map +1 -1
- package/build/lib/abis/ekuboCore.d.ts +92 -0
- package/build/lib/abis/ekuboCore.js +1341 -0
- package/build/lib/abis/ekuboCore.js.map +1 -0
- package/build/lib/abis/multiplyAbi.d.ts +245 -0
- package/build/lib/abis/multiplyAbi.js +341 -0
- package/build/lib/abis/multiplyAbi.js.map +1 -0
- package/build/lib/abis/poolAbi.d.ts +289 -0
- package/build/lib/abis/poolAbi.js +402 -0
- package/build/lib/abis/poolAbi.js.map +1 -0
- package/build/lib/abis/routerAbi.d.ts +88 -0
- package/build/lib/abis/routerAbi.js +86 -0
- package/build/lib/abis/routerAbi.js.map +1 -0
- package/build/lib/constants/index.d.ts +9 -3
- package/build/lib/constants/index.js +8 -3
- package/build/lib/constants/index.js.map +1 -1
- package/build/lib/utils/contracts.d.ts +564 -17
- package/build/lib/utils/contracts.js +39 -5
- package/build/lib/utils/contracts.js.map +1 -1
- package/build/lib/utils/ekubo.d.ts +55 -0
- package/build/lib/utils/ekubo.js +81 -0
- package/build/lib/utils/ekubo.js.map +1 -0
- package/build/lib/utils/getEkuboQuote.d.ts +4 -0
- package/build/lib/utils/getEkuboQuote.js +116 -0
- package/build/lib/utils/getEkuboQuote.js.map +1 -0
- package/build/lib/utils/math.d.ts +8 -0
- package/build/lib/utils/math.js +22 -0
- package/build/lib/utils/math.js.map +1 -0
- package/build/lib/utils/multiplyCalls.d.ts +10 -0
- package/build/lib/utils/multiplyCalls.js +248 -0
- package/build/lib/utils/multiplyCalls.js.map +1 -0
- package/build/lib/utils/pools.d.ts +8 -0
- package/build/lib/utils/pools.js +71 -0
- package/build/lib/utils/pools.js.map +1 -0
- package/build/lib/utils/tokens.d.ts +6 -0
- package/build/lib/utils/tokens.js +23 -0
- package/build/lib/utils/tokens.js.map +1 -0
- package/build/schemas/index.d.ts +176 -0
- package/build/schemas/index.js +201 -1
- package/build/schemas/index.js.map +1 -1
- package/build/tools/read/getPools.d.ts +3 -0
- package/build/tools/read/getPools.js +57 -0
- package/build/tools/read/getPools.js.map +1 -0
- package/build/tools/read/getPositions.d.ts +3 -0
- package/build/tools/read/getPositions.js +43 -0
- package/build/tools/read/getPositions.js.map +1 -0
- package/build/tools/read/getTokens.d.ts +3 -0
- package/build/tools/read/getTokens.js +58 -0
- package/build/tools/read/getTokens.js.map +1 -0
- package/build/tools/write/deposit_borrow.d.ts +10 -0
- package/build/tools/write/deposit_borrow.js +312 -0
- package/build/tools/write/deposit_borrow.js.map +1 -0
- package/build/tools/write/deposit_earn.d.ts +10 -0
- package/build/tools/write/deposit_earn.js +82 -0
- package/build/tools/write/deposit_earn.js.map +1 -0
- package/build/tools/write/deposit_multiply.d.ts +10 -0
- package/build/tools/write/deposit_multiply.js +140 -0
- package/build/tools/write/deposit_multiply.js.map +1 -0
- package/build/tools/write/repay_borrow.d.ts +10 -0
- package/build/tools/write/repay_borrow.js +358 -0
- package/build/tools/write/repay_borrow.js.map +1 -0
- package/build/tools/write/update_multiply.d.ts +10 -0
- package/build/tools/write/update_multiply.js +264 -0
- package/build/tools/write/update_multiply.js.map +1 -0
- package/build/tools/write/withdraw_earn.d.ts +10 -0
- package/build/tools/write/withdraw_earn.js +116 -0
- package/build/tools/write/withdraw_earn.js.map +1 -0
- package/build/tools/write/withdraw_multiply.d.ts +9 -0
- package/build/tools/write/withdraw_multiply.js +187 -0
- package/build/tools/write/withdraw_multiply.js.map +1 -0
- package/package.json +10 -5
- package/build/lib/abis/erc20Abi.d.ts +0 -89
- package/build/lib/abis/erc20Abi.js +0 -128
- package/build/lib/abis/erc20Abi.js.map +0 -1
- package/build/tools/depositService.d.ts +0 -19
- package/build/tools/depositService.js +0 -117
- package/build/tools/depositService.js.map +0 -1
- package/build/tools/withdrawService.d.ts +0 -20
- package/build/tools/withdrawService.js +0 -122
- package/build/tools/withdrawService.js.map +0 -1
|
@@ -48,8 +48,9 @@ export interface IPool {
|
|
|
48
48
|
id: string;
|
|
49
49
|
name: string;
|
|
50
50
|
owner: Hex;
|
|
51
|
-
extensionContractAddress: Hex;
|
|
51
|
+
extensionContractAddress: Hex | null;
|
|
52
52
|
isVerified: boolean;
|
|
53
|
+
protocolVersion: 'v1' | 'v2';
|
|
53
54
|
assets: IPoolAsset[];
|
|
54
55
|
stats?: {
|
|
55
56
|
usdTotalSupplied: ITokenValue;
|
|
@@ -61,33 +62,60 @@ export declare const poolParser: z.ZodObject<{
|
|
|
61
62
|
id: z.ZodString;
|
|
62
63
|
name: z.ZodString;
|
|
63
64
|
owner: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
64
|
-
extensionContractAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string
|
|
65
|
+
extensionContractAddress: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>>;
|
|
65
66
|
isVerified: z.ZodBoolean;
|
|
67
|
+
protocolVersion: z.ZodEnum<["v1", "v2"]>;
|
|
66
68
|
assets: z.ZodAny;
|
|
67
69
|
pairs: z.ZodAny;
|
|
68
70
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
name: string;
|
|
70
71
|
id: string;
|
|
72
|
+
name: string;
|
|
71
73
|
owner: `0x${string}`;
|
|
72
|
-
extensionContractAddress: `0x${string}
|
|
74
|
+
extensionContractAddress: `0x${string}` | null;
|
|
73
75
|
isVerified: boolean;
|
|
76
|
+
protocolVersion: "v1" | "v2";
|
|
74
77
|
assets?: any;
|
|
75
78
|
pairs?: any;
|
|
76
79
|
}, {
|
|
77
|
-
name: string;
|
|
78
80
|
id: string;
|
|
81
|
+
name: string;
|
|
79
82
|
owner: string;
|
|
80
|
-
extensionContractAddress: string;
|
|
83
|
+
extensionContractAddress: string | null;
|
|
81
84
|
isVerified: boolean;
|
|
85
|
+
protocolVersion: "v1" | "v2";
|
|
82
86
|
assets?: any;
|
|
83
87
|
pairs?: any;
|
|
84
88
|
}>;
|
|
85
89
|
export interface DepositParams {
|
|
86
90
|
depositTokenSymbol: string;
|
|
87
91
|
depositAmount: string;
|
|
92
|
+
poolId?: string;
|
|
88
93
|
}
|
|
89
94
|
export interface WithdrawParams {
|
|
90
95
|
withdrawTokenSymbol: string;
|
|
96
|
+
withdrawAmount?: string;
|
|
97
|
+
poolId?: string;
|
|
98
|
+
}
|
|
99
|
+
export interface DepositMultiplyParams {
|
|
100
|
+
collateralTokenSymbol: string;
|
|
101
|
+
debtTokenSymbol: string;
|
|
102
|
+
depositAmount: string;
|
|
103
|
+
targetLTV: string;
|
|
104
|
+
poolId?: string;
|
|
105
|
+
ekuboFee?: number;
|
|
106
|
+
ekuboTickSpacing?: number;
|
|
107
|
+
ekuboExtension?: string;
|
|
108
|
+
ekuboSlippage?: number;
|
|
109
|
+
}
|
|
110
|
+
export interface WithdrawMultiplyParams {
|
|
111
|
+
collateralTokenSymbol: string;
|
|
112
|
+
debtTokenSymbol: string;
|
|
113
|
+
withdrawAmount?: string;
|
|
114
|
+
poolId?: string;
|
|
115
|
+
ekuboFee?: number;
|
|
116
|
+
ekuboTickSpacing?: number;
|
|
117
|
+
ekuboExtension?: string;
|
|
118
|
+
ekuboSlippage?: number;
|
|
91
119
|
}
|
|
92
120
|
export interface BigDecimal {
|
|
93
121
|
value: bigint;
|
|
@@ -97,7 +125,7 @@ export interface DepositResult {
|
|
|
97
125
|
status: 'success' | 'failure';
|
|
98
126
|
amount?: string;
|
|
99
127
|
symbol?: string;
|
|
100
|
-
|
|
128
|
+
recipient_address?: string;
|
|
101
129
|
transaction_hash?: string;
|
|
102
130
|
error?: string;
|
|
103
131
|
step?: string;
|
|
@@ -105,8 +133,633 @@ export interface DepositResult {
|
|
|
105
133
|
export interface WithdrawResult {
|
|
106
134
|
status: 'success' | 'failure';
|
|
107
135
|
symbol?: string;
|
|
108
|
-
|
|
136
|
+
recipient_address?: string;
|
|
109
137
|
transaction_hash?: string;
|
|
110
138
|
error?: string;
|
|
111
139
|
step?: string;
|
|
112
140
|
}
|
|
141
|
+
export interface DepositMultiplyResult {
|
|
142
|
+
status: 'success' | 'failure';
|
|
143
|
+
amount?: string;
|
|
144
|
+
collateralSymbol?: string;
|
|
145
|
+
debtSymbol?: string;
|
|
146
|
+
recipient_address?: string;
|
|
147
|
+
transaction_hash?: string;
|
|
148
|
+
error?: string;
|
|
149
|
+
}
|
|
150
|
+
export interface WithdrawMultiplyResult {
|
|
151
|
+
status: 'success' | 'failure';
|
|
152
|
+
collateralSymbol?: string;
|
|
153
|
+
debtSymbol?: string;
|
|
154
|
+
recipient_address?: string;
|
|
155
|
+
transaction_hash?: string;
|
|
156
|
+
error?: string;
|
|
157
|
+
}
|
|
158
|
+
export interface UpdateMultiplyParams {
|
|
159
|
+
collateralTokenSymbol: string;
|
|
160
|
+
debtTokenSymbol: string;
|
|
161
|
+
targetLTV: string;
|
|
162
|
+
poolId?: string;
|
|
163
|
+
ekuboFee?: number;
|
|
164
|
+
ekuboTickSpacing?: number;
|
|
165
|
+
ekuboExtension?: string;
|
|
166
|
+
ekuboSlippage?: number;
|
|
167
|
+
}
|
|
168
|
+
export interface UpdateMultiplyResult {
|
|
169
|
+
status: 'success' | 'failure';
|
|
170
|
+
collateralSymbol?: string;
|
|
171
|
+
debtSymbol?: string;
|
|
172
|
+
targetLTV?: string;
|
|
173
|
+
recipient_address?: string;
|
|
174
|
+
transaction_hash?: string;
|
|
175
|
+
error?: string;
|
|
176
|
+
}
|
|
177
|
+
export interface DepositBorrowParams {
|
|
178
|
+
collateralTokenSymbol: string;
|
|
179
|
+
debtTokenSymbol: string;
|
|
180
|
+
depositAmount: string;
|
|
181
|
+
targetLTV: string;
|
|
182
|
+
poolId?: string;
|
|
183
|
+
}
|
|
184
|
+
export interface DepositBorrowResult {
|
|
185
|
+
status: 'success' | 'failure';
|
|
186
|
+
amount?: string;
|
|
187
|
+
collateralSymbol?: string;
|
|
188
|
+
debtSymbol?: string;
|
|
189
|
+
recipient_address?: string;
|
|
190
|
+
transaction_hash?: string;
|
|
191
|
+
error?: string;
|
|
192
|
+
}
|
|
193
|
+
export interface RepayBorrowParams {
|
|
194
|
+
collateralTokenSymbol: string;
|
|
195
|
+
debtTokenSymbol: string;
|
|
196
|
+
repayAmount?: string;
|
|
197
|
+
poolId?: string;
|
|
198
|
+
}
|
|
199
|
+
export interface RepayBorrowResult {
|
|
200
|
+
status: 'success' | 'failure';
|
|
201
|
+
repayAmount?: string;
|
|
202
|
+
collateralSymbol?: string;
|
|
203
|
+
debtSymbol?: string;
|
|
204
|
+
recipient_address?: string;
|
|
205
|
+
transaction_hash?: string;
|
|
206
|
+
error?: string;
|
|
207
|
+
}
|
|
208
|
+
export interface IPositionTokenValue {
|
|
209
|
+
address: Address;
|
|
210
|
+
name: string;
|
|
211
|
+
symbol: string;
|
|
212
|
+
decimals: number;
|
|
213
|
+
value: string;
|
|
214
|
+
}
|
|
215
|
+
export interface IPositionTokenValueWithUsdPrice extends IPositionTokenValue {
|
|
216
|
+
usdPrice: {
|
|
217
|
+
value: string;
|
|
218
|
+
decimals: number;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
export interface IBigIntValue {
|
|
222
|
+
value: string;
|
|
223
|
+
decimals: number;
|
|
224
|
+
}
|
|
225
|
+
export interface IPositionPool {
|
|
226
|
+
id: string;
|
|
227
|
+
name: string;
|
|
228
|
+
extensionContractAddress: Hex | null;
|
|
229
|
+
}
|
|
230
|
+
export interface IRebalancing {
|
|
231
|
+
isEnabled: boolean;
|
|
232
|
+
targetLTV?: IBigIntValue;
|
|
233
|
+
tolerance?: IBigIntValue;
|
|
234
|
+
minDelta?: IBigIntValue;
|
|
235
|
+
}
|
|
236
|
+
export interface ILTV {
|
|
237
|
+
max: IBigIntValue;
|
|
238
|
+
current: IBigIntValue;
|
|
239
|
+
}
|
|
240
|
+
export interface IEarnPosition {
|
|
241
|
+
protocolVersion: 'v1' | 'v2';
|
|
242
|
+
type: 'earn';
|
|
243
|
+
pool: IPositionPool;
|
|
244
|
+
isDeprecated: boolean;
|
|
245
|
+
walletAddress: Address;
|
|
246
|
+
collateral: IPositionTokenValueWithUsdPrice;
|
|
247
|
+
collateralShares: IPositionTokenValue;
|
|
248
|
+
}
|
|
249
|
+
export interface IBorrowOrMultiplyPosition {
|
|
250
|
+
type: 'borrow' | 'multiply';
|
|
251
|
+
pool: IPositionPool;
|
|
252
|
+
walletAddress: Address;
|
|
253
|
+
collateralShares: IPositionTokenValue;
|
|
254
|
+
collateral: IPositionTokenValueWithUsdPrice;
|
|
255
|
+
nominalDebt: IPositionTokenValue;
|
|
256
|
+
debt: IPositionTokenValueWithUsdPrice;
|
|
257
|
+
ltv: ILTV;
|
|
258
|
+
healthFactor: string | null;
|
|
259
|
+
rebalancing: IRebalancing;
|
|
260
|
+
}
|
|
261
|
+
export type IPosition = IEarnPosition | IBorrowOrMultiplyPosition;
|
|
262
|
+
export declare const positionParser: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
263
|
+
protocolVersion: z.ZodEnum<["v1", "v2"]>;
|
|
264
|
+
type: z.ZodLiteral<"earn">;
|
|
265
|
+
pool: z.ZodObject<{
|
|
266
|
+
id: z.ZodString;
|
|
267
|
+
name: z.ZodString;
|
|
268
|
+
extensionContractAddress: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>>;
|
|
269
|
+
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
id: string;
|
|
271
|
+
name: string;
|
|
272
|
+
extensionContractAddress: `0x${string}` | null;
|
|
273
|
+
}, {
|
|
274
|
+
id: string;
|
|
275
|
+
name: string;
|
|
276
|
+
extensionContractAddress: string | null;
|
|
277
|
+
}>;
|
|
278
|
+
isDeprecated: z.ZodBoolean;
|
|
279
|
+
walletAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
280
|
+
collateral: z.ZodObject<{
|
|
281
|
+
address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
282
|
+
name: z.ZodString;
|
|
283
|
+
symbol: z.ZodString;
|
|
284
|
+
decimals: z.ZodNumber;
|
|
285
|
+
value: z.ZodString;
|
|
286
|
+
} & {
|
|
287
|
+
usdPrice: z.ZodObject<{
|
|
288
|
+
value: z.ZodString;
|
|
289
|
+
decimals: z.ZodNumber;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
value: string;
|
|
292
|
+
decimals: number;
|
|
293
|
+
}, {
|
|
294
|
+
value: string;
|
|
295
|
+
decimals: number;
|
|
296
|
+
}>;
|
|
297
|
+
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
symbol: string;
|
|
299
|
+
value: string;
|
|
300
|
+
name: string;
|
|
301
|
+
address: `0x${string}`;
|
|
302
|
+
decimals: number;
|
|
303
|
+
usdPrice: {
|
|
304
|
+
value: string;
|
|
305
|
+
decimals: number;
|
|
306
|
+
};
|
|
307
|
+
}, {
|
|
308
|
+
symbol: string;
|
|
309
|
+
value: string;
|
|
310
|
+
name: string;
|
|
311
|
+
address: string;
|
|
312
|
+
decimals: number;
|
|
313
|
+
usdPrice: {
|
|
314
|
+
value: string;
|
|
315
|
+
decimals: number;
|
|
316
|
+
};
|
|
317
|
+
}>;
|
|
318
|
+
collateralShares: z.ZodObject<{
|
|
319
|
+
address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
320
|
+
name: z.ZodString;
|
|
321
|
+
symbol: z.ZodString;
|
|
322
|
+
decimals: z.ZodNumber;
|
|
323
|
+
value: z.ZodString;
|
|
324
|
+
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
symbol: string;
|
|
326
|
+
value: string;
|
|
327
|
+
name: string;
|
|
328
|
+
address: `0x${string}`;
|
|
329
|
+
decimals: number;
|
|
330
|
+
}, {
|
|
331
|
+
symbol: string;
|
|
332
|
+
value: string;
|
|
333
|
+
name: string;
|
|
334
|
+
address: string;
|
|
335
|
+
decimals: number;
|
|
336
|
+
}>;
|
|
337
|
+
}, "strip", z.ZodTypeAny, {
|
|
338
|
+
type: "earn";
|
|
339
|
+
protocolVersion: "v1" | "v2";
|
|
340
|
+
pool: {
|
|
341
|
+
id: string;
|
|
342
|
+
name: string;
|
|
343
|
+
extensionContractAddress: `0x${string}` | null;
|
|
344
|
+
};
|
|
345
|
+
isDeprecated: boolean;
|
|
346
|
+
walletAddress: `0x${string}`;
|
|
347
|
+
collateral: {
|
|
348
|
+
symbol: string;
|
|
349
|
+
value: string;
|
|
350
|
+
name: string;
|
|
351
|
+
address: `0x${string}`;
|
|
352
|
+
decimals: number;
|
|
353
|
+
usdPrice: {
|
|
354
|
+
value: string;
|
|
355
|
+
decimals: number;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
collateralShares: {
|
|
359
|
+
symbol: string;
|
|
360
|
+
value: string;
|
|
361
|
+
name: string;
|
|
362
|
+
address: `0x${string}`;
|
|
363
|
+
decimals: number;
|
|
364
|
+
};
|
|
365
|
+
}, {
|
|
366
|
+
type: "earn";
|
|
367
|
+
protocolVersion: "v1" | "v2";
|
|
368
|
+
pool: {
|
|
369
|
+
id: string;
|
|
370
|
+
name: string;
|
|
371
|
+
extensionContractAddress: string | null;
|
|
372
|
+
};
|
|
373
|
+
isDeprecated: boolean;
|
|
374
|
+
walletAddress: string;
|
|
375
|
+
collateral: {
|
|
376
|
+
symbol: string;
|
|
377
|
+
value: string;
|
|
378
|
+
name: string;
|
|
379
|
+
address: string;
|
|
380
|
+
decimals: number;
|
|
381
|
+
usdPrice: {
|
|
382
|
+
value: string;
|
|
383
|
+
decimals: number;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
collateralShares: {
|
|
387
|
+
symbol: string;
|
|
388
|
+
value: string;
|
|
389
|
+
name: string;
|
|
390
|
+
address: string;
|
|
391
|
+
decimals: number;
|
|
392
|
+
};
|
|
393
|
+
}>, z.ZodObject<{
|
|
394
|
+
type: z.ZodEnum<["borrow", "multiply"]>;
|
|
395
|
+
pool: z.ZodObject<{
|
|
396
|
+
id: z.ZodString;
|
|
397
|
+
name: z.ZodString;
|
|
398
|
+
extensionContractAddress: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>>;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
id: string;
|
|
401
|
+
name: string;
|
|
402
|
+
extensionContractAddress: `0x${string}` | null;
|
|
403
|
+
}, {
|
|
404
|
+
id: string;
|
|
405
|
+
name: string;
|
|
406
|
+
extensionContractAddress: string | null;
|
|
407
|
+
}>;
|
|
408
|
+
walletAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
409
|
+
collateralShares: z.ZodObject<{
|
|
410
|
+
address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
411
|
+
name: z.ZodString;
|
|
412
|
+
symbol: z.ZodString;
|
|
413
|
+
decimals: z.ZodNumber;
|
|
414
|
+
value: z.ZodString;
|
|
415
|
+
}, "strip", z.ZodTypeAny, {
|
|
416
|
+
symbol: string;
|
|
417
|
+
value: string;
|
|
418
|
+
name: string;
|
|
419
|
+
address: `0x${string}`;
|
|
420
|
+
decimals: number;
|
|
421
|
+
}, {
|
|
422
|
+
symbol: string;
|
|
423
|
+
value: string;
|
|
424
|
+
name: string;
|
|
425
|
+
address: string;
|
|
426
|
+
decimals: number;
|
|
427
|
+
}>;
|
|
428
|
+
collateral: z.ZodObject<{
|
|
429
|
+
address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
430
|
+
name: z.ZodString;
|
|
431
|
+
symbol: z.ZodString;
|
|
432
|
+
decimals: z.ZodNumber;
|
|
433
|
+
value: z.ZodString;
|
|
434
|
+
} & {
|
|
435
|
+
usdPrice: z.ZodObject<{
|
|
436
|
+
value: z.ZodString;
|
|
437
|
+
decimals: z.ZodNumber;
|
|
438
|
+
}, "strip", z.ZodTypeAny, {
|
|
439
|
+
value: string;
|
|
440
|
+
decimals: number;
|
|
441
|
+
}, {
|
|
442
|
+
value: string;
|
|
443
|
+
decimals: number;
|
|
444
|
+
}>;
|
|
445
|
+
}, "strip", z.ZodTypeAny, {
|
|
446
|
+
symbol: string;
|
|
447
|
+
value: string;
|
|
448
|
+
name: string;
|
|
449
|
+
address: `0x${string}`;
|
|
450
|
+
decimals: number;
|
|
451
|
+
usdPrice: {
|
|
452
|
+
value: string;
|
|
453
|
+
decimals: number;
|
|
454
|
+
};
|
|
455
|
+
}, {
|
|
456
|
+
symbol: string;
|
|
457
|
+
value: string;
|
|
458
|
+
name: string;
|
|
459
|
+
address: string;
|
|
460
|
+
decimals: number;
|
|
461
|
+
usdPrice: {
|
|
462
|
+
value: string;
|
|
463
|
+
decimals: number;
|
|
464
|
+
};
|
|
465
|
+
}>;
|
|
466
|
+
nominalDebt: z.ZodObject<{
|
|
467
|
+
address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
468
|
+
name: z.ZodString;
|
|
469
|
+
symbol: z.ZodString;
|
|
470
|
+
decimals: z.ZodNumber;
|
|
471
|
+
value: z.ZodString;
|
|
472
|
+
}, "strip", z.ZodTypeAny, {
|
|
473
|
+
symbol: string;
|
|
474
|
+
value: string;
|
|
475
|
+
name: string;
|
|
476
|
+
address: `0x${string}`;
|
|
477
|
+
decimals: number;
|
|
478
|
+
}, {
|
|
479
|
+
symbol: string;
|
|
480
|
+
value: string;
|
|
481
|
+
name: string;
|
|
482
|
+
address: string;
|
|
483
|
+
decimals: number;
|
|
484
|
+
}>;
|
|
485
|
+
debt: z.ZodObject<{
|
|
486
|
+
address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
487
|
+
name: z.ZodString;
|
|
488
|
+
symbol: z.ZodString;
|
|
489
|
+
decimals: z.ZodNumber;
|
|
490
|
+
value: z.ZodString;
|
|
491
|
+
} & {
|
|
492
|
+
usdPrice: z.ZodObject<{
|
|
493
|
+
value: z.ZodString;
|
|
494
|
+
decimals: z.ZodNumber;
|
|
495
|
+
}, "strip", z.ZodTypeAny, {
|
|
496
|
+
value: string;
|
|
497
|
+
decimals: number;
|
|
498
|
+
}, {
|
|
499
|
+
value: string;
|
|
500
|
+
decimals: number;
|
|
501
|
+
}>;
|
|
502
|
+
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
symbol: string;
|
|
504
|
+
value: string;
|
|
505
|
+
name: string;
|
|
506
|
+
address: `0x${string}`;
|
|
507
|
+
decimals: number;
|
|
508
|
+
usdPrice: {
|
|
509
|
+
value: string;
|
|
510
|
+
decimals: number;
|
|
511
|
+
};
|
|
512
|
+
}, {
|
|
513
|
+
symbol: string;
|
|
514
|
+
value: string;
|
|
515
|
+
name: string;
|
|
516
|
+
address: string;
|
|
517
|
+
decimals: number;
|
|
518
|
+
usdPrice: {
|
|
519
|
+
value: string;
|
|
520
|
+
decimals: number;
|
|
521
|
+
};
|
|
522
|
+
}>;
|
|
523
|
+
ltv: z.ZodObject<{
|
|
524
|
+
max: z.ZodObject<{
|
|
525
|
+
value: z.ZodString;
|
|
526
|
+
decimals: z.ZodNumber;
|
|
527
|
+
}, "strip", z.ZodTypeAny, {
|
|
528
|
+
value: string;
|
|
529
|
+
decimals: number;
|
|
530
|
+
}, {
|
|
531
|
+
value: string;
|
|
532
|
+
decimals: number;
|
|
533
|
+
}>;
|
|
534
|
+
current: z.ZodObject<{
|
|
535
|
+
value: z.ZodString;
|
|
536
|
+
decimals: z.ZodNumber;
|
|
537
|
+
}, "strip", z.ZodTypeAny, {
|
|
538
|
+
value: string;
|
|
539
|
+
decimals: number;
|
|
540
|
+
}, {
|
|
541
|
+
value: string;
|
|
542
|
+
decimals: number;
|
|
543
|
+
}>;
|
|
544
|
+
}, "strip", z.ZodTypeAny, {
|
|
545
|
+
max: {
|
|
546
|
+
value: string;
|
|
547
|
+
decimals: number;
|
|
548
|
+
};
|
|
549
|
+
current: {
|
|
550
|
+
value: string;
|
|
551
|
+
decimals: number;
|
|
552
|
+
};
|
|
553
|
+
}, {
|
|
554
|
+
max: {
|
|
555
|
+
value: string;
|
|
556
|
+
decimals: number;
|
|
557
|
+
};
|
|
558
|
+
current: {
|
|
559
|
+
value: string;
|
|
560
|
+
decimals: number;
|
|
561
|
+
};
|
|
562
|
+
}>;
|
|
563
|
+
healthFactor: z.ZodNullable<z.ZodString>;
|
|
564
|
+
rebalancing: z.ZodObject<{
|
|
565
|
+
isEnabled: z.ZodBoolean;
|
|
566
|
+
targetLTV: z.ZodOptional<z.ZodObject<{
|
|
567
|
+
value: z.ZodString;
|
|
568
|
+
decimals: z.ZodNumber;
|
|
569
|
+
}, "strip", z.ZodTypeAny, {
|
|
570
|
+
value: string;
|
|
571
|
+
decimals: number;
|
|
572
|
+
}, {
|
|
573
|
+
value: string;
|
|
574
|
+
decimals: number;
|
|
575
|
+
}>>;
|
|
576
|
+
tolerance: z.ZodOptional<z.ZodObject<{
|
|
577
|
+
value: z.ZodString;
|
|
578
|
+
decimals: z.ZodNumber;
|
|
579
|
+
}, "strip", z.ZodTypeAny, {
|
|
580
|
+
value: string;
|
|
581
|
+
decimals: number;
|
|
582
|
+
}, {
|
|
583
|
+
value: string;
|
|
584
|
+
decimals: number;
|
|
585
|
+
}>>;
|
|
586
|
+
minDelta: z.ZodOptional<z.ZodObject<{
|
|
587
|
+
value: z.ZodString;
|
|
588
|
+
decimals: z.ZodNumber;
|
|
589
|
+
}, "strip", z.ZodTypeAny, {
|
|
590
|
+
value: string;
|
|
591
|
+
decimals: number;
|
|
592
|
+
}, {
|
|
593
|
+
value: string;
|
|
594
|
+
decimals: number;
|
|
595
|
+
}>>;
|
|
596
|
+
}, "strip", z.ZodTypeAny, {
|
|
597
|
+
isEnabled: boolean;
|
|
598
|
+
targetLTV?: {
|
|
599
|
+
value: string;
|
|
600
|
+
decimals: number;
|
|
601
|
+
} | undefined;
|
|
602
|
+
tolerance?: {
|
|
603
|
+
value: string;
|
|
604
|
+
decimals: number;
|
|
605
|
+
} | undefined;
|
|
606
|
+
minDelta?: {
|
|
607
|
+
value: string;
|
|
608
|
+
decimals: number;
|
|
609
|
+
} | undefined;
|
|
610
|
+
}, {
|
|
611
|
+
isEnabled: boolean;
|
|
612
|
+
targetLTV?: {
|
|
613
|
+
value: string;
|
|
614
|
+
decimals: number;
|
|
615
|
+
} | undefined;
|
|
616
|
+
tolerance?: {
|
|
617
|
+
value: string;
|
|
618
|
+
decimals: number;
|
|
619
|
+
} | undefined;
|
|
620
|
+
minDelta?: {
|
|
621
|
+
value: string;
|
|
622
|
+
decimals: number;
|
|
623
|
+
} | undefined;
|
|
624
|
+
}>;
|
|
625
|
+
}, "strip", z.ZodTypeAny, {
|
|
626
|
+
type: "borrow" | "multiply";
|
|
627
|
+
pool: {
|
|
628
|
+
id: string;
|
|
629
|
+
name: string;
|
|
630
|
+
extensionContractAddress: `0x${string}` | null;
|
|
631
|
+
};
|
|
632
|
+
walletAddress: `0x${string}`;
|
|
633
|
+
collateral: {
|
|
634
|
+
symbol: string;
|
|
635
|
+
value: string;
|
|
636
|
+
name: string;
|
|
637
|
+
address: `0x${string}`;
|
|
638
|
+
decimals: number;
|
|
639
|
+
usdPrice: {
|
|
640
|
+
value: string;
|
|
641
|
+
decimals: number;
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
collateralShares: {
|
|
645
|
+
symbol: string;
|
|
646
|
+
value: string;
|
|
647
|
+
name: string;
|
|
648
|
+
address: `0x${string}`;
|
|
649
|
+
decimals: number;
|
|
650
|
+
};
|
|
651
|
+
nominalDebt: {
|
|
652
|
+
symbol: string;
|
|
653
|
+
value: string;
|
|
654
|
+
name: string;
|
|
655
|
+
address: `0x${string}`;
|
|
656
|
+
decimals: number;
|
|
657
|
+
};
|
|
658
|
+
debt: {
|
|
659
|
+
symbol: string;
|
|
660
|
+
value: string;
|
|
661
|
+
name: string;
|
|
662
|
+
address: `0x${string}`;
|
|
663
|
+
decimals: number;
|
|
664
|
+
usdPrice: {
|
|
665
|
+
value: string;
|
|
666
|
+
decimals: number;
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
ltv: {
|
|
670
|
+
max: {
|
|
671
|
+
value: string;
|
|
672
|
+
decimals: number;
|
|
673
|
+
};
|
|
674
|
+
current: {
|
|
675
|
+
value: string;
|
|
676
|
+
decimals: number;
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
healthFactor: string | null;
|
|
680
|
+
rebalancing: {
|
|
681
|
+
isEnabled: boolean;
|
|
682
|
+
targetLTV?: {
|
|
683
|
+
value: string;
|
|
684
|
+
decimals: number;
|
|
685
|
+
} | undefined;
|
|
686
|
+
tolerance?: {
|
|
687
|
+
value: string;
|
|
688
|
+
decimals: number;
|
|
689
|
+
} | undefined;
|
|
690
|
+
minDelta?: {
|
|
691
|
+
value: string;
|
|
692
|
+
decimals: number;
|
|
693
|
+
} | undefined;
|
|
694
|
+
};
|
|
695
|
+
}, {
|
|
696
|
+
type: "borrow" | "multiply";
|
|
697
|
+
pool: {
|
|
698
|
+
id: string;
|
|
699
|
+
name: string;
|
|
700
|
+
extensionContractAddress: string | null;
|
|
701
|
+
};
|
|
702
|
+
walletAddress: string;
|
|
703
|
+
collateral: {
|
|
704
|
+
symbol: string;
|
|
705
|
+
value: string;
|
|
706
|
+
name: string;
|
|
707
|
+
address: string;
|
|
708
|
+
decimals: number;
|
|
709
|
+
usdPrice: {
|
|
710
|
+
value: string;
|
|
711
|
+
decimals: number;
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
collateralShares: {
|
|
715
|
+
symbol: string;
|
|
716
|
+
value: string;
|
|
717
|
+
name: string;
|
|
718
|
+
address: string;
|
|
719
|
+
decimals: number;
|
|
720
|
+
};
|
|
721
|
+
nominalDebt: {
|
|
722
|
+
symbol: string;
|
|
723
|
+
value: string;
|
|
724
|
+
name: string;
|
|
725
|
+
address: string;
|
|
726
|
+
decimals: number;
|
|
727
|
+
};
|
|
728
|
+
debt: {
|
|
729
|
+
symbol: string;
|
|
730
|
+
value: string;
|
|
731
|
+
name: string;
|
|
732
|
+
address: string;
|
|
733
|
+
decimals: number;
|
|
734
|
+
usdPrice: {
|
|
735
|
+
value: string;
|
|
736
|
+
decimals: number;
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
ltv: {
|
|
740
|
+
max: {
|
|
741
|
+
value: string;
|
|
742
|
+
decimals: number;
|
|
743
|
+
};
|
|
744
|
+
current: {
|
|
745
|
+
value: string;
|
|
746
|
+
decimals: number;
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
healthFactor: string | null;
|
|
750
|
+
rebalancing: {
|
|
751
|
+
isEnabled: boolean;
|
|
752
|
+
targetLTV?: {
|
|
753
|
+
value: string;
|
|
754
|
+
decimals: number;
|
|
755
|
+
} | undefined;
|
|
756
|
+
tolerance?: {
|
|
757
|
+
value: string;
|
|
758
|
+
decimals: number;
|
|
759
|
+
} | undefined;
|
|
760
|
+
minDelta?: {
|
|
761
|
+
value: string;
|
|
762
|
+
decimals: number;
|
|
763
|
+
} | undefined;
|
|
764
|
+
};
|
|
765
|
+
}>]>;
|