@curvefi/llamalend-api 1.0.2

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 (125) hide show
  1. package/.eslintrc.json +40 -0
  2. package/.github/workflows/lint.yml +15 -0
  3. package/.github/workflows/publish.yml +55 -0
  4. package/LICENSE +21 -0
  5. package/README.md +1976 -0
  6. package/lib/cache/index.d.ts +14 -0
  7. package/lib/cache/index.js +31 -0
  8. package/lib/constants/L2Networks.d.ts +1 -0
  9. package/lib/constants/L2Networks.js +1 -0
  10. package/lib/constants/abis/Controller.json +1027 -0
  11. package/lib/constants/abis/ERC20.json +222 -0
  12. package/lib/constants/abis/ERC4626.json +1674 -0
  13. package/lib/constants/abis/GaugeController.json +794 -0
  14. package/lib/constants/abis/GaugeFactoryMainnet.json +1 -0
  15. package/lib/constants/abis/GaugeFactorySidechain.json +475 -0
  16. package/lib/constants/abis/GaugeV5.json +958 -0
  17. package/lib/constants/abis/LeverageZap.json +35 -0
  18. package/lib/constants/abis/Llamma.json +984 -0
  19. package/lib/constants/abis/Minter.json +1 -0
  20. package/lib/constants/abis/MonetaryPolicy.json +221 -0
  21. package/lib/constants/abis/OneWayLendingFactoryABI.json +899 -0
  22. package/lib/constants/abis/SidechainGauge.json +939 -0
  23. package/lib/constants/abis/Vault.json +721 -0
  24. package/lib/constants/abis/crvUSD/DeleverageZap.json +248 -0
  25. package/lib/constants/abis/crvUSD/Factory.json +514 -0
  26. package/lib/constants/abis/crvUSD/HealthCalculatorZap.json +54 -0
  27. package/lib/constants/abis/crvUSD/LeverageZap.json +312 -0
  28. package/lib/constants/abis/crvUSD/MonetaryPolicy.json +294 -0
  29. package/lib/constants/abis/crvUSD/MonetaryPolicy2.json +299 -0
  30. package/lib/constants/abis/crvUSD/PegKeeper.json +411 -0
  31. package/lib/constants/abis/crvUSD/controller.json +991 -0
  32. package/lib/constants/abis/crvUSD/llamma.json +984 -0
  33. package/lib/constants/abis/gas_oracle_optimism.json +149 -0
  34. package/lib/constants/abis/gas_oracle_optimism_blob.json +203 -0
  35. package/lib/constants/aliases.d.ts +16 -0
  36. package/lib/constants/aliases.js +124 -0
  37. package/lib/constants/coins.d.ts +16 -0
  38. package/lib/constants/coins.js +24 -0
  39. package/lib/constants/llammas.d.ts +2 -0
  40. package/lib/constants/llammas.js +96 -0
  41. package/lib/constants/utils.d.ts +4 -0
  42. package/lib/constants/utils.js +27 -0
  43. package/lib/external-api.d.ts +13 -0
  44. package/lib/external-api.js +436 -0
  45. package/lib/index.d.ts +104 -0
  46. package/lib/index.js +123 -0
  47. package/lib/interfaces.d.ts +228 -0
  48. package/lib/interfaces.js +1 -0
  49. package/lib/lendMarkets/LendMarketTemplate.d.ts +510 -0
  50. package/lib/lendMarkets/LendMarketTemplate.js +4682 -0
  51. package/lib/lendMarkets/index.d.ts +3 -0
  52. package/lib/lendMarkets/index.js +3 -0
  53. package/lib/lendMarkets/lendMarketConstructor.d.ts +2 -0
  54. package/lib/lendMarkets/lendMarketConstructor.js +6 -0
  55. package/lib/llamalend.d.ts +80 -0
  56. package/lib/llamalend.js +878 -0
  57. package/lib/mintMarkets/MintMarketTemplate.d.ts +308 -0
  58. package/lib/mintMarkets/MintMarketTemplate.js +2998 -0
  59. package/lib/mintMarkets/index.d.ts +3 -0
  60. package/lib/mintMarkets/index.js +3 -0
  61. package/lib/mintMarkets/mintMarketConstructor.d.ts +2 -0
  62. package/lib/mintMarkets/mintMarketConstructor.js +4 -0
  63. package/lib/st-crvUSD.d.ts +35 -0
  64. package/lib/st-crvUSD.js +505 -0
  65. package/lib/utils.d.ts +58 -0
  66. package/lib/utils.js +661 -0
  67. package/package.json +42 -0
  68. package/src/cache/index.ts +41 -0
  69. package/src/constants/L2Networks.ts +1 -0
  70. package/src/constants/abis/Controller.json +1027 -0
  71. package/src/constants/abis/ERC20.json +222 -0
  72. package/src/constants/abis/ERC4626.json +1674 -0
  73. package/src/constants/abis/GaugeController.json +794 -0
  74. package/src/constants/abis/GaugeFactoryMainnet.json +1 -0
  75. package/src/constants/abis/GaugeFactorySidechain.json +475 -0
  76. package/src/constants/abis/GaugeV5.json +958 -0
  77. package/src/constants/abis/LeverageZap.json +35 -0
  78. package/src/constants/abis/Llamma.json +984 -0
  79. package/src/constants/abis/Minter.json +1 -0
  80. package/src/constants/abis/MonetaryPolicy.json +221 -0
  81. package/src/constants/abis/OneWayLendingFactoryABI.json +899 -0
  82. package/src/constants/abis/SidechainGauge.json +939 -0
  83. package/src/constants/abis/Vault.json +721 -0
  84. package/src/constants/abis/crvUSD/DeleverageZap.json +248 -0
  85. package/src/constants/abis/crvUSD/ERC20.json +222 -0
  86. package/src/constants/abis/crvUSD/Factory.json +514 -0
  87. package/src/constants/abis/crvUSD/HealthCalculatorZap.json +54 -0
  88. package/src/constants/abis/crvUSD/LeverageZap.json +312 -0
  89. package/src/constants/abis/crvUSD/MonetaryPolicy.json +294 -0
  90. package/src/constants/abis/crvUSD/MonetaryPolicy2.json +299 -0
  91. package/src/constants/abis/crvUSD/PegKeeper.json +411 -0
  92. package/src/constants/abis/crvUSD/controller.json +991 -0
  93. package/src/constants/abis/crvUSD/llamma.json +984 -0
  94. package/src/constants/abis/gas_oracle_optimism.json +149 -0
  95. package/src/constants/abis/gas_oracle_optimism_blob.json +203 -0
  96. package/src/constants/aliases.ts +141 -0
  97. package/src/constants/coins.ts +41 -0
  98. package/src/constants/llammas.ts +99 -0
  99. package/src/constants/utils.ts +33 -0
  100. package/src/external-api.ts +325 -0
  101. package/src/index.ts +128 -0
  102. package/src/interfaces.ts +237 -0
  103. package/src/lendMarkets/LendMarketTemplate.ts +3022 -0
  104. package/src/lendMarkets/index.ts +7 -0
  105. package/src/lendMarkets/lendMarketConstructor.ts +7 -0
  106. package/src/llamalend.ts +785 -0
  107. package/src/mintMarkets/MintMarketTemplate.ts +1781 -0
  108. package/src/mintMarkets/index.ts +7 -0
  109. package/src/mintMarkets/mintMarketConstructor.ts +5 -0
  110. package/src/st-crvUSD.ts +244 -0
  111. package/src/utils.ts +497 -0
  112. package/test/fetch.test.ts +152 -0
  113. package/test/general.test.ts +216 -0
  114. package/test/leverageBorrowMore.test.ts +245 -0
  115. package/test/leverageCreateLoan.test.ts +236 -0
  116. package/test/leverageRepay.test.ts +240 -0
  117. package/test/readme.test.ts +475 -0
  118. package/test/selfLiquidate.test.ts +57 -0
  119. package/test/selfLiquidateCrvUSD.test.ts +54 -0
  120. package/test/st_crvUSD.test.ts +68 -0
  121. package/test/swap.test.ts +62 -0
  122. package/test/swapCrvUSD.test.ts +56 -0
  123. package/test/vault.test.ts +112 -0
  124. package/tsconfig.build.json +10 -0
  125. package/tsconfig.json +72 -0
@@ -0,0 +1,899 @@
1
+ [
2
+ {
3
+ "name": "SetImplementations",
4
+ "inputs": [
5
+ {
6
+ "name": "amm",
7
+ "type": "address",
8
+ "indexed": false
9
+ },
10
+ {
11
+ "name": "controller",
12
+ "type": "address",
13
+ "indexed": false
14
+ },
15
+ {
16
+ "name": "vault",
17
+ "type": "address",
18
+ "indexed": false
19
+ },
20
+ {
21
+ "name": "price_oracle",
22
+ "type": "address",
23
+ "indexed": false
24
+ },
25
+ {
26
+ "name": "monetary_policy",
27
+ "type": "address",
28
+ "indexed": false
29
+ },
30
+ {
31
+ "name": "gauge",
32
+ "type": "address",
33
+ "indexed": false
34
+ }
35
+ ],
36
+ "anonymous": false,
37
+ "type": "event"
38
+ },
39
+ {
40
+ "name": "SetDefaultRates",
41
+ "inputs": [
42
+ {
43
+ "name": "min_rate",
44
+ "type": "uint256",
45
+ "indexed": false
46
+ },
47
+ {
48
+ "name": "max_rate",
49
+ "type": "uint256",
50
+ "indexed": false
51
+ }
52
+ ],
53
+ "anonymous": false,
54
+ "type": "event"
55
+ },
56
+ {
57
+ "name": "SetAdmin",
58
+ "inputs": [
59
+ {
60
+ "name": "admin",
61
+ "type": "address",
62
+ "indexed": false
63
+ }
64
+ ],
65
+ "anonymous": false,
66
+ "type": "event"
67
+ },
68
+ {
69
+ "name": "NewVault",
70
+ "inputs": [
71
+ {
72
+ "name": "id",
73
+ "type": "uint256",
74
+ "indexed": true
75
+ },
76
+ {
77
+ "name": "collateral_token",
78
+ "type": "address",
79
+ "indexed": true
80
+ },
81
+ {
82
+ "name": "borrowed_token",
83
+ "type": "address",
84
+ "indexed": true
85
+ },
86
+ {
87
+ "name": "vault",
88
+ "type": "address",
89
+ "indexed": false
90
+ },
91
+ {
92
+ "name": "controller",
93
+ "type": "address",
94
+ "indexed": false
95
+ },
96
+ {
97
+ "name": "amm",
98
+ "type": "address",
99
+ "indexed": false
100
+ },
101
+ {
102
+ "name": "price_oracle",
103
+ "type": "address",
104
+ "indexed": false
105
+ },
106
+ {
107
+ "name": "monetary_policy",
108
+ "type": "address",
109
+ "indexed": false
110
+ }
111
+ ],
112
+ "anonymous": false,
113
+ "type": "event"
114
+ },
115
+ {
116
+ "name": "LiquidityGaugeDeployed",
117
+ "inputs": [
118
+ {
119
+ "name": "vault",
120
+ "type": "address",
121
+ "indexed": false
122
+ },
123
+ {
124
+ "name": "gauge",
125
+ "type": "address",
126
+ "indexed": false
127
+ }
128
+ ],
129
+ "anonymous": false,
130
+ "type": "event"
131
+ },
132
+ {
133
+ "stateMutability": "nonpayable",
134
+ "type": "constructor",
135
+ "inputs": [
136
+ {
137
+ "name": "stablecoin",
138
+ "type": "address"
139
+ },
140
+ {
141
+ "name": "amm",
142
+ "type": "address"
143
+ },
144
+ {
145
+ "name": "controller",
146
+ "type": "address"
147
+ },
148
+ {
149
+ "name": "vault",
150
+ "type": "address"
151
+ },
152
+ {
153
+ "name": "pool_price_oracle",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "name": "monetary_policy",
158
+ "type": "address"
159
+ },
160
+ {
161
+ "name": "gauge",
162
+ "type": "address"
163
+ },
164
+ {
165
+ "name": "admin",
166
+ "type": "address"
167
+ }
168
+ ],
169
+ "outputs": []
170
+ },
171
+ {
172
+ "stateMutability": "nonpayable",
173
+ "type": "function",
174
+ "name": "create",
175
+ "inputs": [
176
+ {
177
+ "name": "borrowed_token",
178
+ "type": "address"
179
+ },
180
+ {
181
+ "name": "collateral_token",
182
+ "type": "address"
183
+ },
184
+ {
185
+ "name": "A",
186
+ "type": "uint256"
187
+ },
188
+ {
189
+ "name": "fee",
190
+ "type": "uint256"
191
+ },
192
+ {
193
+ "name": "loan_discount",
194
+ "type": "uint256"
195
+ },
196
+ {
197
+ "name": "liquidation_discount",
198
+ "type": "uint256"
199
+ },
200
+ {
201
+ "name": "price_oracle",
202
+ "type": "address"
203
+ }
204
+ ],
205
+ "outputs": [
206
+ {
207
+ "name": "",
208
+ "type": "address"
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ "stateMutability": "nonpayable",
214
+ "type": "function",
215
+ "name": "create",
216
+ "inputs": [
217
+ {
218
+ "name": "borrowed_token",
219
+ "type": "address"
220
+ },
221
+ {
222
+ "name": "collateral_token",
223
+ "type": "address"
224
+ },
225
+ {
226
+ "name": "A",
227
+ "type": "uint256"
228
+ },
229
+ {
230
+ "name": "fee",
231
+ "type": "uint256"
232
+ },
233
+ {
234
+ "name": "loan_discount",
235
+ "type": "uint256"
236
+ },
237
+ {
238
+ "name": "liquidation_discount",
239
+ "type": "uint256"
240
+ },
241
+ {
242
+ "name": "price_oracle",
243
+ "type": "address"
244
+ },
245
+ {
246
+ "name": "min_borrow_rate",
247
+ "type": "uint256"
248
+ }
249
+ ],
250
+ "outputs": [
251
+ {
252
+ "name": "",
253
+ "type": "address"
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "stateMutability": "nonpayable",
259
+ "type": "function",
260
+ "name": "create",
261
+ "inputs": [
262
+ {
263
+ "name": "borrowed_token",
264
+ "type": "address"
265
+ },
266
+ {
267
+ "name": "collateral_token",
268
+ "type": "address"
269
+ },
270
+ {
271
+ "name": "A",
272
+ "type": "uint256"
273
+ },
274
+ {
275
+ "name": "fee",
276
+ "type": "uint256"
277
+ },
278
+ {
279
+ "name": "loan_discount",
280
+ "type": "uint256"
281
+ },
282
+ {
283
+ "name": "liquidation_discount",
284
+ "type": "uint256"
285
+ },
286
+ {
287
+ "name": "price_oracle",
288
+ "type": "address"
289
+ },
290
+ {
291
+ "name": "min_borrow_rate",
292
+ "type": "uint256"
293
+ },
294
+ {
295
+ "name": "max_borrow_rate",
296
+ "type": "uint256"
297
+ }
298
+ ],
299
+ "outputs": [
300
+ {
301
+ "name": "",
302
+ "type": "address"
303
+ }
304
+ ]
305
+ },
306
+ {
307
+ "stateMutability": "nonpayable",
308
+ "type": "function",
309
+ "name": "create_from_pool",
310
+ "inputs": [
311
+ {
312
+ "name": "borrowed_token",
313
+ "type": "address"
314
+ },
315
+ {
316
+ "name": "collateral_token",
317
+ "type": "address"
318
+ },
319
+ {
320
+ "name": "A",
321
+ "type": "uint256"
322
+ },
323
+ {
324
+ "name": "fee",
325
+ "type": "uint256"
326
+ },
327
+ {
328
+ "name": "loan_discount",
329
+ "type": "uint256"
330
+ },
331
+ {
332
+ "name": "liquidation_discount",
333
+ "type": "uint256"
334
+ },
335
+ {
336
+ "name": "pool",
337
+ "type": "address"
338
+ }
339
+ ],
340
+ "outputs": [
341
+ {
342
+ "name": "",
343
+ "type": "address"
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "stateMutability": "nonpayable",
349
+ "type": "function",
350
+ "name": "create_from_pool",
351
+ "inputs": [
352
+ {
353
+ "name": "borrowed_token",
354
+ "type": "address"
355
+ },
356
+ {
357
+ "name": "collateral_token",
358
+ "type": "address"
359
+ },
360
+ {
361
+ "name": "A",
362
+ "type": "uint256"
363
+ },
364
+ {
365
+ "name": "fee",
366
+ "type": "uint256"
367
+ },
368
+ {
369
+ "name": "loan_discount",
370
+ "type": "uint256"
371
+ },
372
+ {
373
+ "name": "liquidation_discount",
374
+ "type": "uint256"
375
+ },
376
+ {
377
+ "name": "pool",
378
+ "type": "address"
379
+ },
380
+ {
381
+ "name": "min_borrow_rate",
382
+ "type": "uint256"
383
+ }
384
+ ],
385
+ "outputs": [
386
+ {
387
+ "name": "",
388
+ "type": "address"
389
+ }
390
+ ]
391
+ },
392
+ {
393
+ "stateMutability": "nonpayable",
394
+ "type": "function",
395
+ "name": "create_from_pool",
396
+ "inputs": [
397
+ {
398
+ "name": "borrowed_token",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "name": "collateral_token",
403
+ "type": "address"
404
+ },
405
+ {
406
+ "name": "A",
407
+ "type": "uint256"
408
+ },
409
+ {
410
+ "name": "fee",
411
+ "type": "uint256"
412
+ },
413
+ {
414
+ "name": "loan_discount",
415
+ "type": "uint256"
416
+ },
417
+ {
418
+ "name": "liquidation_discount",
419
+ "type": "uint256"
420
+ },
421
+ {
422
+ "name": "pool",
423
+ "type": "address"
424
+ },
425
+ {
426
+ "name": "min_borrow_rate",
427
+ "type": "uint256"
428
+ },
429
+ {
430
+ "name": "max_borrow_rate",
431
+ "type": "uint256"
432
+ }
433
+ ],
434
+ "outputs": [
435
+ {
436
+ "name": "",
437
+ "type": "address"
438
+ }
439
+ ]
440
+ },
441
+ {
442
+ "stateMutability": "view",
443
+ "type": "function",
444
+ "name": "names",
445
+ "inputs": [
446
+ {
447
+ "name": "n",
448
+ "type": "uint256"
449
+ }
450
+ ],
451
+ "outputs": [
452
+ {
453
+ "name": "",
454
+ "type": "string"
455
+ }
456
+ ]
457
+ },
458
+ {
459
+ "stateMutability": "view",
460
+ "type": "function",
461
+ "name": "amms",
462
+ "inputs": [
463
+ {
464
+ "name": "n",
465
+ "type": "uint256"
466
+ }
467
+ ],
468
+ "outputs": [
469
+ {
470
+ "name": "",
471
+ "type": "address"
472
+ }
473
+ ]
474
+ },
475
+ {
476
+ "stateMutability": "view",
477
+ "type": "function",
478
+ "name": "controllers",
479
+ "inputs": [
480
+ {
481
+ "name": "n",
482
+ "type": "uint256"
483
+ }
484
+ ],
485
+ "outputs": [
486
+ {
487
+ "name": "",
488
+ "type": "address"
489
+ }
490
+ ]
491
+ },
492
+ {
493
+ "stateMutability": "view",
494
+ "type": "function",
495
+ "name": "borrowed_tokens",
496
+ "inputs": [
497
+ {
498
+ "name": "n",
499
+ "type": "uint256"
500
+ }
501
+ ],
502
+ "outputs": [
503
+ {
504
+ "name": "",
505
+ "type": "address"
506
+ }
507
+ ]
508
+ },
509
+ {
510
+ "stateMutability": "view",
511
+ "type": "function",
512
+ "name": "collateral_tokens",
513
+ "inputs": [
514
+ {
515
+ "name": "n",
516
+ "type": "uint256"
517
+ }
518
+ ],
519
+ "outputs": [
520
+ {
521
+ "name": "",
522
+ "type": "address"
523
+ }
524
+ ]
525
+ },
526
+ {
527
+ "stateMutability": "view",
528
+ "type": "function",
529
+ "name": "price_oracles",
530
+ "inputs": [
531
+ {
532
+ "name": "n",
533
+ "type": "uint256"
534
+ }
535
+ ],
536
+ "outputs": [
537
+ {
538
+ "name": "",
539
+ "type": "address"
540
+ }
541
+ ]
542
+ },
543
+ {
544
+ "stateMutability": "view",
545
+ "type": "function",
546
+ "name": "monetary_policies",
547
+ "inputs": [
548
+ {
549
+ "name": "n",
550
+ "type": "uint256"
551
+ }
552
+ ],
553
+ "outputs": [
554
+ {
555
+ "name": "",
556
+ "type": "address"
557
+ }
558
+ ]
559
+ },
560
+ {
561
+ "stateMutability": "view",
562
+ "type": "function",
563
+ "name": "vaults_index",
564
+ "inputs": [
565
+ {
566
+ "name": "vault",
567
+ "type": "address"
568
+ }
569
+ ],
570
+ "outputs": [
571
+ {
572
+ "name": "",
573
+ "type": "uint256"
574
+ }
575
+ ]
576
+ },
577
+ {
578
+ "stateMutability": "nonpayable",
579
+ "type": "function",
580
+ "name": "deploy_gauge",
581
+ "inputs": [
582
+ {
583
+ "name": "_vault",
584
+ "type": "address"
585
+ }
586
+ ],
587
+ "outputs": [
588
+ {
589
+ "name": "",
590
+ "type": "address"
591
+ }
592
+ ]
593
+ },
594
+ {
595
+ "stateMutability": "view",
596
+ "type": "function",
597
+ "name": "gauge_for_vault",
598
+ "inputs": [
599
+ {
600
+ "name": "_vault",
601
+ "type": "address"
602
+ }
603
+ ],
604
+ "outputs": [
605
+ {
606
+ "name": "",
607
+ "type": "address"
608
+ }
609
+ ]
610
+ },
611
+ {
612
+ "stateMutability": "nonpayable",
613
+ "type": "function",
614
+ "name": "set_implementations",
615
+ "inputs": [
616
+ {
617
+ "name": "controller",
618
+ "type": "address"
619
+ },
620
+ {
621
+ "name": "amm",
622
+ "type": "address"
623
+ },
624
+ {
625
+ "name": "vault",
626
+ "type": "address"
627
+ },
628
+ {
629
+ "name": "pool_price_oracle",
630
+ "type": "address"
631
+ },
632
+ {
633
+ "name": "monetary_policy",
634
+ "type": "address"
635
+ },
636
+ {
637
+ "name": "gauge",
638
+ "type": "address"
639
+ }
640
+ ],
641
+ "outputs": []
642
+ },
643
+ {
644
+ "stateMutability": "nonpayable",
645
+ "type": "function",
646
+ "name": "set_default_rates",
647
+ "inputs": [
648
+ {
649
+ "name": "min_rate",
650
+ "type": "uint256"
651
+ },
652
+ {
653
+ "name": "max_rate",
654
+ "type": "uint256"
655
+ }
656
+ ],
657
+ "outputs": []
658
+ },
659
+ {
660
+ "stateMutability": "nonpayable",
661
+ "type": "function",
662
+ "name": "set_admin",
663
+ "inputs": [
664
+ {
665
+ "name": "admin",
666
+ "type": "address"
667
+ }
668
+ ],
669
+ "outputs": []
670
+ },
671
+ {
672
+ "stateMutability": "view",
673
+ "type": "function",
674
+ "name": "STABLECOIN",
675
+ "inputs": [],
676
+ "outputs": [
677
+ {
678
+ "name": "",
679
+ "type": "address"
680
+ }
681
+ ]
682
+ },
683
+ {
684
+ "stateMutability": "view",
685
+ "type": "function",
686
+ "name": "MIN_RATE",
687
+ "inputs": [],
688
+ "outputs": [
689
+ {
690
+ "name": "",
691
+ "type": "uint256"
692
+ }
693
+ ]
694
+ },
695
+ {
696
+ "stateMutability": "view",
697
+ "type": "function",
698
+ "name": "MAX_RATE",
699
+ "inputs": [],
700
+ "outputs": [
701
+ {
702
+ "name": "",
703
+ "type": "uint256"
704
+ }
705
+ ]
706
+ },
707
+ {
708
+ "stateMutability": "view",
709
+ "type": "function",
710
+ "name": "amm_impl",
711
+ "inputs": [],
712
+ "outputs": [
713
+ {
714
+ "name": "",
715
+ "type": "address"
716
+ }
717
+ ]
718
+ },
719
+ {
720
+ "stateMutability": "view",
721
+ "type": "function",
722
+ "name": "controller_impl",
723
+ "inputs": [],
724
+ "outputs": [
725
+ {
726
+ "name": "",
727
+ "type": "address"
728
+ }
729
+ ]
730
+ },
731
+ {
732
+ "stateMutability": "view",
733
+ "type": "function",
734
+ "name": "vault_impl",
735
+ "inputs": [],
736
+ "outputs": [
737
+ {
738
+ "name": "",
739
+ "type": "address"
740
+ }
741
+ ]
742
+ },
743
+ {
744
+ "stateMutability": "view",
745
+ "type": "function",
746
+ "name": "pool_price_oracle_impl",
747
+ "inputs": [],
748
+ "outputs": [
749
+ {
750
+ "name": "",
751
+ "type": "address"
752
+ }
753
+ ]
754
+ },
755
+ {
756
+ "stateMutability": "view",
757
+ "type": "function",
758
+ "name": "monetary_policy_impl",
759
+ "inputs": [],
760
+ "outputs": [
761
+ {
762
+ "name": "",
763
+ "type": "address"
764
+ }
765
+ ]
766
+ },
767
+ {
768
+ "stateMutability": "view",
769
+ "type": "function",
770
+ "name": "gauge_impl",
771
+ "inputs": [],
772
+ "outputs": [
773
+ {
774
+ "name": "",
775
+ "type": "address"
776
+ }
777
+ ]
778
+ },
779
+ {
780
+ "stateMutability": "view",
781
+ "type": "function",
782
+ "name": "min_default_borrow_rate",
783
+ "inputs": [],
784
+ "outputs": [
785
+ {
786
+ "name": "",
787
+ "type": "uint256"
788
+ }
789
+ ]
790
+ },
791
+ {
792
+ "stateMutability": "view",
793
+ "type": "function",
794
+ "name": "max_default_borrow_rate",
795
+ "inputs": [],
796
+ "outputs": [
797
+ {
798
+ "name": "",
799
+ "type": "uint256"
800
+ }
801
+ ]
802
+ },
803
+ {
804
+ "stateMutability": "view",
805
+ "type": "function",
806
+ "name": "admin",
807
+ "inputs": [],
808
+ "outputs": [
809
+ {
810
+ "name": "",
811
+ "type": "address"
812
+ }
813
+ ]
814
+ },
815
+ {
816
+ "stateMutability": "view",
817
+ "type": "function",
818
+ "name": "vaults",
819
+ "inputs": [
820
+ {
821
+ "name": "arg0",
822
+ "type": "uint256"
823
+ }
824
+ ],
825
+ "outputs": [
826
+ {
827
+ "name": "",
828
+ "type": "address"
829
+ }
830
+ ]
831
+ },
832
+ {
833
+ "stateMutability": "view",
834
+ "type": "function",
835
+ "name": "market_count",
836
+ "inputs": [],
837
+ "outputs": [
838
+ {
839
+ "name": "",
840
+ "type": "uint256"
841
+ }
842
+ ]
843
+ },
844
+ {
845
+ "stateMutability": "view",
846
+ "type": "function",
847
+ "name": "token_to_vaults",
848
+ "inputs": [
849
+ {
850
+ "name": "arg0",
851
+ "type": "address"
852
+ },
853
+ {
854
+ "name": "arg1",
855
+ "type": "uint256"
856
+ }
857
+ ],
858
+ "outputs": [
859
+ {
860
+ "name": "",
861
+ "type": "address"
862
+ }
863
+ ]
864
+ },
865
+ {
866
+ "stateMutability": "view",
867
+ "type": "function",
868
+ "name": "token_market_count",
869
+ "inputs": [
870
+ {
871
+ "name": "arg0",
872
+ "type": "address"
873
+ }
874
+ ],
875
+ "outputs": [
876
+ {
877
+ "name": "",
878
+ "type": "uint256"
879
+ }
880
+ ]
881
+ },
882
+ {
883
+ "stateMutability": "view",
884
+ "type": "function",
885
+ "name": "gauges",
886
+ "inputs": [
887
+ {
888
+ "name": "arg0",
889
+ "type": "uint256"
890
+ }
891
+ ],
892
+ "outputs": [
893
+ {
894
+ "name": "",
895
+ "type": "address"
896
+ }
897
+ ]
898
+ }
899
+ ]