@wildcatfi/wildcat-sdk 1.0.7 → 1.0.9
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/account.d.ts +28 -1
- package/dist/account.d.ts.map +1 -1
- package/dist/account.js +97 -1
- package/dist/account.js.map +1 -1
- package/dist/constants.d.ts +3 -3
- package/dist/constants.js +3 -3
- package/dist/controller.d.ts +2 -1
- package/dist/controller.d.ts.map +1 -1
- package/dist/controller.js +7 -5
- package/dist/controller.js.map +1 -1
- package/dist/factory.d.ts +3 -2
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +12 -4
- package/dist/factory.js.map +1 -1
- package/dist/index.d.ts +10 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -34
- package/dist/index.js.map +1 -1
- package/dist/misc.d.ts +1 -0
- package/dist/misc.d.ts.map +1 -1
- package/dist/mockerc20factory.d.ts +2 -1
- package/dist/mockerc20factory.d.ts.map +1 -1
- package/dist/mockerc20factory.js +4 -0
- package/dist/mockerc20factory.js.map +1 -1
- package/dist/token.d.ts +3 -2
- package/dist/token.d.ts.map +1 -1
- package/dist/token.js +13 -3
- package/dist/token.js.map +1 -1
- package/dist/typechain/VaultLens.d.ts +147 -24
- package/dist/typechain/VaultLens.d.ts.map +1 -1
- package/dist/typechain/WildcatVaultController.d.ts +27 -27
- package/dist/typechain/WildcatVaultController.d.ts.map +1 -1
- package/dist/typechain/WildcatVaultFactory.d.ts +30 -6
- package/dist/typechain/WildcatVaultFactory.d.ts.map +1 -1
- package/dist/typechain/WildcatVaultToken.d.ts +130 -33
- package/dist/typechain/WildcatVaultToken.d.ts.map +1 -1
- package/dist/typechain/factories/IERC20__factory.d.ts +16 -10
- package/dist/typechain/factories/IERC20__factory.d.ts.map +1 -1
- package/dist/typechain/factories/IERC20__factory.js +17 -10
- package/dist/typechain/factories/IERC20__factory.js.map +1 -1
- package/dist/typechain/factories/VaultLens__factory.d.ts +1197 -82
- package/dist/typechain/factories/VaultLens__factory.d.ts.map +1 -1
- package/dist/typechain/factories/VaultLens__factory.js +1565 -145
- package/dist/typechain/factories/VaultLens__factory.js.map +1 -1
- package/dist/typechain/factories/WildcatVaultController__factory.d.ts +25 -50
- package/dist/typechain/factories/WildcatVaultController__factory.d.ts.map +1 -1
- package/dist/typechain/factories/WildcatVaultController__factory.js +29 -68
- package/dist/typechain/factories/WildcatVaultController__factory.js.map +1 -1
- package/dist/typechain/factories/WildcatVaultFactory__factory.d.ts +50 -21
- package/dist/typechain/factories/WildcatVaultFactory__factory.d.ts.map +1 -1
- package/dist/typechain/factories/WildcatVaultFactory__factory.js +64 -31
- package/dist/typechain/factories/WildcatVaultFactory__factory.js.map +1 -1
- package/dist/typechain/factories/WildcatVaultToken__factory.d.ts +113 -38
- package/dist/typechain/factories/WildcatVaultToken__factory.d.ts.map +1 -1
- package/dist/typechain/factories/WildcatVaultToken__factory.js +138 -48
- package/dist/typechain/factories/WildcatVaultToken__factory.js.map +1 -1
- package/dist/typechain/factories/index.d.ts +2 -3
- package/dist/typechain/factories/index.d.ts.map +1 -1
- package/dist/typechain/factories/index.js +7 -6
- package/dist/typechain/factories/index.js.map +1 -1
- package/dist/typechain/factories/mock/MockERC20Factory__factory.d.ts +1 -1
- package/dist/typechain/factories/mock/MockERC20Factory__factory.d.ts.map +1 -1
- package/dist/typechain/factories/mock/MockERC20Factory__factory.js +1 -1
- package/dist/typechain/factories/mock/MockERC20Factory__factory.js.map +1 -1
- package/dist/typechain/factories/mock/MockERC20__factory.d.ts +11 -1
- package/dist/typechain/factories/mock/MockERC20__factory.d.ts.map +1 -1
- package/dist/typechain/factories/mock/MockERC20__factory.js +14 -1
- package/dist/typechain/factories/mock/MockERC20__factory.js.map +1 -1
- package/dist/typechain/index.d.ts +1 -1
- package/dist/typechain/index.d.ts.map +1 -1
- package/dist/vault.d.ts +17 -2
- package/dist/vault.d.ts.map +1 -1
- package/dist/vault.js +43 -3
- package/dist/vault.js.map +1 -1
- package/package.json +1 -3
- package/dist/typechain/factories/DebtTokenBase__factory.d.ts +0 -660
- package/dist/typechain/factories/DebtTokenBase__factory.d.ts.map +0 -1
- package/dist/typechain/factories/DebtTokenBase__factory.js +0 -867
- package/dist/typechain/factories/DebtTokenBase__factory.js.map +0 -1
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VaultLens__factory = void 0;
|
|
4
2
|
/* Autogenerated file. Do not edit manually. */
|
|
5
3
|
/* tslint:disable */
|
|
6
4
|
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.VaultLens__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "factory",
|
|
12
|
+
outputs: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "address",
|
|
15
|
+
name: "",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
stateMutability: "view",
|
|
20
|
+
type: "function",
|
|
21
|
+
},
|
|
9
22
|
{
|
|
10
23
|
inputs: [
|
|
11
24
|
{
|
|
@@ -56,93 +69,51 @@ const _abi = [
|
|
|
56
69
|
inputs: [
|
|
57
70
|
{
|
|
58
71
|
internalType: "address",
|
|
59
|
-
name: "
|
|
72
|
+
name: "account",
|
|
60
73
|
type: "address",
|
|
61
74
|
},
|
|
75
|
+
{
|
|
76
|
+
internalType: "address[]",
|
|
77
|
+
name: "vaults",
|
|
78
|
+
type: "address[]",
|
|
79
|
+
},
|
|
62
80
|
],
|
|
63
|
-
name: "
|
|
81
|
+
name: "getAccountVaultsInfo",
|
|
64
82
|
outputs: [
|
|
65
83
|
{
|
|
66
84
|
components: [
|
|
67
|
-
{
|
|
68
|
-
internalType: "bool",
|
|
69
|
-
name: "temporaryLiquidityCoverage",
|
|
70
|
-
type: "bool",
|
|
71
|
-
},
|
|
72
85
|
{
|
|
73
86
|
internalType: "uint256",
|
|
74
|
-
name: "
|
|
87
|
+
name: "scaledBalance",
|
|
75
88
|
type: "uint256",
|
|
76
89
|
},
|
|
77
90
|
{
|
|
78
91
|
internalType: "uint256",
|
|
79
|
-
name: "
|
|
92
|
+
name: "normalizedBalance",
|
|
80
93
|
type: "uint256",
|
|
81
94
|
},
|
|
82
|
-
],
|
|
83
|
-
internalType: "struct ControlStatus",
|
|
84
|
-
name: "status",
|
|
85
|
-
type: "tuple",
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
stateMutability: "view",
|
|
89
|
-
type: "function",
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
inputs: [
|
|
93
|
-
{
|
|
94
|
-
internalType: "address",
|
|
95
|
-
name: "token",
|
|
96
|
-
type: "address",
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
name: "getTokenInfo",
|
|
100
|
-
outputs: [
|
|
101
|
-
{
|
|
102
|
-
components: [
|
|
103
|
-
{
|
|
104
|
-
internalType: "address",
|
|
105
|
-
name: "token",
|
|
106
|
-
type: "address",
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
internalType: "string",
|
|
110
|
-
name: "name",
|
|
111
|
-
type: "string",
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
internalType: "string",
|
|
115
|
-
name: "symbol",
|
|
116
|
-
type: "string",
|
|
117
|
-
},
|
|
118
95
|
{
|
|
119
96
|
internalType: "uint256",
|
|
120
|
-
name: "
|
|
97
|
+
name: "underlyingBalance",
|
|
121
98
|
type: "uint256",
|
|
122
99
|
},
|
|
123
100
|
{
|
|
124
|
-
internalType: "
|
|
125
|
-
name: "
|
|
126
|
-
type: "
|
|
101
|
+
internalType: "uint256",
|
|
102
|
+
name: "underlyingApproval",
|
|
103
|
+
type: "uint256",
|
|
127
104
|
},
|
|
128
105
|
],
|
|
129
|
-
internalType: "struct
|
|
106
|
+
internalType: "struct AccountVaultInfo[]",
|
|
130
107
|
name: "info",
|
|
131
|
-
type: "tuple",
|
|
108
|
+
type: "tuple[]",
|
|
132
109
|
},
|
|
133
110
|
],
|
|
134
111
|
stateMutability: "view",
|
|
135
112
|
type: "function",
|
|
136
113
|
},
|
|
137
114
|
{
|
|
138
|
-
inputs: [
|
|
139
|
-
|
|
140
|
-
internalType: "address",
|
|
141
|
-
name: "vault",
|
|
142
|
-
type: "address",
|
|
143
|
-
},
|
|
144
|
-
],
|
|
145
|
-
name: "getVaultData",
|
|
115
|
+
inputs: [],
|
|
116
|
+
name: "getAllVaultsData",
|
|
146
117
|
outputs: [
|
|
147
118
|
{
|
|
148
119
|
components: [
|
|
@@ -240,11 +211,6 @@ const _abi = [
|
|
|
240
211
|
name: "gracePeriod",
|
|
241
212
|
type: "uint256",
|
|
242
213
|
},
|
|
243
|
-
{
|
|
244
|
-
internalType: "uint256",
|
|
245
|
-
name: "annualInterestBips",
|
|
246
|
-
type: "uint256",
|
|
247
|
-
},
|
|
248
214
|
{
|
|
249
215
|
internalType: "uint256",
|
|
250
216
|
name: "liquidityCoverageRatio",
|
|
@@ -265,6 +231,11 @@ const _abi = [
|
|
|
265
231
|
name: "temporaryLiquidityCoverageExpiry",
|
|
266
232
|
type: "uint256",
|
|
267
233
|
},
|
|
234
|
+
{
|
|
235
|
+
internalType: "uint256",
|
|
236
|
+
name: "annualInterestBips",
|
|
237
|
+
type: "uint256",
|
|
238
|
+
},
|
|
268
239
|
{
|
|
269
240
|
internalType: "uint256",
|
|
270
241
|
name: "borrowableAssets",
|
|
@@ -272,17 +243,17 @@ const _abi = [
|
|
|
272
243
|
},
|
|
273
244
|
{
|
|
274
245
|
internalType: "uint256",
|
|
275
|
-
name: "
|
|
246
|
+
name: "totalSupply",
|
|
276
247
|
type: "uint256",
|
|
277
248
|
},
|
|
278
249
|
{
|
|
279
250
|
internalType: "uint256",
|
|
280
|
-
name: "
|
|
251
|
+
name: "maxTotalSupply",
|
|
281
252
|
type: "uint256",
|
|
282
253
|
},
|
|
283
254
|
{
|
|
284
255
|
internalType: "uint256",
|
|
285
|
-
name: "
|
|
256
|
+
name: "scaledTotalSupply",
|
|
286
257
|
type: "uint256",
|
|
287
258
|
},
|
|
288
259
|
{
|
|
@@ -321,9 +292,9 @@ const _abi = [
|
|
|
321
292
|
type: "uint256",
|
|
322
293
|
},
|
|
323
294
|
],
|
|
324
|
-
internalType: "struct VaultData",
|
|
295
|
+
internalType: "struct VaultData[]",
|
|
325
296
|
name: "data",
|
|
326
|
-
type: "tuple",
|
|
297
|
+
type: "tuple[]",
|
|
327
298
|
},
|
|
328
299
|
],
|
|
329
300
|
stateMutability: "view",
|
|
@@ -332,93 +303,889 @@ const _abi = [
|
|
|
332
303
|
{
|
|
333
304
|
inputs: [
|
|
334
305
|
{
|
|
335
|
-
internalType: "address
|
|
336
|
-
name: "
|
|
337
|
-
type: "address
|
|
306
|
+
internalType: "address",
|
|
307
|
+
name: "account",
|
|
308
|
+
type: "address",
|
|
338
309
|
},
|
|
339
310
|
],
|
|
340
|
-
name: "
|
|
311
|
+
name: "getAllVaultsDataWithAccount",
|
|
341
312
|
outputs: [
|
|
342
313
|
{
|
|
343
314
|
components: [
|
|
344
315
|
{
|
|
345
316
|
components: [
|
|
317
|
+
{
|
|
318
|
+
components: [
|
|
319
|
+
{
|
|
320
|
+
internalType: "address",
|
|
321
|
+
name: "token",
|
|
322
|
+
type: "address",
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
internalType: "string",
|
|
326
|
+
name: "name",
|
|
327
|
+
type: "string",
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
internalType: "string",
|
|
331
|
+
name: "symbol",
|
|
332
|
+
type: "string",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
internalType: "uint256",
|
|
336
|
+
name: "decimals",
|
|
337
|
+
type: "uint256",
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
internalType: "bool",
|
|
341
|
+
name: "isMock",
|
|
342
|
+
type: "bool",
|
|
343
|
+
},
|
|
344
|
+
],
|
|
345
|
+
internalType: "struct TokenMetadata",
|
|
346
|
+
name: "vaultToken",
|
|
347
|
+
type: "tuple",
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
components: [
|
|
351
|
+
{
|
|
352
|
+
internalType: "address",
|
|
353
|
+
name: "token",
|
|
354
|
+
type: "address",
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
internalType: "string",
|
|
358
|
+
name: "name",
|
|
359
|
+
type: "string",
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
internalType: "string",
|
|
363
|
+
name: "symbol",
|
|
364
|
+
type: "string",
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
internalType: "uint256",
|
|
368
|
+
name: "decimals",
|
|
369
|
+
type: "uint256",
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
internalType: "bool",
|
|
373
|
+
name: "isMock",
|
|
374
|
+
type: "bool",
|
|
375
|
+
},
|
|
376
|
+
],
|
|
377
|
+
internalType: "struct TokenMetadata",
|
|
378
|
+
name: "underlyingToken",
|
|
379
|
+
type: "tuple",
|
|
380
|
+
},
|
|
346
381
|
{
|
|
347
382
|
internalType: "address",
|
|
348
|
-
name: "
|
|
383
|
+
name: "borrower",
|
|
349
384
|
type: "address",
|
|
350
385
|
},
|
|
351
386
|
{
|
|
352
|
-
internalType: "
|
|
353
|
-
name: "
|
|
354
|
-
type: "
|
|
387
|
+
internalType: "address",
|
|
388
|
+
name: "controller",
|
|
389
|
+
type: "address",
|
|
355
390
|
},
|
|
356
391
|
{
|
|
357
|
-
internalType: "
|
|
358
|
-
name: "
|
|
359
|
-
type: "
|
|
392
|
+
internalType: "address",
|
|
393
|
+
name: "feeRecipient",
|
|
394
|
+
type: "address",
|
|
360
395
|
},
|
|
361
396
|
{
|
|
362
397
|
internalType: "uint256",
|
|
363
|
-
name: "
|
|
398
|
+
name: "interestFeeBips",
|
|
399
|
+
type: "uint256",
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
internalType: "uint256",
|
|
403
|
+
name: "penaltyFeeBips",
|
|
404
|
+
type: "uint256",
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
internalType: "uint256",
|
|
408
|
+
name: "gracePeriod",
|
|
409
|
+
type: "uint256",
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
internalType: "uint256",
|
|
413
|
+
name: "liquidityCoverageRatio",
|
|
364
414
|
type: "uint256",
|
|
365
415
|
},
|
|
366
416
|
{
|
|
367
417
|
internalType: "bool",
|
|
368
|
-
name: "
|
|
418
|
+
name: "temporaryLiquidityCoverage",
|
|
369
419
|
type: "bool",
|
|
370
420
|
},
|
|
371
|
-
],
|
|
372
|
-
internalType: "struct TokenMetadata",
|
|
373
|
-
name: "vaultToken",
|
|
374
|
-
type: "tuple",
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
components: [
|
|
378
421
|
{
|
|
379
|
-
internalType: "
|
|
380
|
-
name: "
|
|
381
|
-
type: "
|
|
422
|
+
internalType: "uint256",
|
|
423
|
+
name: "originalLiquidityCoverageRatio",
|
|
424
|
+
type: "uint256",
|
|
382
425
|
},
|
|
383
426
|
{
|
|
384
|
-
internalType: "
|
|
385
|
-
name: "
|
|
386
|
-
type: "
|
|
427
|
+
internalType: "uint256",
|
|
428
|
+
name: "temporaryLiquidityCoverageExpiry",
|
|
429
|
+
type: "uint256",
|
|
387
430
|
},
|
|
388
431
|
{
|
|
389
|
-
internalType: "
|
|
390
|
-
name: "
|
|
391
|
-
type: "
|
|
432
|
+
internalType: "uint256",
|
|
433
|
+
name: "annualInterestBips",
|
|
434
|
+
type: "uint256",
|
|
392
435
|
},
|
|
393
436
|
{
|
|
394
437
|
internalType: "uint256",
|
|
395
|
-
name: "
|
|
438
|
+
name: "borrowableAssets",
|
|
439
|
+
type: "uint256",
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
internalType: "uint256",
|
|
443
|
+
name: "totalSupply",
|
|
444
|
+
type: "uint256",
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
internalType: "uint256",
|
|
448
|
+
name: "maxTotalSupply",
|
|
449
|
+
type: "uint256",
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
internalType: "uint256",
|
|
453
|
+
name: "scaledTotalSupply",
|
|
454
|
+
type: "uint256",
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
internalType: "uint256",
|
|
458
|
+
name: "totalAssets",
|
|
459
|
+
type: "uint256",
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
internalType: "uint256",
|
|
463
|
+
name: "coverageLiquidity",
|
|
464
|
+
type: "uint256",
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
internalType: "uint256",
|
|
468
|
+
name: "scaleFactor",
|
|
469
|
+
type: "uint256",
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
internalType: "uint256",
|
|
473
|
+
name: "lastAccruedProtocolFees",
|
|
396
474
|
type: "uint256",
|
|
397
475
|
},
|
|
398
476
|
{
|
|
399
477
|
internalType: "bool",
|
|
400
|
-
name: "
|
|
478
|
+
name: "isDelinquent",
|
|
401
479
|
type: "bool",
|
|
402
480
|
},
|
|
481
|
+
{
|
|
482
|
+
internalType: "uint256",
|
|
483
|
+
name: "timeDelinquent",
|
|
484
|
+
type: "uint256",
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
internalType: "uint256",
|
|
488
|
+
name: "lastInterestAccruedTimestamp",
|
|
489
|
+
type: "uint256",
|
|
490
|
+
},
|
|
403
491
|
],
|
|
404
|
-
internalType: "struct
|
|
405
|
-
name: "
|
|
492
|
+
internalType: "struct VaultData",
|
|
493
|
+
name: "vault",
|
|
406
494
|
type: "tuple",
|
|
407
495
|
},
|
|
408
496
|
{
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
497
|
+
components: [
|
|
498
|
+
{
|
|
499
|
+
internalType: "uint256",
|
|
500
|
+
name: "scaledBalance",
|
|
501
|
+
type: "uint256",
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
internalType: "uint256",
|
|
505
|
+
name: "normalizedBalance",
|
|
506
|
+
type: "uint256",
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
internalType: "uint256",
|
|
510
|
+
name: "underlyingBalance",
|
|
511
|
+
type: "uint256",
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
internalType: "uint256",
|
|
515
|
+
name: "underlyingApproval",
|
|
516
|
+
type: "uint256",
|
|
517
|
+
},
|
|
518
|
+
],
|
|
519
|
+
internalType: "struct AccountVaultInfo",
|
|
520
|
+
name: "account",
|
|
521
|
+
type: "tuple",
|
|
417
522
|
},
|
|
523
|
+
],
|
|
524
|
+
internalType: "struct VaultDataWithAccount[]",
|
|
525
|
+
name: "data",
|
|
526
|
+
type: "tuple[]",
|
|
527
|
+
},
|
|
528
|
+
],
|
|
529
|
+
stateMutability: "view",
|
|
530
|
+
type: "function",
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
inputs: [
|
|
534
|
+
{
|
|
535
|
+
internalType: "address",
|
|
536
|
+
name: "vault",
|
|
537
|
+
type: "address",
|
|
538
|
+
},
|
|
539
|
+
],
|
|
540
|
+
name: "getControlStatus",
|
|
541
|
+
outputs: [
|
|
542
|
+
{
|
|
543
|
+
components: [
|
|
418
544
|
{
|
|
419
|
-
internalType: "
|
|
420
|
-
name: "
|
|
421
|
-
type: "
|
|
545
|
+
internalType: "bool",
|
|
546
|
+
name: "temporaryLiquidityCoverage",
|
|
547
|
+
type: "bool",
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
internalType: "uint256",
|
|
551
|
+
name: "originalLiquidityCoverageRatio",
|
|
552
|
+
type: "uint256",
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
internalType: "uint256",
|
|
556
|
+
name: "temporaryLiquidityCoverageExpiry",
|
|
557
|
+
type: "uint256",
|
|
558
|
+
},
|
|
559
|
+
],
|
|
560
|
+
internalType: "struct ControlStatus",
|
|
561
|
+
name: "status",
|
|
562
|
+
type: "tuple",
|
|
563
|
+
},
|
|
564
|
+
],
|
|
565
|
+
stateMutability: "view",
|
|
566
|
+
type: "function",
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
inputs: [
|
|
570
|
+
{
|
|
571
|
+
internalType: "uint256",
|
|
572
|
+
name: "start",
|
|
573
|
+
type: "uint256",
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
internalType: "uint256",
|
|
577
|
+
name: "length",
|
|
578
|
+
type: "uint256",
|
|
579
|
+
},
|
|
580
|
+
],
|
|
581
|
+
name: "getPaginatedVaultsData",
|
|
582
|
+
outputs: [
|
|
583
|
+
{
|
|
584
|
+
components: [
|
|
585
|
+
{
|
|
586
|
+
components: [
|
|
587
|
+
{
|
|
588
|
+
internalType: "address",
|
|
589
|
+
name: "token",
|
|
590
|
+
type: "address",
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
internalType: "string",
|
|
594
|
+
name: "name",
|
|
595
|
+
type: "string",
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
internalType: "string",
|
|
599
|
+
name: "symbol",
|
|
600
|
+
type: "string",
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
internalType: "uint256",
|
|
604
|
+
name: "decimals",
|
|
605
|
+
type: "uint256",
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
internalType: "bool",
|
|
609
|
+
name: "isMock",
|
|
610
|
+
type: "bool",
|
|
611
|
+
},
|
|
612
|
+
],
|
|
613
|
+
internalType: "struct TokenMetadata",
|
|
614
|
+
name: "vaultToken",
|
|
615
|
+
type: "tuple",
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
components: [
|
|
619
|
+
{
|
|
620
|
+
internalType: "address",
|
|
621
|
+
name: "token",
|
|
622
|
+
type: "address",
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
internalType: "string",
|
|
626
|
+
name: "name",
|
|
627
|
+
type: "string",
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
internalType: "string",
|
|
631
|
+
name: "symbol",
|
|
632
|
+
type: "string",
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
internalType: "uint256",
|
|
636
|
+
name: "decimals",
|
|
637
|
+
type: "uint256",
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
internalType: "bool",
|
|
641
|
+
name: "isMock",
|
|
642
|
+
type: "bool",
|
|
643
|
+
},
|
|
644
|
+
],
|
|
645
|
+
internalType: "struct TokenMetadata",
|
|
646
|
+
name: "underlyingToken",
|
|
647
|
+
type: "tuple",
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
internalType: "address",
|
|
651
|
+
name: "borrower",
|
|
652
|
+
type: "address",
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
internalType: "address",
|
|
656
|
+
name: "controller",
|
|
657
|
+
type: "address",
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
internalType: "address",
|
|
661
|
+
name: "feeRecipient",
|
|
662
|
+
type: "address",
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
internalType: "uint256",
|
|
666
|
+
name: "interestFeeBips",
|
|
667
|
+
type: "uint256",
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
internalType: "uint256",
|
|
671
|
+
name: "penaltyFeeBips",
|
|
672
|
+
type: "uint256",
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
internalType: "uint256",
|
|
676
|
+
name: "gracePeriod",
|
|
677
|
+
type: "uint256",
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
internalType: "uint256",
|
|
681
|
+
name: "liquidityCoverageRatio",
|
|
682
|
+
type: "uint256",
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
internalType: "bool",
|
|
686
|
+
name: "temporaryLiquidityCoverage",
|
|
687
|
+
type: "bool",
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
internalType: "uint256",
|
|
691
|
+
name: "originalLiquidityCoverageRatio",
|
|
692
|
+
type: "uint256",
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
internalType: "uint256",
|
|
696
|
+
name: "temporaryLiquidityCoverageExpiry",
|
|
697
|
+
type: "uint256",
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
internalType: "uint256",
|
|
701
|
+
name: "annualInterestBips",
|
|
702
|
+
type: "uint256",
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
internalType: "uint256",
|
|
706
|
+
name: "borrowableAssets",
|
|
707
|
+
type: "uint256",
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
internalType: "uint256",
|
|
711
|
+
name: "totalSupply",
|
|
712
|
+
type: "uint256",
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
internalType: "uint256",
|
|
716
|
+
name: "maxTotalSupply",
|
|
717
|
+
type: "uint256",
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
internalType: "uint256",
|
|
721
|
+
name: "scaledTotalSupply",
|
|
722
|
+
type: "uint256",
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
internalType: "uint256",
|
|
726
|
+
name: "totalAssets",
|
|
727
|
+
type: "uint256",
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
internalType: "uint256",
|
|
731
|
+
name: "coverageLiquidity",
|
|
732
|
+
type: "uint256",
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
internalType: "uint256",
|
|
736
|
+
name: "scaleFactor",
|
|
737
|
+
type: "uint256",
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
internalType: "uint256",
|
|
741
|
+
name: "lastAccruedProtocolFees",
|
|
742
|
+
type: "uint256",
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
internalType: "bool",
|
|
746
|
+
name: "isDelinquent",
|
|
747
|
+
type: "bool",
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
internalType: "uint256",
|
|
751
|
+
name: "timeDelinquent",
|
|
752
|
+
type: "uint256",
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
internalType: "uint256",
|
|
756
|
+
name: "lastInterestAccruedTimestamp",
|
|
757
|
+
type: "uint256",
|
|
758
|
+
},
|
|
759
|
+
],
|
|
760
|
+
internalType: "struct VaultData[]",
|
|
761
|
+
name: "data",
|
|
762
|
+
type: "tuple[]",
|
|
763
|
+
},
|
|
764
|
+
],
|
|
765
|
+
stateMutability: "view",
|
|
766
|
+
type: "function",
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
inputs: [
|
|
770
|
+
{
|
|
771
|
+
internalType: "address",
|
|
772
|
+
name: "account",
|
|
773
|
+
type: "address",
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
internalType: "uint256",
|
|
777
|
+
name: "start",
|
|
778
|
+
type: "uint256",
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
internalType: "uint256",
|
|
782
|
+
name: "length",
|
|
783
|
+
type: "uint256",
|
|
784
|
+
},
|
|
785
|
+
],
|
|
786
|
+
name: "getPaginatedVaultsDataWithAccount",
|
|
787
|
+
outputs: [
|
|
788
|
+
{
|
|
789
|
+
components: [
|
|
790
|
+
{
|
|
791
|
+
components: [
|
|
792
|
+
{
|
|
793
|
+
components: [
|
|
794
|
+
{
|
|
795
|
+
internalType: "address",
|
|
796
|
+
name: "token",
|
|
797
|
+
type: "address",
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
internalType: "string",
|
|
801
|
+
name: "name",
|
|
802
|
+
type: "string",
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
internalType: "string",
|
|
806
|
+
name: "symbol",
|
|
807
|
+
type: "string",
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
internalType: "uint256",
|
|
811
|
+
name: "decimals",
|
|
812
|
+
type: "uint256",
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
internalType: "bool",
|
|
816
|
+
name: "isMock",
|
|
817
|
+
type: "bool",
|
|
818
|
+
},
|
|
819
|
+
],
|
|
820
|
+
internalType: "struct TokenMetadata",
|
|
821
|
+
name: "vaultToken",
|
|
822
|
+
type: "tuple",
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
components: [
|
|
826
|
+
{
|
|
827
|
+
internalType: "address",
|
|
828
|
+
name: "token",
|
|
829
|
+
type: "address",
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
internalType: "string",
|
|
833
|
+
name: "name",
|
|
834
|
+
type: "string",
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
internalType: "string",
|
|
838
|
+
name: "symbol",
|
|
839
|
+
type: "string",
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
internalType: "uint256",
|
|
843
|
+
name: "decimals",
|
|
844
|
+
type: "uint256",
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
internalType: "bool",
|
|
848
|
+
name: "isMock",
|
|
849
|
+
type: "bool",
|
|
850
|
+
},
|
|
851
|
+
],
|
|
852
|
+
internalType: "struct TokenMetadata",
|
|
853
|
+
name: "underlyingToken",
|
|
854
|
+
type: "tuple",
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
internalType: "address",
|
|
858
|
+
name: "borrower",
|
|
859
|
+
type: "address",
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
internalType: "address",
|
|
863
|
+
name: "controller",
|
|
864
|
+
type: "address",
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
internalType: "address",
|
|
868
|
+
name: "feeRecipient",
|
|
869
|
+
type: "address",
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
internalType: "uint256",
|
|
873
|
+
name: "interestFeeBips",
|
|
874
|
+
type: "uint256",
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
internalType: "uint256",
|
|
878
|
+
name: "penaltyFeeBips",
|
|
879
|
+
type: "uint256",
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
internalType: "uint256",
|
|
883
|
+
name: "gracePeriod",
|
|
884
|
+
type: "uint256",
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
internalType: "uint256",
|
|
888
|
+
name: "liquidityCoverageRatio",
|
|
889
|
+
type: "uint256",
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
internalType: "bool",
|
|
893
|
+
name: "temporaryLiquidityCoverage",
|
|
894
|
+
type: "bool",
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
internalType: "uint256",
|
|
898
|
+
name: "originalLiquidityCoverageRatio",
|
|
899
|
+
type: "uint256",
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
internalType: "uint256",
|
|
903
|
+
name: "temporaryLiquidityCoverageExpiry",
|
|
904
|
+
type: "uint256",
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
internalType: "uint256",
|
|
908
|
+
name: "annualInterestBips",
|
|
909
|
+
type: "uint256",
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
internalType: "uint256",
|
|
913
|
+
name: "borrowableAssets",
|
|
914
|
+
type: "uint256",
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
internalType: "uint256",
|
|
918
|
+
name: "totalSupply",
|
|
919
|
+
type: "uint256",
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
internalType: "uint256",
|
|
923
|
+
name: "maxTotalSupply",
|
|
924
|
+
type: "uint256",
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
internalType: "uint256",
|
|
928
|
+
name: "scaledTotalSupply",
|
|
929
|
+
type: "uint256",
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
internalType: "uint256",
|
|
933
|
+
name: "totalAssets",
|
|
934
|
+
type: "uint256",
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
internalType: "uint256",
|
|
938
|
+
name: "coverageLiquidity",
|
|
939
|
+
type: "uint256",
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
internalType: "uint256",
|
|
943
|
+
name: "scaleFactor",
|
|
944
|
+
type: "uint256",
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
internalType: "uint256",
|
|
948
|
+
name: "lastAccruedProtocolFees",
|
|
949
|
+
type: "uint256",
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
internalType: "bool",
|
|
953
|
+
name: "isDelinquent",
|
|
954
|
+
type: "bool",
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
internalType: "uint256",
|
|
958
|
+
name: "timeDelinquent",
|
|
959
|
+
type: "uint256",
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
internalType: "uint256",
|
|
963
|
+
name: "lastInterestAccruedTimestamp",
|
|
964
|
+
type: "uint256",
|
|
965
|
+
},
|
|
966
|
+
],
|
|
967
|
+
internalType: "struct VaultData",
|
|
968
|
+
name: "vault",
|
|
969
|
+
type: "tuple",
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
components: [
|
|
973
|
+
{
|
|
974
|
+
internalType: "uint256",
|
|
975
|
+
name: "scaledBalance",
|
|
976
|
+
type: "uint256",
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
internalType: "uint256",
|
|
980
|
+
name: "normalizedBalance",
|
|
981
|
+
type: "uint256",
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
internalType: "uint256",
|
|
985
|
+
name: "underlyingBalance",
|
|
986
|
+
type: "uint256",
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
internalType: "uint256",
|
|
990
|
+
name: "underlyingApproval",
|
|
991
|
+
type: "uint256",
|
|
992
|
+
},
|
|
993
|
+
],
|
|
994
|
+
internalType: "struct AccountVaultInfo",
|
|
995
|
+
name: "account",
|
|
996
|
+
type: "tuple",
|
|
997
|
+
},
|
|
998
|
+
],
|
|
999
|
+
internalType: "struct VaultDataWithAccount[]",
|
|
1000
|
+
name: "data",
|
|
1001
|
+
type: "tuple[]",
|
|
1002
|
+
},
|
|
1003
|
+
],
|
|
1004
|
+
stateMutability: "view",
|
|
1005
|
+
type: "function",
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
inputs: [
|
|
1009
|
+
{
|
|
1010
|
+
internalType: "address",
|
|
1011
|
+
name: "token",
|
|
1012
|
+
type: "address",
|
|
1013
|
+
},
|
|
1014
|
+
],
|
|
1015
|
+
name: "getTokenInfo",
|
|
1016
|
+
outputs: [
|
|
1017
|
+
{
|
|
1018
|
+
components: [
|
|
1019
|
+
{
|
|
1020
|
+
internalType: "address",
|
|
1021
|
+
name: "token",
|
|
1022
|
+
type: "address",
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
internalType: "string",
|
|
1026
|
+
name: "name",
|
|
1027
|
+
type: "string",
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
internalType: "string",
|
|
1031
|
+
name: "symbol",
|
|
1032
|
+
type: "string",
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
internalType: "uint256",
|
|
1036
|
+
name: "decimals",
|
|
1037
|
+
type: "uint256",
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
internalType: "bool",
|
|
1041
|
+
name: "isMock",
|
|
1042
|
+
type: "bool",
|
|
1043
|
+
},
|
|
1044
|
+
],
|
|
1045
|
+
internalType: "struct TokenMetadata",
|
|
1046
|
+
name: "info",
|
|
1047
|
+
type: "tuple",
|
|
1048
|
+
},
|
|
1049
|
+
],
|
|
1050
|
+
stateMutability: "view",
|
|
1051
|
+
type: "function",
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
inputs: [
|
|
1055
|
+
{
|
|
1056
|
+
internalType: "address[]",
|
|
1057
|
+
name: "tokens",
|
|
1058
|
+
type: "address[]",
|
|
1059
|
+
},
|
|
1060
|
+
],
|
|
1061
|
+
name: "getTokensInfo",
|
|
1062
|
+
outputs: [
|
|
1063
|
+
{
|
|
1064
|
+
components: [
|
|
1065
|
+
{
|
|
1066
|
+
internalType: "address",
|
|
1067
|
+
name: "token",
|
|
1068
|
+
type: "address",
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
internalType: "string",
|
|
1072
|
+
name: "name",
|
|
1073
|
+
type: "string",
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
internalType: "string",
|
|
1077
|
+
name: "symbol",
|
|
1078
|
+
type: "string",
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
internalType: "uint256",
|
|
1082
|
+
name: "decimals",
|
|
1083
|
+
type: "uint256",
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
internalType: "bool",
|
|
1087
|
+
name: "isMock",
|
|
1088
|
+
type: "bool",
|
|
1089
|
+
},
|
|
1090
|
+
],
|
|
1091
|
+
internalType: "struct TokenMetadata[]",
|
|
1092
|
+
name: "info",
|
|
1093
|
+
type: "tuple[]",
|
|
1094
|
+
},
|
|
1095
|
+
],
|
|
1096
|
+
stateMutability: "view",
|
|
1097
|
+
type: "function",
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
inputs: [
|
|
1101
|
+
{
|
|
1102
|
+
internalType: "address",
|
|
1103
|
+
name: "vault",
|
|
1104
|
+
type: "address",
|
|
1105
|
+
},
|
|
1106
|
+
],
|
|
1107
|
+
name: "getVaultData",
|
|
1108
|
+
outputs: [
|
|
1109
|
+
{
|
|
1110
|
+
components: [
|
|
1111
|
+
{
|
|
1112
|
+
components: [
|
|
1113
|
+
{
|
|
1114
|
+
internalType: "address",
|
|
1115
|
+
name: "token",
|
|
1116
|
+
type: "address",
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
internalType: "string",
|
|
1120
|
+
name: "name",
|
|
1121
|
+
type: "string",
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
internalType: "string",
|
|
1125
|
+
name: "symbol",
|
|
1126
|
+
type: "string",
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
internalType: "uint256",
|
|
1130
|
+
name: "decimals",
|
|
1131
|
+
type: "uint256",
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
internalType: "bool",
|
|
1135
|
+
name: "isMock",
|
|
1136
|
+
type: "bool",
|
|
1137
|
+
},
|
|
1138
|
+
],
|
|
1139
|
+
internalType: "struct TokenMetadata",
|
|
1140
|
+
name: "vaultToken",
|
|
1141
|
+
type: "tuple",
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
components: [
|
|
1145
|
+
{
|
|
1146
|
+
internalType: "address",
|
|
1147
|
+
name: "token",
|
|
1148
|
+
type: "address",
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
internalType: "string",
|
|
1152
|
+
name: "name",
|
|
1153
|
+
type: "string",
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
internalType: "string",
|
|
1157
|
+
name: "symbol",
|
|
1158
|
+
type: "string",
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
internalType: "uint256",
|
|
1162
|
+
name: "decimals",
|
|
1163
|
+
type: "uint256",
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
internalType: "bool",
|
|
1167
|
+
name: "isMock",
|
|
1168
|
+
type: "bool",
|
|
1169
|
+
},
|
|
1170
|
+
],
|
|
1171
|
+
internalType: "struct TokenMetadata",
|
|
1172
|
+
name: "underlyingToken",
|
|
1173
|
+
type: "tuple",
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
internalType: "address",
|
|
1177
|
+
name: "borrower",
|
|
1178
|
+
type: "address",
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
internalType: "address",
|
|
1182
|
+
name: "controller",
|
|
1183
|
+
type: "address",
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
internalType: "address",
|
|
1187
|
+
name: "feeRecipient",
|
|
1188
|
+
type: "address",
|
|
422
1189
|
},
|
|
423
1190
|
{
|
|
424
1191
|
internalType: "uint256",
|
|
@@ -427,17 +1194,454 @@ const _abi = [
|
|
|
427
1194
|
},
|
|
428
1195
|
{
|
|
429
1196
|
internalType: "uint256",
|
|
430
|
-
name: "penaltyFeeBips",
|
|
1197
|
+
name: "penaltyFeeBips",
|
|
1198
|
+
type: "uint256",
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
internalType: "uint256",
|
|
1202
|
+
name: "gracePeriod",
|
|
1203
|
+
type: "uint256",
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
internalType: "uint256",
|
|
1207
|
+
name: "liquidityCoverageRatio",
|
|
1208
|
+
type: "uint256",
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
internalType: "bool",
|
|
1212
|
+
name: "temporaryLiquidityCoverage",
|
|
1213
|
+
type: "bool",
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
internalType: "uint256",
|
|
1217
|
+
name: "originalLiquidityCoverageRatio",
|
|
1218
|
+
type: "uint256",
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
internalType: "uint256",
|
|
1222
|
+
name: "temporaryLiquidityCoverageExpiry",
|
|
1223
|
+
type: "uint256",
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
internalType: "uint256",
|
|
1227
|
+
name: "annualInterestBips",
|
|
1228
|
+
type: "uint256",
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
internalType: "uint256",
|
|
1232
|
+
name: "borrowableAssets",
|
|
1233
|
+
type: "uint256",
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
internalType: "uint256",
|
|
1237
|
+
name: "totalSupply",
|
|
1238
|
+
type: "uint256",
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
internalType: "uint256",
|
|
1242
|
+
name: "maxTotalSupply",
|
|
1243
|
+
type: "uint256",
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
internalType: "uint256",
|
|
1247
|
+
name: "scaledTotalSupply",
|
|
1248
|
+
type: "uint256",
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
internalType: "uint256",
|
|
1252
|
+
name: "totalAssets",
|
|
1253
|
+
type: "uint256",
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
internalType: "uint256",
|
|
1257
|
+
name: "coverageLiquidity",
|
|
1258
|
+
type: "uint256",
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
internalType: "uint256",
|
|
1262
|
+
name: "scaleFactor",
|
|
1263
|
+
type: "uint256",
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
internalType: "uint256",
|
|
1267
|
+
name: "lastAccruedProtocolFees",
|
|
1268
|
+
type: "uint256",
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
internalType: "bool",
|
|
1272
|
+
name: "isDelinquent",
|
|
1273
|
+
type: "bool",
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
internalType: "uint256",
|
|
1277
|
+
name: "timeDelinquent",
|
|
1278
|
+
type: "uint256",
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
internalType: "uint256",
|
|
1282
|
+
name: "lastInterestAccruedTimestamp",
|
|
1283
|
+
type: "uint256",
|
|
1284
|
+
},
|
|
1285
|
+
],
|
|
1286
|
+
internalType: "struct VaultData",
|
|
1287
|
+
name: "data",
|
|
1288
|
+
type: "tuple",
|
|
1289
|
+
},
|
|
1290
|
+
],
|
|
1291
|
+
stateMutability: "view",
|
|
1292
|
+
type: "function",
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
inputs: [
|
|
1296
|
+
{
|
|
1297
|
+
internalType: "address",
|
|
1298
|
+
name: "account",
|
|
1299
|
+
type: "address",
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
internalType: "address",
|
|
1303
|
+
name: "vault",
|
|
1304
|
+
type: "address",
|
|
1305
|
+
},
|
|
1306
|
+
],
|
|
1307
|
+
name: "getVaultDataWithAccount",
|
|
1308
|
+
outputs: [
|
|
1309
|
+
{
|
|
1310
|
+
components: [
|
|
1311
|
+
{
|
|
1312
|
+
components: [
|
|
1313
|
+
{
|
|
1314
|
+
components: [
|
|
1315
|
+
{
|
|
1316
|
+
internalType: "address",
|
|
1317
|
+
name: "token",
|
|
1318
|
+
type: "address",
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
internalType: "string",
|
|
1322
|
+
name: "name",
|
|
1323
|
+
type: "string",
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
internalType: "string",
|
|
1327
|
+
name: "symbol",
|
|
1328
|
+
type: "string",
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
internalType: "uint256",
|
|
1332
|
+
name: "decimals",
|
|
1333
|
+
type: "uint256",
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
internalType: "bool",
|
|
1337
|
+
name: "isMock",
|
|
1338
|
+
type: "bool",
|
|
1339
|
+
},
|
|
1340
|
+
],
|
|
1341
|
+
internalType: "struct TokenMetadata",
|
|
1342
|
+
name: "vaultToken",
|
|
1343
|
+
type: "tuple",
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
components: [
|
|
1347
|
+
{
|
|
1348
|
+
internalType: "address",
|
|
1349
|
+
name: "token",
|
|
1350
|
+
type: "address",
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
internalType: "string",
|
|
1354
|
+
name: "name",
|
|
1355
|
+
type: "string",
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
internalType: "string",
|
|
1359
|
+
name: "symbol",
|
|
1360
|
+
type: "string",
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
internalType: "uint256",
|
|
1364
|
+
name: "decimals",
|
|
1365
|
+
type: "uint256",
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
internalType: "bool",
|
|
1369
|
+
name: "isMock",
|
|
1370
|
+
type: "bool",
|
|
1371
|
+
},
|
|
1372
|
+
],
|
|
1373
|
+
internalType: "struct TokenMetadata",
|
|
1374
|
+
name: "underlyingToken",
|
|
1375
|
+
type: "tuple",
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
internalType: "address",
|
|
1379
|
+
name: "borrower",
|
|
1380
|
+
type: "address",
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
internalType: "address",
|
|
1384
|
+
name: "controller",
|
|
1385
|
+
type: "address",
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
internalType: "address",
|
|
1389
|
+
name: "feeRecipient",
|
|
1390
|
+
type: "address",
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
internalType: "uint256",
|
|
1394
|
+
name: "interestFeeBips",
|
|
1395
|
+
type: "uint256",
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
internalType: "uint256",
|
|
1399
|
+
name: "penaltyFeeBips",
|
|
1400
|
+
type: "uint256",
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
internalType: "uint256",
|
|
1404
|
+
name: "gracePeriod",
|
|
1405
|
+
type: "uint256",
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
internalType: "uint256",
|
|
1409
|
+
name: "liquidityCoverageRatio",
|
|
1410
|
+
type: "uint256",
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
internalType: "bool",
|
|
1414
|
+
name: "temporaryLiquidityCoverage",
|
|
1415
|
+
type: "bool",
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
internalType: "uint256",
|
|
1419
|
+
name: "originalLiquidityCoverageRatio",
|
|
1420
|
+
type: "uint256",
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
internalType: "uint256",
|
|
1424
|
+
name: "temporaryLiquidityCoverageExpiry",
|
|
1425
|
+
type: "uint256",
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
internalType: "uint256",
|
|
1429
|
+
name: "annualInterestBips",
|
|
1430
|
+
type: "uint256",
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
internalType: "uint256",
|
|
1434
|
+
name: "borrowableAssets",
|
|
1435
|
+
type: "uint256",
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
internalType: "uint256",
|
|
1439
|
+
name: "totalSupply",
|
|
1440
|
+
type: "uint256",
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
internalType: "uint256",
|
|
1444
|
+
name: "maxTotalSupply",
|
|
1445
|
+
type: "uint256",
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
internalType: "uint256",
|
|
1449
|
+
name: "scaledTotalSupply",
|
|
1450
|
+
type: "uint256",
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
internalType: "uint256",
|
|
1454
|
+
name: "totalAssets",
|
|
1455
|
+
type: "uint256",
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
internalType: "uint256",
|
|
1459
|
+
name: "coverageLiquidity",
|
|
1460
|
+
type: "uint256",
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
internalType: "uint256",
|
|
1464
|
+
name: "scaleFactor",
|
|
1465
|
+
type: "uint256",
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
internalType: "uint256",
|
|
1469
|
+
name: "lastAccruedProtocolFees",
|
|
1470
|
+
type: "uint256",
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
internalType: "bool",
|
|
1474
|
+
name: "isDelinquent",
|
|
1475
|
+
type: "bool",
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
internalType: "uint256",
|
|
1479
|
+
name: "timeDelinquent",
|
|
1480
|
+
type: "uint256",
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
internalType: "uint256",
|
|
1484
|
+
name: "lastInterestAccruedTimestamp",
|
|
1485
|
+
type: "uint256",
|
|
1486
|
+
},
|
|
1487
|
+
],
|
|
1488
|
+
internalType: "struct VaultData",
|
|
1489
|
+
name: "vault",
|
|
1490
|
+
type: "tuple",
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
components: [
|
|
1494
|
+
{
|
|
1495
|
+
internalType: "uint256",
|
|
1496
|
+
name: "scaledBalance",
|
|
1497
|
+
type: "uint256",
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
internalType: "uint256",
|
|
1501
|
+
name: "normalizedBalance",
|
|
1502
|
+
type: "uint256",
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
internalType: "uint256",
|
|
1506
|
+
name: "underlyingBalance",
|
|
1507
|
+
type: "uint256",
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
internalType: "uint256",
|
|
1511
|
+
name: "underlyingApproval",
|
|
1512
|
+
type: "uint256",
|
|
1513
|
+
},
|
|
1514
|
+
],
|
|
1515
|
+
internalType: "struct AccountVaultInfo",
|
|
1516
|
+
name: "account",
|
|
1517
|
+
type: "tuple",
|
|
1518
|
+
},
|
|
1519
|
+
],
|
|
1520
|
+
internalType: "struct VaultDataWithAccount",
|
|
1521
|
+
name: "data",
|
|
1522
|
+
type: "tuple",
|
|
1523
|
+
},
|
|
1524
|
+
],
|
|
1525
|
+
stateMutability: "view",
|
|
1526
|
+
type: "function",
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
inputs: [],
|
|
1530
|
+
name: "getVaultsCount",
|
|
1531
|
+
outputs: [
|
|
1532
|
+
{
|
|
1533
|
+
internalType: "uint256",
|
|
1534
|
+
name: "",
|
|
1535
|
+
type: "uint256",
|
|
1536
|
+
},
|
|
1537
|
+
],
|
|
1538
|
+
stateMutability: "view",
|
|
1539
|
+
type: "function",
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
inputs: [
|
|
1543
|
+
{
|
|
1544
|
+
internalType: "address[]",
|
|
1545
|
+
name: "vaults",
|
|
1546
|
+
type: "address[]",
|
|
1547
|
+
},
|
|
1548
|
+
],
|
|
1549
|
+
name: "getVaultsData",
|
|
1550
|
+
outputs: [
|
|
1551
|
+
{
|
|
1552
|
+
components: [
|
|
1553
|
+
{
|
|
1554
|
+
components: [
|
|
1555
|
+
{
|
|
1556
|
+
internalType: "address",
|
|
1557
|
+
name: "token",
|
|
1558
|
+
type: "address",
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
internalType: "string",
|
|
1562
|
+
name: "name",
|
|
1563
|
+
type: "string",
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
internalType: "string",
|
|
1567
|
+
name: "symbol",
|
|
1568
|
+
type: "string",
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
internalType: "uint256",
|
|
1572
|
+
name: "decimals",
|
|
1573
|
+
type: "uint256",
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
internalType: "bool",
|
|
1577
|
+
name: "isMock",
|
|
1578
|
+
type: "bool",
|
|
1579
|
+
},
|
|
1580
|
+
],
|
|
1581
|
+
internalType: "struct TokenMetadata",
|
|
1582
|
+
name: "vaultToken",
|
|
1583
|
+
type: "tuple",
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
components: [
|
|
1587
|
+
{
|
|
1588
|
+
internalType: "address",
|
|
1589
|
+
name: "token",
|
|
1590
|
+
type: "address",
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
internalType: "string",
|
|
1594
|
+
name: "name",
|
|
1595
|
+
type: "string",
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
internalType: "string",
|
|
1599
|
+
name: "symbol",
|
|
1600
|
+
type: "string",
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
internalType: "uint256",
|
|
1604
|
+
name: "decimals",
|
|
1605
|
+
type: "uint256",
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
internalType: "bool",
|
|
1609
|
+
name: "isMock",
|
|
1610
|
+
type: "bool",
|
|
1611
|
+
},
|
|
1612
|
+
],
|
|
1613
|
+
internalType: "struct TokenMetadata",
|
|
1614
|
+
name: "underlyingToken",
|
|
1615
|
+
type: "tuple",
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
internalType: "address",
|
|
1619
|
+
name: "borrower",
|
|
1620
|
+
type: "address",
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
internalType: "address",
|
|
1624
|
+
name: "controller",
|
|
1625
|
+
type: "address",
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
internalType: "address",
|
|
1629
|
+
name: "feeRecipient",
|
|
1630
|
+
type: "address",
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
internalType: "uint256",
|
|
1634
|
+
name: "interestFeeBips",
|
|
431
1635
|
type: "uint256",
|
|
432
1636
|
},
|
|
433
1637
|
{
|
|
434
1638
|
internalType: "uint256",
|
|
435
|
-
name: "
|
|
1639
|
+
name: "penaltyFeeBips",
|
|
436
1640
|
type: "uint256",
|
|
437
1641
|
},
|
|
438
1642
|
{
|
|
439
1643
|
internalType: "uint256",
|
|
440
|
-
name: "
|
|
1644
|
+
name: "gracePeriod",
|
|
441
1645
|
type: "uint256",
|
|
442
1646
|
},
|
|
443
1647
|
{
|
|
@@ -460,6 +1664,11 @@ const _abi = [
|
|
|
460
1664
|
name: "temporaryLiquidityCoverageExpiry",
|
|
461
1665
|
type: "uint256",
|
|
462
1666
|
},
|
|
1667
|
+
{
|
|
1668
|
+
internalType: "uint256",
|
|
1669
|
+
name: "annualInterestBips",
|
|
1670
|
+
type: "uint256",
|
|
1671
|
+
},
|
|
463
1672
|
{
|
|
464
1673
|
internalType: "uint256",
|
|
465
1674
|
name: "borrowableAssets",
|
|
@@ -467,17 +1676,17 @@ const _abi = [
|
|
|
467
1676
|
},
|
|
468
1677
|
{
|
|
469
1678
|
internalType: "uint256",
|
|
470
|
-
name: "
|
|
1679
|
+
name: "totalSupply",
|
|
471
1680
|
type: "uint256",
|
|
472
1681
|
},
|
|
473
1682
|
{
|
|
474
1683
|
internalType: "uint256",
|
|
475
|
-
name: "
|
|
1684
|
+
name: "maxTotalSupply",
|
|
476
1685
|
type: "uint256",
|
|
477
1686
|
},
|
|
478
1687
|
{
|
|
479
1688
|
internalType: "uint256",
|
|
480
|
-
name: "
|
|
1689
|
+
name: "scaledTotalSupply",
|
|
481
1690
|
type: "uint256",
|
|
482
1691
|
},
|
|
483
1692
|
{
|
|
@@ -524,30 +1733,242 @@ const _abi = [
|
|
|
524
1733
|
stateMutability: "view",
|
|
525
1734
|
type: "function",
|
|
526
1735
|
},
|
|
1736
|
+
{
|
|
1737
|
+
inputs: [
|
|
1738
|
+
{
|
|
1739
|
+
internalType: "address",
|
|
1740
|
+
name: "account",
|
|
1741
|
+
type: "address",
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
internalType: "address[]",
|
|
1745
|
+
name: "vaults",
|
|
1746
|
+
type: "address[]",
|
|
1747
|
+
},
|
|
1748
|
+
],
|
|
1749
|
+
name: "getVaultsDataWithAccount",
|
|
1750
|
+
outputs: [
|
|
1751
|
+
{
|
|
1752
|
+
components: [
|
|
1753
|
+
{
|
|
1754
|
+
components: [
|
|
1755
|
+
{
|
|
1756
|
+
components: [
|
|
1757
|
+
{
|
|
1758
|
+
internalType: "address",
|
|
1759
|
+
name: "token",
|
|
1760
|
+
type: "address",
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
internalType: "string",
|
|
1764
|
+
name: "name",
|
|
1765
|
+
type: "string",
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
internalType: "string",
|
|
1769
|
+
name: "symbol",
|
|
1770
|
+
type: "string",
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
internalType: "uint256",
|
|
1774
|
+
name: "decimals",
|
|
1775
|
+
type: "uint256",
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
internalType: "bool",
|
|
1779
|
+
name: "isMock",
|
|
1780
|
+
type: "bool",
|
|
1781
|
+
},
|
|
1782
|
+
],
|
|
1783
|
+
internalType: "struct TokenMetadata",
|
|
1784
|
+
name: "vaultToken",
|
|
1785
|
+
type: "tuple",
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
components: [
|
|
1789
|
+
{
|
|
1790
|
+
internalType: "address",
|
|
1791
|
+
name: "token",
|
|
1792
|
+
type: "address",
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
internalType: "string",
|
|
1796
|
+
name: "name",
|
|
1797
|
+
type: "string",
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
internalType: "string",
|
|
1801
|
+
name: "symbol",
|
|
1802
|
+
type: "string",
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
internalType: "uint256",
|
|
1806
|
+
name: "decimals",
|
|
1807
|
+
type: "uint256",
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
internalType: "bool",
|
|
1811
|
+
name: "isMock",
|
|
1812
|
+
type: "bool",
|
|
1813
|
+
},
|
|
1814
|
+
],
|
|
1815
|
+
internalType: "struct TokenMetadata",
|
|
1816
|
+
name: "underlyingToken",
|
|
1817
|
+
type: "tuple",
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
internalType: "address",
|
|
1821
|
+
name: "borrower",
|
|
1822
|
+
type: "address",
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
internalType: "address",
|
|
1826
|
+
name: "controller",
|
|
1827
|
+
type: "address",
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
internalType: "address",
|
|
1831
|
+
name: "feeRecipient",
|
|
1832
|
+
type: "address",
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
internalType: "uint256",
|
|
1836
|
+
name: "interestFeeBips",
|
|
1837
|
+
type: "uint256",
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
internalType: "uint256",
|
|
1841
|
+
name: "penaltyFeeBips",
|
|
1842
|
+
type: "uint256",
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
internalType: "uint256",
|
|
1846
|
+
name: "gracePeriod",
|
|
1847
|
+
type: "uint256",
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
internalType: "uint256",
|
|
1851
|
+
name: "liquidityCoverageRatio",
|
|
1852
|
+
type: "uint256",
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
internalType: "bool",
|
|
1856
|
+
name: "temporaryLiquidityCoverage",
|
|
1857
|
+
type: "bool",
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
internalType: "uint256",
|
|
1861
|
+
name: "originalLiquidityCoverageRatio",
|
|
1862
|
+
type: "uint256",
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
internalType: "uint256",
|
|
1866
|
+
name: "temporaryLiquidityCoverageExpiry",
|
|
1867
|
+
type: "uint256",
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
internalType: "uint256",
|
|
1871
|
+
name: "annualInterestBips",
|
|
1872
|
+
type: "uint256",
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
internalType: "uint256",
|
|
1876
|
+
name: "borrowableAssets",
|
|
1877
|
+
type: "uint256",
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
internalType: "uint256",
|
|
1881
|
+
name: "totalSupply",
|
|
1882
|
+
type: "uint256",
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
internalType: "uint256",
|
|
1886
|
+
name: "maxTotalSupply",
|
|
1887
|
+
type: "uint256",
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
internalType: "uint256",
|
|
1891
|
+
name: "scaledTotalSupply",
|
|
1892
|
+
type: "uint256",
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
internalType: "uint256",
|
|
1896
|
+
name: "totalAssets",
|
|
1897
|
+
type: "uint256",
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
internalType: "uint256",
|
|
1901
|
+
name: "coverageLiquidity",
|
|
1902
|
+
type: "uint256",
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
internalType: "uint256",
|
|
1906
|
+
name: "scaleFactor",
|
|
1907
|
+
type: "uint256",
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
internalType: "uint256",
|
|
1911
|
+
name: "lastAccruedProtocolFees",
|
|
1912
|
+
type: "uint256",
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
internalType: "bool",
|
|
1916
|
+
name: "isDelinquent",
|
|
1917
|
+
type: "bool",
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
internalType: "uint256",
|
|
1921
|
+
name: "timeDelinquent",
|
|
1922
|
+
type: "uint256",
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
internalType: "uint256",
|
|
1926
|
+
name: "lastInterestAccruedTimestamp",
|
|
1927
|
+
type: "uint256",
|
|
1928
|
+
},
|
|
1929
|
+
],
|
|
1930
|
+
internalType: "struct VaultData",
|
|
1931
|
+
name: "vault",
|
|
1932
|
+
type: "tuple",
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
components: [
|
|
1936
|
+
{
|
|
1937
|
+
internalType: "uint256",
|
|
1938
|
+
name: "scaledBalance",
|
|
1939
|
+
type: "uint256",
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
internalType: "uint256",
|
|
1943
|
+
name: "normalizedBalance",
|
|
1944
|
+
type: "uint256",
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
internalType: "uint256",
|
|
1948
|
+
name: "underlyingBalance",
|
|
1949
|
+
type: "uint256",
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
internalType: "uint256",
|
|
1953
|
+
name: "underlyingApproval",
|
|
1954
|
+
type: "uint256",
|
|
1955
|
+
},
|
|
1956
|
+
],
|
|
1957
|
+
internalType: "struct AccountVaultInfo",
|
|
1958
|
+
name: "account",
|
|
1959
|
+
type: "tuple",
|
|
1960
|
+
},
|
|
1961
|
+
],
|
|
1962
|
+
internalType: "struct VaultDataWithAccount[]",
|
|
1963
|
+
name: "data",
|
|
1964
|
+
type: "tuple[]",
|
|
1965
|
+
},
|
|
1966
|
+
],
|
|
1967
|
+
stateMutability: "view",
|
|
1968
|
+
type: "function",
|
|
1969
|
+
},
|
|
527
1970
|
];
|
|
528
|
-
const _bytecode = "0x608060405234801561001057600080fd5b50611c01806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80631f69565f1461005c57806328b37b221461008c57806356360f71146100bc578063a0ff58f6146100ec578063a32698461461011c575b600080fd5b6100766004803603810190610071919061096f565b61014c565b6040516100839190610aec565b60405180910390f35b6100a660048036038101906100a1919061096f565b6101fc565b6040516100b39190610b50565b60405180910390f35b6100d660048036038101906100d1919061096f565b610299565b6040516100e39190610def565b60405180910390f35b61010660048036038101906101019190610e11565b610349565b6040516101139190610ea6565b60405180910390f35b61013660048036038101906101319190610f26565b6103e9565b604051610143919061123c565b60405180910390f35b610154610764565b600073ddcbbc4510156441f88d23a6ab4c64eed1775c1673ffffffffffffffffffffffffffffffffffffffff16631f69565f846040518263ffffffff1660e01b81526004016101a3919061126d565b600060405180830381865afa1580156101c0573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906101e991906114a4565b90506101f481610543565b915050919050565b6102046107ab565b73ddcbbc4510156441f88d23a6ab4c64eed1775c1673ffffffffffffffffffffffffffffffffffffffff166328b37b22836040518263ffffffff1660e01b8152600401610251919061126d565b606060405180830381865afa15801561026e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610292919061157d565b9050919050565b6102a16107ce565b600073ddcbbc4510156441f88d23a6ab4c64eed1775c1673ffffffffffffffffffffffffffffffffffffffff166356360f71846040518263ffffffff1660e01b81526004016102f0919061126d565b600060405180830381865afa15801561030d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610336919061180c565b9050610341816105d0565b915050919050565b6103516108d5565b73ddcbbc4510156441f88d23a6ab4c64eed1775c1673ffffffffffffffffffffffffffffffffffffffff1663a0ff58f684846040518363ffffffff1660e01b81526004016103a0929190611855565b608060405180830381865afa1580156103bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e191906118f6565b905092915050565b6060600073ddcbbc4510156441f88d23a6ab4c64eed1775c1673ffffffffffffffffffffffffffffffffffffffff1663a326984685856040518363ffffffff1660e01b815260040161043c9291906119d7565b600060405180830381865afa158015610459573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906104829190611adc565b9050805167ffffffffffffffff81111561049f5761049e61128d565b5b6040519080825280602002602001820160405280156104d857816020015b6104c56107ce565b8152602001906001900390816104bd5790505b50915060005b815181101561053b5761050a8282815181106104fd576104fc611b25565b5b60200260200101516105d0565b83828151811061051d5761051c611b25565b5b6020026020010181905250808061053390611b83565b9150506104de565b505092915050565b61054b610764565b8160000151816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050816020015181602001819052508160400151816040018190525081606001518160600181815250506105bc826000015161073f565b816080019015159081151581525050919050565b6105d86107ce565b6040518061030001604052806105f18460000151610543565b81526020016106038460200151610543565b8152602001836040015173ffffffffffffffffffffffffffffffffffffffff168152602001836060015173ffffffffffffffffffffffffffffffffffffffff168152602001836080015173ffffffffffffffffffffffffffffffffffffffff1681526020018360a0015181526020018360c0015181526020018360e001518152602001836101000151815260200183610120015181526020018361014001511515815260200183610160015181526020018361018001518152602001836101a001518152602001836101c001518152602001836101e00151815260200183610200015181526020018361022001518152602001836102400151815260200183610260015181526020018361028001518152602001836102a0015115158152602001836102c001518152602001836102e001518152509050919050565b60006328ccaa29600052602060006004601c855afa6001600051148116915050919050565b6040518060a00160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016060815260200160608152602001600081526020016000151581525090565b604051806060016040528060001515815260200160008152602001600081525090565b6040518061030001604052806107e2610764565b81526020016107ef610764565b8152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160008152602001600081525090565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061093c82610911565b9050919050565b61094c81610931565b811461095757600080fd5b50565b60008135905061096981610943565b92915050565b60006020828403121561098557610984610907565b5b60006109938482850161095a565b91505092915050565b6109a581610931565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b838110156109e55780820151818401526020810190506109ca565b60008484015250505050565b6000601f19601f8301169050919050565b6000610a0d826109ab565b610a1781856109b6565b9350610a278185602086016109c7565b610a30816109f1565b840191505092915050565b6000819050919050565b610a4e81610a3b565b82525050565b60008115159050919050565b610a6981610a54565b82525050565b600060a083016000830151610a87600086018261099c565b5060208301518482036020860152610a9f8282610a02565b91505060408301518482036040860152610ab98282610a02565b9150506060830151610ace6060860182610a45565b506080830151610ae16080860182610a60565b508091505092915050565b60006020820190508181036000830152610b068184610a6f565b905092915050565b606082016000820151610b246000850182610a60565b506020820151610b376020850182610a45565b506040820151610b4a6040850182610a45565b50505050565b6000606082019050610b656000830184610b0e565b92915050565b600060a083016000830151610b83600086018261099c565b5060208301518482036020860152610b9b8282610a02565b91505060408301518482036040860152610bb58282610a02565b9150506060830151610bca6060860182610a45565b506080830151610bdd6080860182610a60565b508091505092915050565b6000610300830160008301518482036000860152610c068282610b6b565b91505060208301518482036020860152610c208282610b6b565b9150506040830151610c35604086018261099c565b506060830151610c48606086018261099c565b506080830151610c5b608086018261099c565b5060a0830151610c6e60a0860182610a45565b5060c0830151610c8160c0860182610a45565b5060e0830151610c9460e0860182610a45565b50610100830151610ca9610100860182610a45565b50610120830151610cbe610120860182610a45565b50610140830151610cd3610140860182610a60565b50610160830151610ce8610160860182610a45565b50610180830151610cfd610180860182610a45565b506101a0830151610d126101a0860182610a45565b506101c0830151610d276101c0860182610a45565b506101e0830151610d3c6101e0860182610a45565b50610200830151610d51610200860182610a45565b50610220830151610d66610220860182610a45565b50610240830151610d7b610240860182610a45565b50610260830151610d90610260860182610a45565b50610280830151610da5610280860182610a45565b506102a0830151610dba6102a0860182610a60565b506102c0830151610dcf6102c0860182610a45565b506102e0830151610de46102e0860182610a45565b508091505092915050565b60006020820190508181036000830152610e098184610be8565b905092915050565b60008060408385031215610e2857610e27610907565b5b6000610e368582860161095a565b9250506020610e478582860161095a565b9150509250929050565b608082016000820151610e676000850182610a45565b506020820151610e7a6020850182610a45565b506040820151610e8d6040850182610a45565b506060820151610ea06060850182610a45565b50505050565b6000608082019050610ebb6000830184610e51565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610ee657610ee5610ec1565b5b8235905067ffffffffffffffff811115610f0357610f02610ec6565b5b602083019150836020820283011115610f1f57610f1e610ecb565b5b9250929050565b60008060208385031215610f3d57610f3c610907565b5b600083013567ffffffffffffffff811115610f5b57610f5a61090c565b5b610f6785828601610ed0565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610300830160008301518482036000860152610fbd8282610b6b565b91505060208301518482036020860152610fd78282610b6b565b9150506040830151610fec604086018261099c565b506060830151610fff606086018261099c565b506080830151611012608086018261099c565b5060a083015161102560a0860182610a45565b5060c083015161103860c0860182610a45565b5060e083015161104b60e0860182610a45565b50610100830151611060610100860182610a45565b50610120830151611075610120860182610a45565b5061014083015161108a610140860182610a60565b5061016083015161109f610160860182610a45565b506101808301516110b4610180860182610a45565b506101a08301516110c96101a0860182610a45565b506101c08301516110de6101c0860182610a45565b506101e08301516110f36101e0860182610a45565b50610200830151611108610200860182610a45565b5061022083015161111d610220860182610a45565b50610240830151611132610240860182610a45565b50610260830151611147610260860182610a45565b5061028083015161115c610280860182610a45565b506102a08301516111716102a0860182610a60565b506102c08301516111866102c0860182610a45565b506102e083015161119b6102e0860182610a45565b508091505092915050565b60006111b28383610f9f565b905092915050565b6000602082019050919050565b60006111d282610f73565b6111dc8185610f7e565b9350836020820285016111ee85610f8f565b8060005b8581101561122a578484038952815161120b85826111a6565b9450611216836111ba565b925060208a019950506001810190506111f2565b50829750879550505050505092915050565b6000602082019050818103600083015261125681846111c7565b905092915050565b61126781610931565b82525050565b6000602082019050611282600083018461125e565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6112c5826109f1565b810181811067ffffffffffffffff821117156112e4576112e361128d565b5b80604052505050565b60006112f76108fd565b905061130382826112bc565b919050565b600080fd5b60008151905061131c81610943565b92915050565b600080fd5b600067ffffffffffffffff8211156113425761134161128d565b5b61134b826109f1565b9050602081019050919050565b600061136b61136684611327565b6112ed565b90508281526020810184848401111561138757611386611322565b5b6113928482856109c7565b509392505050565b600082601f8301126113af576113ae610ec1565b5b81516113bf848260208601611358565b91505092915050565b6113d181610a3b565b81146113dc57600080fd5b50565b6000815190506113ee816113c8565b92915050565b60006080828403121561140a57611409611288565b5b61141460806112ed565b905060006114248482850161130d565b600083015250602082015167ffffffffffffffff81111561144857611447611308565b5b6114548482850161139a565b602083015250604082015167ffffffffffffffff81111561147857611477611308565b5b6114848482850161139a565b6040830152506060611498848285016113df565b60608301525092915050565b6000602082840312156114ba576114b9610907565b5b600082015167ffffffffffffffff8111156114d8576114d761090c565b5b6114e4848285016113f4565b91505092915050565b6114f681610a54565b811461150157600080fd5b50565b600081519050611513816114ed565b92915050565b60006060828403121561152f5761152e611288565b5b61153960606112ed565b9050600061154984828501611504565b600083015250602061155d848285016113df565b6020830152506040611571848285016113df565b60408301525092915050565b60006060828403121561159357611592610907565b5b60006115a184828501611519565b91505092915050565b600061030082840312156115c1576115c0611288565b5b6115cc6103006112ed565b9050600082015167ffffffffffffffff8111156115ec576115eb611308565b5b6115f8848285016113f4565b600083015250602082015167ffffffffffffffff81111561161c5761161b611308565b5b611628848285016113f4565b602083015250604061163c8482850161130d565b60408301525060606116508482850161130d565b60608301525060806116648482850161130d565b60808301525060a0611678848285016113df565b60a08301525060c061168c848285016113df565b60c08301525060e06116a0848285016113df565b60e0830152506101006116b5848285016113df565b610100830152506101206116cb848285016113df565b610120830152506101406116e184828501611504565b610140830152506101606116f7848285016113df565b6101608301525061018061170d848285016113df565b610180830152506101a0611723848285016113df565b6101a0830152506101c0611739848285016113df565b6101c0830152506101e061174f848285016113df565b6101e083015250610200611765848285016113df565b6102008301525061022061177b848285016113df565b61022083015250610240611791848285016113df565b610240830152506102606117a7848285016113df565b610260830152506102806117bd848285016113df565b610280830152506102a06117d384828501611504565b6102a0830152506102c06117e9848285016113df565b6102c0830152506102e06117ff848285016113df565b6102e08301525092915050565b60006020828403121561182257611821610907565b5b600082015167ffffffffffffffff8111156118405761183f61090c565b5b61184c848285016115aa565b91505092915050565b600060408201905061186a600083018561125e565b611877602083018461125e565b9392505050565b60006080828403121561189457611893611288565b5b61189e60806112ed565b905060006118ae848285016113df565b60008301525060206118c2848285016113df565b60208301525060406118d6848285016113df565b60408301525060606118ea848285016113df565b60608301525092915050565b60006080828403121561190c5761190b610907565b5b600061191a8482850161187e565b91505092915050565b600082825260208201905092915050565b6000819050919050565b600061194a838361099c565b60208301905092915050565b6000611965602084018461095a565b905092915050565b6000602082019050919050565b60006119868385611923565b935061199182611934565b8060005b858110156119ca576119a78284611956565b6119b1888261193e565b97506119bc8361196d565b925050600181019050611995565b5085925050509392505050565b600060208201905081810360008301526119f281848661197a565b90509392505050565b600067ffffffffffffffff821115611a1657611a1561128d565b5b602082029050602081019050919050565b6000611a3a611a35846119fb565b6112ed565b90508083825260208201905060208402830185811115611a5d57611a5c610ecb565b5b835b81811015611aa457805167ffffffffffffffff811115611a8257611a81610ec1565b5b808601611a8f89826115aa565b85526020850194505050602081019050611a5f565b5050509392505050565b600082601f830112611ac357611ac2610ec1565b5b8151611ad3848260208601611a27565b91505092915050565b600060208284031215611af257611af1610907565b5b600082015167ffffffffffffffff811115611b1057611b0f61090c565b5b611b1c84828501611aae565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611b8e82610a3b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611bc057611bbf611b54565b5b60018201905091905056fea264697066735822122043f03f4062b6a5458d8cc1458efde53c0f6cdc30318825bd9c4657f8c80cc36b64736f6c63430008110033";
|
|
529
|
-
const isSuperArgs = (xs) => xs.length > 1;
|
|
530
|
-
class VaultLens__factory extends ethers_1.ContractFactory {
|
|
531
|
-
constructor(...args) {
|
|
532
|
-
if (isSuperArgs(args)) {
|
|
533
|
-
super(...args);
|
|
534
|
-
}
|
|
535
|
-
else {
|
|
536
|
-
super(_abi, _bytecode, args[0]);
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
deploy(overrides) {
|
|
540
|
-
return super.deploy(overrides || {});
|
|
541
|
-
}
|
|
542
|
-
getDeployTransaction(overrides) {
|
|
543
|
-
return super.getDeployTransaction(overrides || {});
|
|
544
|
-
}
|
|
545
|
-
attach(address) {
|
|
546
|
-
return super.attach(address);
|
|
547
|
-
}
|
|
548
|
-
connect(signer) {
|
|
549
|
-
return super.connect(signer);
|
|
550
|
-
}
|
|
1971
|
+
class VaultLens__factory {
|
|
551
1972
|
static createInterface() {
|
|
552
1973
|
return new ethers_1.utils.Interface(_abi);
|
|
553
1974
|
}
|
|
@@ -555,7 +1976,6 @@ class VaultLens__factory extends ethers_1.ContractFactory {
|
|
|
555
1976
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
556
1977
|
}
|
|
557
1978
|
}
|
|
558
|
-
VaultLens__factory.bytecode = _bytecode;
|
|
559
1979
|
VaultLens__factory.abi = _abi;
|
|
560
1980
|
exports.VaultLens__factory = VaultLens__factory;
|
|
561
1981
|
//# sourceMappingURL=VaultLens__factory.js.map
|