@1delta/margin-fetcher 0.0.18 → 0.0.20

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.
Files changed (126) hide show
  1. package/dist/abis/aave-v2/YLDR.d.ts.map +1 -1
  2. package/dist/abis/aave-v2/YLDR.js +176 -148
  3. package/dist/abis/aave-v3/YLDR.js +29 -29
  4. package/dist/abis/compound-v3/Comet.d.ts +0 -20
  5. package/dist/abis/compound-v3/Comet.d.ts.map +1 -1
  6. package/dist/abis/compound-v3/Comet.js +0 -25
  7. package/dist/assets/liquidityThresholds.d.ts +10 -0
  8. package/dist/assets/liquidityThresholds.d.ts.map +1 -1
  9. package/dist/assets/liquidityThresholds.js +9 -2
  10. package/dist/flash-liquidity/fetchLiquidity.d.ts +2 -2
  11. package/dist/flash-liquidity/fetchLiquidity.d.ts.map +1 -1
  12. package/dist/flash-liquidity/fetchLiquidity.js +85 -54
  13. package/dist/flash-liquidity/types.d.ts +1 -0
  14. package/dist/flash-liquidity/types.d.ts.map +1 -1
  15. package/dist/lending/aave-v3-type/publicCallBuild.d.ts +1 -1
  16. package/dist/lending/aave-v3-type/publicCallBuild.d.ts.map +1 -1
  17. package/dist/lending/aave-v3-type/publicCallBuild.js +46 -48
  18. package/dist/lending/aave-v3-type/publicCallParse.d.ts.map +1 -1
  19. package/dist/lending/aave-v3-type/publicCallParse.js +8 -2
  20. package/dist/lending/compound-v3/publicCallParse.d.ts.map +1 -1
  21. package/dist/lending/compound-v3/publicCallParse.js +8 -3
  22. package/dist/lending/fetchLender.js +3 -3
  23. package/dist/lending/morpho/convertPublic.js +1 -1
  24. package/dist/lending/user-data/abis.d.ts +20 -20
  25. package/dist/lending/user-data/compound-v3/userCallBuild.d.ts.map +1 -1
  26. package/dist/lending/user-data/compound-v3/userCallBuild.js +1 -7
  27. package/dist/lending/user-data/compound-v3/userCallParse.d.ts +2 -2
  28. package/dist/lending/user-data/compound-v3/userCallParse.d.ts.map +1 -1
  29. package/dist/lending/user-data/compound-v3/userCallParse.js +19 -20
  30. package/dist/lending/user-data/morpho/userCallBuild.d.ts.map +1 -1
  31. package/dist/lending/user-data/morpho/userCallBuild.js +6 -4
  32. package/dist/lending/user-data/types.js +2 -2
  33. package/dist/lending-pairs/computeLendingPairs.d.ts +10 -1
  34. package/dist/lending-pairs/computeLendingPairs.d.ts.map +1 -1
  35. package/dist/lending-pairs/computeLendingPairs.js +26 -22
  36. package/dist/prices/defillama/index.d.ts.map +1 -1
  37. package/dist/prices/defillama/index.js +162 -151
  38. package/dist/prices/index.d.ts +3 -2
  39. package/dist/prices/index.d.ts.map +1 -1
  40. package/dist/prices/index.js +3 -2
  41. package/dist/prices/main-prices/addresses/aaveOracles.d.ts +159 -143
  42. package/dist/prices/main-prices/addresses/aaveOracles.d.ts.map +1 -1
  43. package/dist/prices/main-prices/addresses/aaveOracles.js +276 -260
  44. package/dist/prices/main-prices/addresses/morpho.d.ts.map +1 -1
  45. package/dist/prices/main-prices/addresses/morpho.js +305 -0
  46. package/dist/prices/main-prices/fetchOracleData.d.ts.map +1 -1
  47. package/dist/prices/main-prices/fetchOracleData.js +25 -11
  48. package/dist/prices/pendle/fetchPendlePrices.d.ts +7 -0
  49. package/dist/prices/pendle/fetchPendlePrices.d.ts.map +1 -0
  50. package/dist/prices/pendle/fetchPendlePrices.js +148 -0
  51. package/dist/prices/pendle/index.d.ts +2 -0
  52. package/dist/prices/pendle/index.d.ts.map +1 -0
  53. package/dist/prices/pendle/index.js +1 -0
  54. package/dist/types/apiReturnType.d.ts +2 -0
  55. package/dist/types/apiReturnType.d.ts.map +1 -1
  56. package/dist/utils/index.d.ts +1 -3
  57. package/dist/utils/index.d.ts.map +1 -1
  58. package/dist/utils/index.js +10 -16
  59. package/dist/yields/index.d.ts.map +1 -1
  60. package/dist/yields/index.js +58 -33
  61. package/package.json +3 -6
  62. package/src/abis/aave-v2/YLDR.ts +177 -149
  63. package/src/abis/aave-v3/YLDR.ts +45 -45
  64. package/src/abis/compound-v3/Comet.ts +0 -25
  65. package/src/assets/liquidityThresholds.ts +22 -3
  66. package/src/flash-liquidity/fetchLiquidity.ts +298 -261
  67. package/src/flash-liquidity/types.ts +1 -0
  68. package/src/lending/aave-v3-type/publicCallBuild.ts +74 -68
  69. package/src/lending/aave-v3-type/publicCallParse.ts +8 -2
  70. package/src/lending/compound-v3/publicCallParse.ts +10 -3
  71. package/src/lending/fetchLender.ts +3 -3
  72. package/src/lending/morpho/convertPublic.ts +1 -1
  73. package/src/lending/user-data/compound-v3/userCallBuild.ts +1 -8
  74. package/src/lending/user-data/compound-v3/userCallParse.ts +39 -29
  75. package/src/lending/user-data/morpho/userCallBuild.ts +6 -4
  76. package/src/lending/user-data/types.ts +2 -2
  77. package/src/lending-pairs/computeLendingPairs.ts +423 -410
  78. package/src/prices/defillama/index.ts +233 -227
  79. package/src/prices/index.ts +3 -2
  80. package/src/prices/main-prices/addresses/aaveOracles.ts +292 -277
  81. package/src/prices/main-prices/addresses/morpho.ts +305 -0
  82. package/src/prices/main-prices/fetchOracleData.ts +33 -24
  83. package/src/prices/pendle/fetchPendlePrices.ts +208 -0
  84. package/src/prices/pendle/index.ts +1 -0
  85. package/src/types/apiReturnType.ts +42 -39
  86. package/src/utils/index.ts +11 -18
  87. package/src/yields/index.ts +219 -178
  88. package/test/flashLiquidity.test.ts +40 -0
  89. package/test/index.test.ts +101 -97
  90. package/test/lenderData.test.ts +18 -13254
  91. package/test/mainPriceMB.test.ts +1 -1
  92. package/test/mainPrices.test.ts +24 -19
  93. package/test/morpho.test.ts +1 -1
  94. package/test/morphoPrice.test.ts +1 -1
  95. package/test/userDataAave.test.ts +73 -0
  96. package/test/yields.test.ts +27 -0
  97. package/tsconfig.json +2 -1
  98. package/dist/abis/aave/AToken.d.ts +0 -526
  99. package/dist/abis/aave/AToken.d.ts.map +0 -1
  100. package/dist/abis/aave/AToken.js +0 -686
  101. package/dist/abis/aave/AavePoolV3.d.ts +0 -819
  102. package/dist/abis/aave/AavePoolV3.d.ts.map +0 -1
  103. package/dist/abis/aave/AavePoolV3.js +0 -1060
  104. package/dist/abis/init/Core.d.ts +0 -523
  105. package/dist/abis/init/Core.d.ts.map +0 -1
  106. package/dist/abis/init/Core.js +0 -681
  107. package/dist/abis/init/InitFlashAggregator.d.ts +0 -624
  108. package/dist/abis/init/InitFlashAggregator.d.ts.map +0 -1
  109. package/dist/abis/init/InitFlashAggregator.js +0 -795
  110. package/dist/abis/init/PosManager.d.ts +0 -802
  111. package/dist/abis/init/PosManager.d.ts.map +0 -1
  112. package/dist/abis/init/PosManager.js +0 -1055
  113. package/dist/abis/uniswap/FeeOnTransferDetector.d.ts +0 -102
  114. package/dist/abis/uniswap/FeeOnTransferDetector.d.ts.map +0 -1
  115. package/dist/abis/uniswap/FeeOnTransferDetector.js +0 -133
  116. package/dist/abis/uniswap/UniswapV2Pair.d.ts +0 -513
  117. package/dist/abis/uniswap/UniswapV2Pair.d.ts.map +0 -1
  118. package/dist/abis/uniswap/UniswapV2Pair.js +0 -659
  119. package/src/abis/aave/AToken.ts +0 -686
  120. package/src/abis/aave/AavePoolV3.ts +0 -1060
  121. package/src/abis/init/Core.ts +0 -681
  122. package/src/abis/init/InitFlashAggregator.ts +0 -795
  123. package/src/abis/init/PosManager.ts +0 -1055
  124. package/src/abis/uniswap/FeeOnTransferDetector.ts +0 -133
  125. package/src/abis/uniswap/UniswapV2Pair.ts +0 -659
  126. /package/test/{userdata.test.ts → userData.test.ts} +0 -0
@@ -1,1055 +0,0 @@
1
- export const PosManagerAbi = [
2
- {
3
- "inputs": [],
4
- "name": "ACM",
5
- "outputs": [
6
- {
7
- "internalType": "contract IAccessControlManager",
8
- "name": "",
9
- "type": "address"
10
- }
11
- ],
12
- "stateMutability": "view",
13
- "type": "function"
14
- },
15
- {
16
- "inputs": [
17
- {
18
- "internalType": "uint256",
19
- "name": "_posId",
20
- "type": "uint256"
21
- },
22
- {
23
- "internalType": "address",
24
- "name": "_pool",
25
- "type": "address"
26
- }
27
- ],
28
- "name": "addCollateral",
29
- "outputs": [
30
- {
31
- "internalType": "uint256",
32
- "name": "amtIn",
33
- "type": "uint256"
34
- }
35
- ],
36
- "stateMutability": "nonpayable",
37
- "type": "function"
38
- },
39
- {
40
- "inputs": [
41
- {
42
- "internalType": "uint256",
43
- "name": "_posId",
44
- "type": "uint256"
45
- },
46
- {
47
- "internalType": "address",
48
- "name": "_wLp",
49
- "type": "address"
50
- },
51
- {
52
- "internalType": "uint256",
53
- "name": "_tokenId",
54
- "type": "uint256"
55
- }
56
- ],
57
- "name": "addCollateralWLp",
58
- "outputs": [
59
- {
60
- "internalType": "uint256",
61
- "name": "amtIn",
62
- "type": "uint256"
63
- }
64
- ],
65
- "stateMutability": "nonpayable",
66
- "type": "function"
67
- },
68
- {
69
- "inputs": [
70
- {
71
- "internalType": "address",
72
- "name": "to",
73
- "type": "address"
74
- },
75
- {
76
- "internalType": "uint256",
77
- "name": "tokenId",
78
- "type": "uint256"
79
- }
80
- ],
81
- "name": "approve",
82
- "outputs": [],
83
- "stateMutability": "nonpayable",
84
- "type": "function"
85
- },
86
- {
87
- "inputs": [
88
- {
89
- "internalType": "address",
90
- "name": "owner",
91
- "type": "address"
92
- }
93
- ],
94
- "name": "balanceOf",
95
- "outputs": [
96
- {
97
- "internalType": "uint256",
98
- "name": "",
99
- "type": "uint256"
100
- }
101
- ],
102
- "stateMutability": "view",
103
- "type": "function"
104
- },
105
- {
106
- "inputs": [
107
- {
108
- "internalType": "uint256",
109
- "name": "_posId",
110
- "type": "uint256"
111
- },
112
- {
113
- "internalType": "address[]",
114
- "name": "_tokens",
115
- "type": "address[]"
116
- },
117
- {
118
- "internalType": "address",
119
- "name": "_to",
120
- "type": "address"
121
- }
122
- ],
123
- "name": "claimPendingRewards",
124
- "outputs": [
125
- {
126
- "internalType": "uint256[]",
127
- "name": "amts",
128
- "type": "uint256[]"
129
- }
130
- ],
131
- "stateMutability": "nonpayable",
132
- "type": "function"
133
- },
134
- {
135
- "inputs": [],
136
- "name": "core",
137
- "outputs": [
138
- {
139
- "internalType": "address",
140
- "name": "",
141
- "type": "address"
142
- }
143
- ],
144
- "stateMutability": "view",
145
- "type": "function"
146
- },
147
- {
148
- "inputs": [
149
- {
150
- "internalType": "address",
151
- "name": "_owner",
152
- "type": "address"
153
- },
154
- {
155
- "internalType": "uint16",
156
- "name": "_mode",
157
- "type": "uint16"
158
- },
159
- {
160
- "internalType": "address",
161
- "name": "_viewer",
162
- "type": "address"
163
- }
164
- ],
165
- "name": "createPos",
166
- "outputs": [
167
- {
168
- "internalType": "uint256",
169
- "name": "posId",
170
- "type": "uint256"
171
- }
172
- ],
173
- "stateMutability": "nonpayable",
174
- "type": "function"
175
- },
176
- {
177
- "inputs": [
178
- {
179
- "internalType": "uint256",
180
- "name": "tokenId",
181
- "type": "uint256"
182
- }
183
- ],
184
- "name": "getApproved",
185
- "outputs": [
186
- {
187
- "internalType": "address",
188
- "name": "",
189
- "type": "address"
190
- }
191
- ],
192
- "stateMutability": "view",
193
- "type": "function"
194
- },
195
- {
196
- "inputs": [
197
- {
198
- "internalType": "uint256",
199
- "name": "_posId",
200
- "type": "uint256"
201
- },
202
- {
203
- "internalType": "address",
204
- "name": "_pool",
205
- "type": "address"
206
- }
207
- ],
208
- "name": "getCollAmt",
209
- "outputs": [
210
- {
211
- "internalType": "uint256",
212
- "name": "amt",
213
- "type": "uint256"
214
- }
215
- ],
216
- "stateMutability": "view",
217
- "type": "function"
218
- },
219
- {
220
- "inputs": [
221
- {
222
- "internalType": "uint256",
223
- "name": "_posId",
224
- "type": "uint256"
225
- },
226
- {
227
- "internalType": "address",
228
- "name": "_wLp",
229
- "type": "address"
230
- },
231
- {
232
- "internalType": "uint256",
233
- "name": "_tokenId",
234
- "type": "uint256"
235
- }
236
- ],
237
- "name": "getCollWLpAmt",
238
- "outputs": [
239
- {
240
- "internalType": "uint256",
241
- "name": "amt",
242
- "type": "uint256"
243
- }
244
- ],
245
- "stateMutability": "view",
246
- "type": "function"
247
- },
248
- {
249
- "inputs": [
250
- {
251
- "internalType": "uint256",
252
- "name": "_posId",
253
- "type": "uint256"
254
- },
255
- {
256
- "internalType": "address",
257
- "name": "_pool",
258
- "type": "address"
259
- }
260
- ],
261
- "name": "getPosBorrExtraInfo",
262
- "outputs": [
263
- {
264
- "internalType": "uint256",
265
- "name": "totalInterest",
266
- "type": "uint256"
267
- },
268
- {
269
- "internalType": "uint256",
270
- "name": "lastDebtAmt",
271
- "type": "uint256"
272
- }
273
- ],
274
- "stateMutability": "view",
275
- "type": "function"
276
- },
277
- {
278
- "inputs": [
279
- {
280
- "internalType": "uint256",
281
- "name": "_posId",
282
- "type": "uint256"
283
- }
284
- ],
285
- "name": "getPosBorrInfo",
286
- "outputs": [
287
- {
288
- "internalType": "address[]",
289
- "name": "pools",
290
- "type": "address[]"
291
- },
292
- {
293
- "internalType": "uint256[]",
294
- "name": "debtShares",
295
- "type": "uint256[]"
296
- }
297
- ],
298
- "stateMutability": "view",
299
- "type": "function"
300
- },
301
- {
302
- "inputs": [
303
- {
304
- "internalType": "uint256",
305
- "name": "_posId",
306
- "type": "uint256"
307
- }
308
- ],
309
- "name": "getPosCollInfo",
310
- "outputs": [
311
- {
312
- "internalType": "address[]",
313
- "name": "pools",
314
- "type": "address[]"
315
- },
316
- {
317
- "internalType": "uint256[]",
318
- "name": "amts",
319
- "type": "uint256[]"
320
- },
321
- {
322
- "internalType": "address[]",
323
- "name": "wLps",
324
- "type": "address[]"
325
- },
326
- {
327
- "internalType": "uint256[][]",
328
- "name": "ids",
329
- "type": "uint256[][]"
330
- },
331
- {
332
- "internalType": "uint256[][]",
333
- "name": "wLpAmts",
334
- "type": "uint256[][]"
335
- }
336
- ],
337
- "stateMutability": "view",
338
- "type": "function"
339
- },
340
- {
341
- "inputs": [
342
- {
343
- "internalType": "uint256",
344
- "name": "_posId",
345
- "type": "uint256"
346
- },
347
- {
348
- "internalType": "address",
349
- "name": "_pool",
350
- "type": "address"
351
- }
352
- ],
353
- "name": "getPosDebtShares",
354
- "outputs": [
355
- {
356
- "internalType": "uint256",
357
- "name": "debtShares",
358
- "type": "uint256"
359
- }
360
- ],
361
- "stateMutability": "view",
362
- "type": "function"
363
- },
364
- {
365
- "inputs": [
366
- {
367
- "internalType": "uint256",
368
- "name": "_posId",
369
- "type": "uint256"
370
- }
371
- ],
372
- "name": "getPosInfo",
373
- "outputs": [
374
- {
375
- "internalType": "address",
376
- "name": "viewer",
377
- "type": "address"
378
- },
379
- {
380
- "internalType": "uint16",
381
- "name": "mode",
382
- "type": "uint16"
383
- }
384
- ],
385
- "stateMutability": "view",
386
- "type": "function"
387
- },
388
- {
389
- "inputs": [
390
- {
391
- "internalType": "uint256",
392
- "name": "_posId",
393
- "type": "uint256"
394
- }
395
- ],
396
- "name": "getPosMode",
397
- "outputs": [
398
- {
399
- "internalType": "uint16",
400
- "name": "mode",
401
- "type": "uint16"
402
- }
403
- ],
404
- "stateMutability": "view",
405
- "type": "function"
406
- },
407
- {
408
- "inputs": [
409
- {
410
- "internalType": "address",
411
- "name": "_viewer",
412
- "type": "address"
413
- },
414
- {
415
- "internalType": "uint256",
416
- "name": "_index",
417
- "type": "uint256"
418
- }
419
- ],
420
- "name": "getViewerPosIdsAt",
421
- "outputs": [
422
- {
423
- "internalType": "uint256",
424
- "name": "posId",
425
- "type": "uint256"
426
- }
427
- ],
428
- "stateMutability": "view",
429
- "type": "function"
430
- },
431
- {
432
- "inputs": [
433
- {
434
- "internalType": "address",
435
- "name": "_viewer",
436
- "type": "address"
437
- }
438
- ],
439
- "name": "getViewerPosIdsLength",
440
- "outputs": [
441
- {
442
- "internalType": "uint256",
443
- "name": "length",
444
- "type": "uint256"
445
- }
446
- ],
447
- "stateMutability": "view",
448
- "type": "function"
449
- },
450
- {
451
- "inputs": [
452
- {
453
- "internalType": "uint256",
454
- "name": "_posId",
455
- "type": "uint256"
456
- },
457
- {
458
- "internalType": "address",
459
- "name": "_wlp",
460
- "type": "address"
461
- },
462
- {
463
- "internalType": "uint256",
464
- "name": "_tokenId",
465
- "type": "uint256"
466
- },
467
- {
468
- "internalType": "address",
469
- "name": "_to",
470
- "type": "address"
471
- }
472
- ],
473
- "name": "harvestTo",
474
- "outputs": [
475
- {
476
- "internalType": "address[]",
477
- "name": "tokens",
478
- "type": "address[]"
479
- },
480
- {
481
- "internalType": "uint256[]",
482
- "name": "amts",
483
- "type": "uint256[]"
484
- }
485
- ],
486
- "stateMutability": "nonpayable",
487
- "type": "function"
488
- },
489
- {
490
- "inputs": [
491
- {
492
- "internalType": "string",
493
- "name": "_name",
494
- "type": "string"
495
- },
496
- {
497
- "internalType": "string",
498
- "name": "_symbol",
499
- "type": "string"
500
- },
501
- {
502
- "internalType": "address",
503
- "name": "_core",
504
- "type": "address"
505
- },
506
- {
507
- "internalType": "uint8",
508
- "name": "_maxCollCount",
509
- "type": "uint8"
510
- }
511
- ],
512
- "name": "initialize",
513
- "outputs": [],
514
- "stateMutability": "nonpayable",
515
- "type": "function"
516
- },
517
- {
518
- "inputs": [
519
- {
520
- "internalType": "address",
521
- "name": "owner",
522
- "type": "address"
523
- },
524
- {
525
- "internalType": "address",
526
- "name": "operator",
527
- "type": "address"
528
- }
529
- ],
530
- "name": "isApprovedForAll",
531
- "outputs": [
532
- {
533
- "internalType": "bool",
534
- "name": "",
535
- "type": "bool"
536
- }
537
- ],
538
- "stateMutability": "view",
539
- "type": "function"
540
- },
541
- {
542
- "inputs": [
543
- {
544
- "internalType": "address",
545
- "name": "_account",
546
- "type": "address"
547
- },
548
- {
549
- "internalType": "uint256",
550
- "name": "_posId",
551
- "type": "uint256"
552
- }
553
- ],
554
- "name": "isAuthorized",
555
- "outputs": [
556
- {
557
- "internalType": "bool",
558
- "name": "",
559
- "type": "bool"
560
- }
561
- ],
562
- "stateMutability": "view",
563
- "type": "function"
564
- },
565
- {
566
- "inputs": [
567
- {
568
- "internalType": "address",
569
- "name": "",
570
- "type": "address"
571
- },
572
- {
573
- "internalType": "uint256",
574
- "name": "",
575
- "type": "uint256"
576
- }
577
- ],
578
- "name": "isCollateralized",
579
- "outputs": [
580
- {
581
- "internalType": "bool",
582
- "name": "",
583
- "type": "bool"
584
- }
585
- ],
586
- "stateMutability": "view",
587
- "type": "function"
588
- },
589
- {
590
- "inputs": [],
591
- "name": "maxCollCount",
592
- "outputs": [
593
- {
594
- "internalType": "uint8",
595
- "name": "",
596
- "type": "uint8"
597
- }
598
- ],
599
- "stateMutability": "view",
600
- "type": "function"
601
- },
602
- {
603
- "inputs": [],
604
- "name": "name",
605
- "outputs": [
606
- {
607
- "internalType": "string",
608
- "name": "",
609
- "type": "string"
610
- }
611
- ],
612
- "stateMutability": "view",
613
- "type": "function"
614
- },
615
- {
616
- "inputs": [
617
- {
618
- "internalType": "address",
619
- "name": "",
620
- "type": "address"
621
- }
622
- ],
623
- "name": "nextNonces",
624
- "outputs": [
625
- {
626
- "internalType": "uint256",
627
- "name": "",
628
- "type": "uint256"
629
- }
630
- ],
631
- "stateMutability": "view",
632
- "type": "function"
633
- },
634
- {
635
- "inputs": [
636
- {
637
- "internalType": "address",
638
- "name": "",
639
- "type": "address"
640
- },
641
- {
642
- "internalType": "address",
643
- "name": "",
644
- "type": "address"
645
- },
646
- {
647
- "internalType": "uint256",
648
- "name": "",
649
- "type": "uint256"
650
- },
651
- {
652
- "internalType": "bytes",
653
- "name": "",
654
- "type": "bytes"
655
- }
656
- ],
657
- "name": "onERC721Received",
658
- "outputs": [
659
- {
660
- "internalType": "bytes4",
661
- "name": "",
662
- "type": "bytes4"
663
- }
664
- ],
665
- "stateMutability": "nonpayable",
666
- "type": "function"
667
- },
668
- {
669
- "inputs": [
670
- {
671
- "internalType": "uint256",
672
- "name": "tokenId",
673
- "type": "uint256"
674
- }
675
- ],
676
- "name": "ownerOf",
677
- "outputs": [
678
- {
679
- "internalType": "address",
680
- "name": "",
681
- "type": "address"
682
- }
683
- ],
684
- "stateMutability": "view",
685
- "type": "function"
686
- },
687
- {
688
- "inputs": [
689
- {
690
- "internalType": "uint256",
691
- "name": "",
692
- "type": "uint256"
693
- },
694
- {
695
- "internalType": "address",
696
- "name": "",
697
- "type": "address"
698
- }
699
- ],
700
- "name": "pendingRewards",
701
- "outputs": [
702
- {
703
- "internalType": "uint256",
704
- "name": "",
705
- "type": "uint256"
706
- }
707
- ],
708
- "stateMutability": "view",
709
- "type": "function"
710
- },
711
- {
712
- "inputs": [
713
- {
714
- "internalType": "uint256",
715
- "name": "_posId",
716
- "type": "uint256"
717
- },
718
- {
719
- "internalType": "address",
720
- "name": "_pool",
721
- "type": "address"
722
- },
723
- {
724
- "internalType": "uint256",
725
- "name": "_shares",
726
- "type": "uint256"
727
- },
728
- {
729
- "internalType": "address",
730
- "name": "_receiver",
731
- "type": "address"
732
- }
733
- ],
734
- "name": "removeCollateralTo",
735
- "outputs": [
736
- {
737
- "internalType": "uint256",
738
- "name": "",
739
- "type": "uint256"
740
- }
741
- ],
742
- "stateMutability": "nonpayable",
743
- "type": "function"
744
- },
745
- {
746
- "inputs": [
747
- {
748
- "internalType": "uint256",
749
- "name": "_posId",
750
- "type": "uint256"
751
- },
752
- {
753
- "internalType": "address",
754
- "name": "_wLp",
755
- "type": "address"
756
- },
757
- {
758
- "internalType": "uint256",
759
- "name": "_tokenId",
760
- "type": "uint256"
761
- },
762
- {
763
- "internalType": "uint256",
764
- "name": "_amt",
765
- "type": "uint256"
766
- },
767
- {
768
- "internalType": "address",
769
- "name": "_receiver",
770
- "type": "address"
771
- }
772
- ],
773
- "name": "removeCollateralWLpTo",
774
- "outputs": [
775
- {
776
- "internalType": "uint256",
777
- "name": "",
778
- "type": "uint256"
779
- }
780
- ],
781
- "stateMutability": "nonpayable",
782
- "type": "function"
783
- },
784
- {
785
- "inputs": [
786
- {
787
- "internalType": "address",
788
- "name": "from",
789
- "type": "address"
790
- },
791
- {
792
- "internalType": "address",
793
- "name": "to",
794
- "type": "address"
795
- },
796
- {
797
- "internalType": "uint256",
798
- "name": "tokenId",
799
- "type": "uint256"
800
- }
801
- ],
802
- "name": "safeTransferFrom",
803
- "outputs": [],
804
- "stateMutability": "nonpayable",
805
- "type": "function"
806
- },
807
- {
808
- "inputs": [
809
- {
810
- "internalType": "address",
811
- "name": "from",
812
- "type": "address"
813
- },
814
- {
815
- "internalType": "address",
816
- "name": "to",
817
- "type": "address"
818
- },
819
- {
820
- "internalType": "uint256",
821
- "name": "tokenId",
822
- "type": "uint256"
823
- },
824
- {
825
- "internalType": "bytes",
826
- "name": "data",
827
- "type": "bytes"
828
- }
829
- ],
830
- "name": "safeTransferFrom",
831
- "outputs": [],
832
- "stateMutability": "nonpayable",
833
- "type": "function"
834
- },
835
- {
836
- "inputs": [
837
- {
838
- "internalType": "address",
839
- "name": "operator",
840
- "type": "address"
841
- },
842
- {
843
- "internalType": "bool",
844
- "name": "approved",
845
- "type": "bool"
846
- }
847
- ],
848
- "name": "setApprovalForAll",
849
- "outputs": [],
850
- "stateMutability": "nonpayable",
851
- "type": "function"
852
- },
853
- {
854
- "inputs": [
855
- {
856
- "internalType": "uint8",
857
- "name": "_maxCollCount",
858
- "type": "uint8"
859
- }
860
- ],
861
- "name": "setMaxCollCount",
862
- "outputs": [],
863
- "stateMutability": "nonpayable",
864
- "type": "function"
865
- },
866
- {
867
- "inputs": [
868
- {
869
- "internalType": "uint256",
870
- "name": "_posId",
871
- "type": "uint256"
872
- },
873
- {
874
- "internalType": "address",
875
- "name": "_viewer",
876
- "type": "address"
877
- }
878
- ],
879
- "name": "setPosViewer",
880
- "outputs": [],
881
- "stateMutability": "nonpayable",
882
- "type": "function"
883
- },
884
- {
885
- "inputs": [
886
- {
887
- "internalType": "bytes4",
888
- "name": "interfaceId",
889
- "type": "bytes4"
890
- }
891
- ],
892
- "name": "supportsInterface",
893
- "outputs": [
894
- {
895
- "internalType": "bool",
896
- "name": "",
897
- "type": "bool"
898
- }
899
- ],
900
- "stateMutability": "view",
901
- "type": "function"
902
- },
903
- {
904
- "inputs": [],
905
- "name": "symbol",
906
- "outputs": [
907
- {
908
- "internalType": "string",
909
- "name": "",
910
- "type": "string"
911
- }
912
- ],
913
- "stateMutability": "view",
914
- "type": "function"
915
- },
916
- {
917
- "inputs": [
918
- {
919
- "internalType": "uint256",
920
- "name": "index",
921
- "type": "uint256"
922
- }
923
- ],
924
- "name": "tokenByIndex",
925
- "outputs": [
926
- {
927
- "internalType": "uint256",
928
- "name": "",
929
- "type": "uint256"
930
- }
931
- ],
932
- "stateMutability": "view",
933
- "type": "function"
934
- },
935
- {
936
- "inputs": [
937
- {
938
- "internalType": "address",
939
- "name": "owner",
940
- "type": "address"
941
- },
942
- {
943
- "internalType": "uint256",
944
- "name": "index",
945
- "type": "uint256"
946
- }
947
- ],
948
- "name": "tokenOfOwnerByIndex",
949
- "outputs": [
950
- {
951
- "internalType": "uint256",
952
- "name": "",
953
- "type": "uint256"
954
- }
955
- ],
956
- "stateMutability": "view",
957
- "type": "function"
958
- },
959
- {
960
- "inputs": [
961
- {
962
- "internalType": "uint256",
963
- "name": "tokenId",
964
- "type": "uint256"
965
- }
966
- ],
967
- "name": "tokenURI",
968
- "outputs": [
969
- {
970
- "internalType": "string",
971
- "name": "",
972
- "type": "string"
973
- }
974
- ],
975
- "stateMutability": "view",
976
- "type": "function"
977
- },
978
- {
979
- "inputs": [],
980
- "name": "totalSupply",
981
- "outputs": [
982
- {
983
- "internalType": "uint256",
984
- "name": "",
985
- "type": "uint256"
986
- }
987
- ],
988
- "stateMutability": "view",
989
- "type": "function"
990
- },
991
- {
992
- "inputs": [
993
- {
994
- "internalType": "address",
995
- "name": "from",
996
- "type": "address"
997
- },
998
- {
999
- "internalType": "address",
1000
- "name": "to",
1001
- "type": "address"
1002
- },
1003
- {
1004
- "internalType": "uint256",
1005
- "name": "tokenId",
1006
- "type": "uint256"
1007
- }
1008
- ],
1009
- "name": "transferFrom",
1010
- "outputs": [],
1011
- "stateMutability": "nonpayable",
1012
- "type": "function"
1013
- },
1014
- {
1015
- "inputs": [
1016
- {
1017
- "internalType": "uint256",
1018
- "name": "_posId",
1019
- "type": "uint256"
1020
- },
1021
- {
1022
- "internalType": "address",
1023
- "name": "_pool",
1024
- "type": "address"
1025
- },
1026
- {
1027
- "internalType": "int256",
1028
- "name": "_deltaShares",
1029
- "type": "int256"
1030
- }
1031
- ],
1032
- "name": "updatePosDebtShares",
1033
- "outputs": [],
1034
- "stateMutability": "nonpayable",
1035
- "type": "function"
1036
- },
1037
- {
1038
- "inputs": [
1039
- {
1040
- "internalType": "uint256",
1041
- "name": "_posId",
1042
- "type": "uint256"
1043
- },
1044
- {
1045
- "internalType": "uint16",
1046
- "name": "_mode",
1047
- "type": "uint16"
1048
- }
1049
- ],
1050
- "name": "updatePosMode",
1051
- "outputs": [],
1052
- "stateMutability": "nonpayable",
1053
- "type": "function"
1054
- }
1055
- ] as const