@arcadia-finance/mcp-server 0.1.0

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 (59) hide show
  1. package/LICENSE.md +97 -0
  2. package/README.md +186 -0
  3. package/dist/abis/account.json +1012 -0
  4. package/dist/abis/account_v4.json +1027 -0
  5. package/dist/abis/chainlink.json +509 -0
  6. package/dist/abis/erc20.json +299 -0
  7. package/dist/abis/factory.json +938 -0
  8. package/dist/abis/gauge_helper.json +84 -0
  9. package/dist/abis/index.js +26 -0
  10. package/dist/abis/mainreg.json +1172 -0
  11. package/dist/abis/nftmanager.json +1221 -0
  12. package/dist/abis/nftmanager_v4.json +1297 -0
  13. package/dist/abis/pool.json +2136 -0
  14. package/dist/abis/slipstream_nftmanager.json +1312 -0
  15. package/dist/abis/staked_aero_am.json +1220 -0
  16. package/dist/abis/staked_slipstream_am.json +1131 -0
  17. package/dist/abis/state_viewer.json +365 -0
  18. package/dist/abis/tranche.json +1004 -0
  19. package/dist/abis/wrapped_aero_am.json +1232 -0
  20. package/dist/abis/wrapped_staked_slipstream_am.json +338 -0
  21. package/dist/clients/api.js +189 -0
  22. package/dist/clients/chain.js +30 -0
  23. package/dist/config/addresses.js +94 -0
  24. package/dist/config/chains.js +31 -0
  25. package/dist/index.js +29 -0
  26. package/dist/skills/clamm-liquidity/SKILL.md +167 -0
  27. package/dist/skills/clamm-liquidity/automation.md +138 -0
  28. package/dist/skills/clamm-liquidity/selection.md +183 -0
  29. package/dist/skills/clamm-liquidity/strategies.md +337 -0
  30. package/dist/tools/advanced/account-metadata.js +46 -0
  31. package/dist/tools/advanced/add-liquidity.js +310 -0
  32. package/dist/tools/advanced/close-position.js +208 -0
  33. package/dist/tools/advanced/format-response.js +26 -0
  34. package/dist/tools/advanced/position-actions.js +95 -0
  35. package/dist/tools/advanced/remove-liquidity.js +68 -0
  36. package/dist/tools/advanced/repay-with-collateral.js +66 -0
  37. package/dist/tools/advanced/swap.js +64 -0
  38. package/dist/tools/index.js +52 -0
  39. package/dist/tools/read/accounts.js +243 -0
  40. package/dist/tools/read/allowances.js +86 -0
  41. package/dist/tools/read/assets.js +54 -0
  42. package/dist/tools/read/balances.js +93 -0
  43. package/dist/tools/read/guides.js +59 -0
  44. package/dist/tools/read/points.js +25 -0
  45. package/dist/tools/read/pools.js +48 -0
  46. package/dist/tools/read/protocol.js +94 -0
  47. package/dist/tools/write/approve.js +99 -0
  48. package/dist/tools/write/borrow.js +87 -0
  49. package/dist/tools/write/configure-asset-manager.js +258 -0
  50. package/dist/tools/write/create-account.js +112 -0
  51. package/dist/tools/write/deposit.js +104 -0
  52. package/dist/tools/write/repay.js +56 -0
  53. package/dist/tools/write/set-asset-manager.js +65 -0
  54. package/dist/tools/write/sign-and-send.js +90 -0
  55. package/dist/tools/write/withdraw.js +114 -0
  56. package/dist/types/api.js +5 -0
  57. package/dist/utils/attribution.js +20 -0
  58. package/dist/utils/validation.js +17 -0
  59. package/package.json +67 -0
@@ -0,0 +1,2136 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "riskManager_",
7
+ "type": "address",
8
+ "internalType": "address"
9
+ },
10
+ {
11
+ "name": "asset_",
12
+ "type": "address",
13
+ "internalType": "contract ERC20"
14
+ },
15
+ {
16
+ "name": "treasury_",
17
+ "type": "address",
18
+ "internalType": "address"
19
+ },
20
+ {
21
+ "name": "accountFactory",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ },
25
+ {
26
+ "name": "liquidator",
27
+ "type": "address",
28
+ "internalType": "address"
29
+ }
30
+ ],
31
+ "stateMutability": "nonpayable"
32
+ },
33
+ {
34
+ "type": "function",
35
+ "name": "DOMAIN_SEPARATOR",
36
+ "inputs": [],
37
+ "outputs": [
38
+ {
39
+ "name": "",
40
+ "type": "bytes32",
41
+ "internalType": "bytes32"
42
+ }
43
+ ],
44
+ "stateMutability": "view"
45
+ },
46
+ {
47
+ "type": "function",
48
+ "name": "addTranche",
49
+ "inputs": [
50
+ {
51
+ "name": "tranche",
52
+ "type": "address",
53
+ "internalType": "address"
54
+ },
55
+ {
56
+ "name": "interestWeight_",
57
+ "type": "uint16",
58
+ "internalType": "uint16"
59
+ }
60
+ ],
61
+ "outputs": [],
62
+ "stateMutability": "nonpayable"
63
+ },
64
+ {
65
+ "type": "function",
66
+ "name": "allowance",
67
+ "inputs": [
68
+ {
69
+ "name": "",
70
+ "type": "address",
71
+ "internalType": "address"
72
+ },
73
+ {
74
+ "name": "",
75
+ "type": "address",
76
+ "internalType": "address"
77
+ }
78
+ ],
79
+ "outputs": [
80
+ {
81
+ "name": "",
82
+ "type": "uint256",
83
+ "internalType": "uint256"
84
+ }
85
+ ],
86
+ "stateMutability": "view"
87
+ },
88
+ {
89
+ "type": "function",
90
+ "name": "approve",
91
+ "inputs": [
92
+ {
93
+ "name": "spender",
94
+ "type": "address",
95
+ "internalType": "address"
96
+ },
97
+ {
98
+ "name": "amount",
99
+ "type": "uint256",
100
+ "internalType": "uint256"
101
+ }
102
+ ],
103
+ "outputs": [
104
+ {
105
+ "name": "",
106
+ "type": "bool",
107
+ "internalType": "bool"
108
+ }
109
+ ],
110
+ "stateMutability": "nonpayable"
111
+ },
112
+ {
113
+ "type": "function",
114
+ "name": "approveBeneficiary",
115
+ "inputs": [
116
+ {
117
+ "name": "beneficiary",
118
+ "type": "address",
119
+ "internalType": "address"
120
+ },
121
+ {
122
+ "name": "amount",
123
+ "type": "uint256",
124
+ "internalType": "uint256"
125
+ },
126
+ {
127
+ "name": "account",
128
+ "type": "address",
129
+ "internalType": "address"
130
+ }
131
+ ],
132
+ "outputs": [],
133
+ "stateMutability": "nonpayable"
134
+ },
135
+ {
136
+ "type": "function",
137
+ "name": "asset",
138
+ "inputs": [],
139
+ "outputs": [
140
+ {
141
+ "name": "",
142
+ "type": "address",
143
+ "internalType": "contract ERC20"
144
+ }
145
+ ],
146
+ "stateMutability": "view"
147
+ },
148
+ {
149
+ "type": "function",
150
+ "name": "auctionRepay",
151
+ "inputs": [
152
+ {
153
+ "name": "startDebt",
154
+ "type": "uint256",
155
+ "internalType": "uint256"
156
+ },
157
+ {
158
+ "name": "minimumMargin_",
159
+ "type": "uint256",
160
+ "internalType": "uint256"
161
+ },
162
+ {
163
+ "name": "amount",
164
+ "type": "uint256",
165
+ "internalType": "uint256"
166
+ },
167
+ {
168
+ "name": "account",
169
+ "type": "address",
170
+ "internalType": "address"
171
+ },
172
+ {
173
+ "name": "bidder",
174
+ "type": "address",
175
+ "internalType": "address"
176
+ }
177
+ ],
178
+ "outputs": [
179
+ {
180
+ "name": "earlyTerminate",
181
+ "type": "bool",
182
+ "internalType": "bool"
183
+ }
184
+ ],
185
+ "stateMutability": "nonpayable"
186
+ },
187
+ {
188
+ "type": "function",
189
+ "name": "balanceOf",
190
+ "inputs": [
191
+ {
192
+ "name": "",
193
+ "type": "address",
194
+ "internalType": "address"
195
+ }
196
+ ],
197
+ "outputs": [
198
+ {
199
+ "name": "",
200
+ "type": "uint256",
201
+ "internalType": "uint256"
202
+ }
203
+ ],
204
+ "stateMutability": "view"
205
+ },
206
+ {
207
+ "type": "function",
208
+ "name": "borrow",
209
+ "inputs": [
210
+ {
211
+ "name": "amount",
212
+ "type": "uint256",
213
+ "internalType": "uint256"
214
+ },
215
+ {
216
+ "name": "account",
217
+ "type": "address",
218
+ "internalType": "address"
219
+ },
220
+ {
221
+ "name": "to",
222
+ "type": "address",
223
+ "internalType": "address"
224
+ },
225
+ {
226
+ "name": "referrer",
227
+ "type": "bytes3",
228
+ "internalType": "bytes3"
229
+ }
230
+ ],
231
+ "outputs": [],
232
+ "stateMutability": "nonpayable"
233
+ },
234
+ {
235
+ "type": "function",
236
+ "name": "borrowPaused",
237
+ "inputs": [],
238
+ "outputs": [
239
+ {
240
+ "name": "",
241
+ "type": "bool",
242
+ "internalType": "bool"
243
+ }
244
+ ],
245
+ "stateMutability": "view"
246
+ },
247
+ {
248
+ "type": "function",
249
+ "name": "calcUnrealisedDebt",
250
+ "inputs": [],
251
+ "outputs": [
252
+ {
253
+ "name": "unrealisedDebt",
254
+ "type": "uint256",
255
+ "internalType": "uint256"
256
+ }
257
+ ],
258
+ "stateMutability": "view"
259
+ },
260
+ {
261
+ "type": "function",
262
+ "name": "changeGuardian",
263
+ "inputs": [
264
+ {
265
+ "name": "guardian_",
266
+ "type": "address",
267
+ "internalType": "address"
268
+ }
269
+ ],
270
+ "outputs": [],
271
+ "stateMutability": "nonpayable"
272
+ },
273
+ {
274
+ "type": "function",
275
+ "name": "closeMarginAccount",
276
+ "inputs": [
277
+ {
278
+ "name": "account",
279
+ "type": "address",
280
+ "internalType": "address"
281
+ }
282
+ ],
283
+ "outputs": [],
284
+ "stateMutability": "view"
285
+ },
286
+ {
287
+ "type": "function",
288
+ "name": "convertToAssets",
289
+ "inputs": [
290
+ {
291
+ "name": "shares",
292
+ "type": "uint256",
293
+ "internalType": "uint256"
294
+ }
295
+ ],
296
+ "outputs": [
297
+ {
298
+ "name": "",
299
+ "type": "uint256",
300
+ "internalType": "uint256"
301
+ }
302
+ ],
303
+ "stateMutability": "view"
304
+ },
305
+ {
306
+ "type": "function",
307
+ "name": "convertToShares",
308
+ "inputs": [
309
+ {
310
+ "name": "assets",
311
+ "type": "uint256",
312
+ "internalType": "uint256"
313
+ }
314
+ ],
315
+ "outputs": [
316
+ {
317
+ "name": "",
318
+ "type": "uint256",
319
+ "internalType": "uint256"
320
+ }
321
+ ],
322
+ "stateMutability": "view"
323
+ },
324
+ {
325
+ "type": "function",
326
+ "name": "creditAllowance",
327
+ "inputs": [
328
+ {
329
+ "name": "",
330
+ "type": "address",
331
+ "internalType": "address"
332
+ },
333
+ {
334
+ "name": "",
335
+ "type": "address",
336
+ "internalType": "address"
337
+ },
338
+ {
339
+ "name": "",
340
+ "type": "address",
341
+ "internalType": "address"
342
+ }
343
+ ],
344
+ "outputs": [
345
+ {
346
+ "name": "",
347
+ "type": "uint256",
348
+ "internalType": "uint256"
349
+ }
350
+ ],
351
+ "stateMutability": "view"
352
+ },
353
+ {
354
+ "type": "function",
355
+ "name": "decimals",
356
+ "inputs": [],
357
+ "outputs": [
358
+ {
359
+ "name": "",
360
+ "type": "uint8",
361
+ "internalType": "uint8"
362
+ }
363
+ ],
364
+ "stateMutability": "view"
365
+ },
366
+ {
367
+ "type": "function",
368
+ "name": "deposit",
369
+ "inputs": [
370
+ {
371
+ "name": "",
372
+ "type": "uint256",
373
+ "internalType": "uint256"
374
+ },
375
+ {
376
+ "name": "",
377
+ "type": "address",
378
+ "internalType": "address"
379
+ }
380
+ ],
381
+ "outputs": [
382
+ {
383
+ "name": "",
384
+ "type": "uint256",
385
+ "internalType": "uint256"
386
+ }
387
+ ],
388
+ "stateMutability": "pure"
389
+ },
390
+ {
391
+ "type": "function",
392
+ "name": "depositInLendingPool",
393
+ "inputs": [
394
+ {
395
+ "name": "assets",
396
+ "type": "uint256",
397
+ "internalType": "uint256"
398
+ },
399
+ {
400
+ "name": "from",
401
+ "type": "address",
402
+ "internalType": "address"
403
+ }
404
+ ],
405
+ "outputs": [],
406
+ "stateMutability": "nonpayable"
407
+ },
408
+ {
409
+ "type": "function",
410
+ "name": "depositPaused",
411
+ "inputs": [],
412
+ "outputs": [
413
+ {
414
+ "name": "",
415
+ "type": "bool",
416
+ "internalType": "bool"
417
+ }
418
+ ],
419
+ "stateMutability": "view"
420
+ },
421
+ {
422
+ "type": "function",
423
+ "name": "donateToTranche",
424
+ "inputs": [
425
+ {
426
+ "name": "trancheIndex",
427
+ "type": "uint256",
428
+ "internalType": "uint256"
429
+ },
430
+ {
431
+ "name": "assets",
432
+ "type": "uint256",
433
+ "internalType": "uint256"
434
+ }
435
+ ],
436
+ "outputs": [],
437
+ "stateMutability": "nonpayable"
438
+ },
439
+ {
440
+ "type": "function",
441
+ "name": "flashAction",
442
+ "inputs": [
443
+ {
444
+ "name": "amountBorrowed",
445
+ "type": "uint256",
446
+ "internalType": "uint256"
447
+ },
448
+ {
449
+ "name": "account",
450
+ "type": "address",
451
+ "internalType": "address"
452
+ },
453
+ {
454
+ "name": "actionTarget",
455
+ "type": "address",
456
+ "internalType": "address"
457
+ },
458
+ {
459
+ "name": "actionData",
460
+ "type": "bytes",
461
+ "internalType": "bytes"
462
+ },
463
+ {
464
+ "name": "referrer",
465
+ "type": "bytes3",
466
+ "internalType": "bytes3"
467
+ }
468
+ ],
469
+ "outputs": [],
470
+ "stateMutability": "nonpayable"
471
+ },
472
+ {
473
+ "type": "function",
474
+ "name": "getInterestRateConfig",
475
+ "inputs": [],
476
+ "outputs": [
477
+ {
478
+ "name": "",
479
+ "type": "uint72",
480
+ "internalType": "uint72"
481
+ },
482
+ {
483
+ "name": "",
484
+ "type": "uint72",
485
+ "internalType": "uint72"
486
+ },
487
+ {
488
+ "name": "",
489
+ "type": "uint72",
490
+ "internalType": "uint72"
491
+ },
492
+ {
493
+ "name": "",
494
+ "type": "uint16",
495
+ "internalType": "uint16"
496
+ }
497
+ ],
498
+ "stateMutability": "view"
499
+ },
500
+ {
501
+ "type": "function",
502
+ "name": "getLiquidationParameters",
503
+ "inputs": [],
504
+ "outputs": [
505
+ {
506
+ "name": "",
507
+ "type": "uint16",
508
+ "internalType": "uint16"
509
+ },
510
+ {
511
+ "name": "",
512
+ "type": "uint16",
513
+ "internalType": "uint16"
514
+ },
515
+ {
516
+ "name": "",
517
+ "type": "uint16",
518
+ "internalType": "uint16"
519
+ },
520
+ {
521
+ "name": "",
522
+ "type": "uint16",
523
+ "internalType": "uint16"
524
+ },
525
+ {
526
+ "name": "",
527
+ "type": "uint80",
528
+ "internalType": "uint80"
529
+ }
530
+ ],
531
+ "stateMutability": "view"
532
+ },
533
+ {
534
+ "type": "function",
535
+ "name": "getOpenPosition",
536
+ "inputs": [
537
+ {
538
+ "name": "account",
539
+ "type": "address",
540
+ "internalType": "address"
541
+ }
542
+ ],
543
+ "outputs": [
544
+ {
545
+ "name": "openPosition",
546
+ "type": "uint256",
547
+ "internalType": "uint256"
548
+ }
549
+ ],
550
+ "stateMutability": "view"
551
+ },
552
+ {
553
+ "type": "function",
554
+ "name": "guardian",
555
+ "inputs": [],
556
+ "outputs": [
557
+ {
558
+ "name": "",
559
+ "type": "address",
560
+ "internalType": "address"
561
+ }
562
+ ],
563
+ "stateMutability": "view"
564
+ },
565
+ {
566
+ "type": "function",
567
+ "name": "interestRate",
568
+ "inputs": [],
569
+ "outputs": [
570
+ {
571
+ "name": "",
572
+ "type": "uint80",
573
+ "internalType": "uint80"
574
+ }
575
+ ],
576
+ "stateMutability": "view"
577
+ },
578
+ {
579
+ "type": "function",
580
+ "name": "isValidVersion",
581
+ "inputs": [
582
+ {
583
+ "name": "",
584
+ "type": "uint256",
585
+ "internalType": "uint256"
586
+ }
587
+ ],
588
+ "outputs": [
589
+ {
590
+ "name": "",
591
+ "type": "bool",
592
+ "internalType": "bool"
593
+ }
594
+ ],
595
+ "stateMutability": "view"
596
+ },
597
+ {
598
+ "type": "function",
599
+ "name": "liquidationPaused",
600
+ "inputs": [],
601
+ "outputs": [
602
+ {
603
+ "name": "",
604
+ "type": "bool",
605
+ "internalType": "bool"
606
+ }
607
+ ],
608
+ "stateMutability": "view"
609
+ },
610
+ {
611
+ "type": "function",
612
+ "name": "liquidityOf",
613
+ "inputs": [
614
+ {
615
+ "name": "owner_",
616
+ "type": "address",
617
+ "internalType": "address"
618
+ }
619
+ ],
620
+ "outputs": [
621
+ {
622
+ "name": "assets",
623
+ "type": "uint256",
624
+ "internalType": "uint256"
625
+ }
626
+ ],
627
+ "stateMutability": "view"
628
+ },
629
+ {
630
+ "type": "function",
631
+ "name": "liquidityOfAndSync",
632
+ "inputs": [
633
+ {
634
+ "name": "owner_",
635
+ "type": "address",
636
+ "internalType": "address"
637
+ }
638
+ ],
639
+ "outputs": [
640
+ {
641
+ "name": "assets",
642
+ "type": "uint256",
643
+ "internalType": "uint256"
644
+ }
645
+ ],
646
+ "stateMutability": "nonpayable"
647
+ },
648
+ {
649
+ "type": "function",
650
+ "name": "maxDeposit",
651
+ "inputs": [
652
+ {
653
+ "name": "",
654
+ "type": "address",
655
+ "internalType": "address"
656
+ }
657
+ ],
658
+ "outputs": [
659
+ {
660
+ "name": "",
661
+ "type": "uint256",
662
+ "internalType": "uint256"
663
+ }
664
+ ],
665
+ "stateMutability": "view"
666
+ },
667
+ {
668
+ "type": "function",
669
+ "name": "maxMint",
670
+ "inputs": [
671
+ {
672
+ "name": "",
673
+ "type": "address",
674
+ "internalType": "address"
675
+ }
676
+ ],
677
+ "outputs": [
678
+ {
679
+ "name": "",
680
+ "type": "uint256",
681
+ "internalType": "uint256"
682
+ }
683
+ ],
684
+ "stateMutability": "view"
685
+ },
686
+ {
687
+ "type": "function",
688
+ "name": "maxRedeem",
689
+ "inputs": [
690
+ {
691
+ "name": "owner",
692
+ "type": "address",
693
+ "internalType": "address"
694
+ }
695
+ ],
696
+ "outputs": [
697
+ {
698
+ "name": "",
699
+ "type": "uint256",
700
+ "internalType": "uint256"
701
+ }
702
+ ],
703
+ "stateMutability": "view"
704
+ },
705
+ {
706
+ "type": "function",
707
+ "name": "maxWithdraw",
708
+ "inputs": [
709
+ {
710
+ "name": "owner",
711
+ "type": "address",
712
+ "internalType": "address"
713
+ }
714
+ ],
715
+ "outputs": [
716
+ {
717
+ "name": "",
718
+ "type": "uint256",
719
+ "internalType": "uint256"
720
+ }
721
+ ],
722
+ "stateMutability": "view"
723
+ },
724
+ {
725
+ "type": "function",
726
+ "name": "mint",
727
+ "inputs": [
728
+ {
729
+ "name": "",
730
+ "type": "uint256",
731
+ "internalType": "uint256"
732
+ },
733
+ {
734
+ "name": "",
735
+ "type": "address",
736
+ "internalType": "address"
737
+ }
738
+ ],
739
+ "outputs": [
740
+ {
741
+ "name": "",
742
+ "type": "uint256",
743
+ "internalType": "uint256"
744
+ }
745
+ ],
746
+ "stateMutability": "pure"
747
+ },
748
+ {
749
+ "type": "function",
750
+ "name": "name",
751
+ "inputs": [],
752
+ "outputs": [
753
+ {
754
+ "name": "",
755
+ "type": "string",
756
+ "internalType": "string"
757
+ }
758
+ ],
759
+ "stateMutability": "view"
760
+ },
761
+ {
762
+ "type": "function",
763
+ "name": "nonces",
764
+ "inputs": [
765
+ {
766
+ "name": "",
767
+ "type": "address",
768
+ "internalType": "address"
769
+ }
770
+ ],
771
+ "outputs": [
772
+ {
773
+ "name": "",
774
+ "type": "uint256",
775
+ "internalType": "uint256"
776
+ }
777
+ ],
778
+ "stateMutability": "view"
779
+ },
780
+ {
781
+ "type": "function",
782
+ "name": "openMarginAccount",
783
+ "inputs": [
784
+ {
785
+ "name": "accountVersion",
786
+ "type": "uint256",
787
+ "internalType": "uint256"
788
+ }
789
+ ],
790
+ "outputs": [
791
+ {
792
+ "name": "success",
793
+ "type": "bool",
794
+ "internalType": "bool"
795
+ },
796
+ {
797
+ "name": "numeraire",
798
+ "type": "address",
799
+ "internalType": "address"
800
+ },
801
+ {
802
+ "name": "liquidator_",
803
+ "type": "address",
804
+ "internalType": "address"
805
+ },
806
+ {
807
+ "name": "minimumMargin_",
808
+ "type": "uint256",
809
+ "internalType": "uint256"
810
+ }
811
+ ],
812
+ "stateMutability": "view"
813
+ },
814
+ {
815
+ "type": "function",
816
+ "name": "originationFee",
817
+ "inputs": [],
818
+ "outputs": [
819
+ {
820
+ "name": "",
821
+ "type": "uint8",
822
+ "internalType": "uint8"
823
+ }
824
+ ],
825
+ "stateMutability": "view"
826
+ },
827
+ {
828
+ "type": "function",
829
+ "name": "owner",
830
+ "inputs": [],
831
+ "outputs": [
832
+ {
833
+ "name": "",
834
+ "type": "address",
835
+ "internalType": "address"
836
+ }
837
+ ],
838
+ "stateMutability": "view"
839
+ },
840
+ {
841
+ "type": "function",
842
+ "name": "pause",
843
+ "inputs": [],
844
+ "outputs": [],
845
+ "stateMutability": "nonpayable"
846
+ },
847
+ {
848
+ "type": "function",
849
+ "name": "pauseTimestamp",
850
+ "inputs": [],
851
+ "outputs": [
852
+ {
853
+ "name": "",
854
+ "type": "uint96",
855
+ "internalType": "uint96"
856
+ }
857
+ ],
858
+ "stateMutability": "view"
859
+ },
860
+ {
861
+ "type": "function",
862
+ "name": "permit",
863
+ "inputs": [
864
+ {
865
+ "name": "owner",
866
+ "type": "address",
867
+ "internalType": "address"
868
+ },
869
+ {
870
+ "name": "spender",
871
+ "type": "address",
872
+ "internalType": "address"
873
+ },
874
+ {
875
+ "name": "value",
876
+ "type": "uint256",
877
+ "internalType": "uint256"
878
+ },
879
+ {
880
+ "name": "deadline",
881
+ "type": "uint256",
882
+ "internalType": "uint256"
883
+ },
884
+ {
885
+ "name": "v",
886
+ "type": "uint8",
887
+ "internalType": "uint8"
888
+ },
889
+ {
890
+ "name": "r",
891
+ "type": "bytes32",
892
+ "internalType": "bytes32"
893
+ },
894
+ {
895
+ "name": "s",
896
+ "type": "bytes32",
897
+ "internalType": "bytes32"
898
+ }
899
+ ],
900
+ "outputs": [],
901
+ "stateMutability": "nonpayable"
902
+ },
903
+ {
904
+ "type": "function",
905
+ "name": "previewDeposit",
906
+ "inputs": [
907
+ {
908
+ "name": "assets",
909
+ "type": "uint256",
910
+ "internalType": "uint256"
911
+ }
912
+ ],
913
+ "outputs": [
914
+ {
915
+ "name": "",
916
+ "type": "uint256",
917
+ "internalType": "uint256"
918
+ }
919
+ ],
920
+ "stateMutability": "view"
921
+ },
922
+ {
923
+ "type": "function",
924
+ "name": "previewMint",
925
+ "inputs": [
926
+ {
927
+ "name": "shares",
928
+ "type": "uint256",
929
+ "internalType": "uint256"
930
+ }
931
+ ],
932
+ "outputs": [
933
+ {
934
+ "name": "",
935
+ "type": "uint256",
936
+ "internalType": "uint256"
937
+ }
938
+ ],
939
+ "stateMutability": "view"
940
+ },
941
+ {
942
+ "type": "function",
943
+ "name": "previewRedeem",
944
+ "inputs": [
945
+ {
946
+ "name": "shares",
947
+ "type": "uint256",
948
+ "internalType": "uint256"
949
+ }
950
+ ],
951
+ "outputs": [
952
+ {
953
+ "name": "",
954
+ "type": "uint256",
955
+ "internalType": "uint256"
956
+ }
957
+ ],
958
+ "stateMutability": "view"
959
+ },
960
+ {
961
+ "type": "function",
962
+ "name": "previewWithdraw",
963
+ "inputs": [
964
+ {
965
+ "name": "assets",
966
+ "type": "uint256",
967
+ "internalType": "uint256"
968
+ }
969
+ ],
970
+ "outputs": [
971
+ {
972
+ "name": "",
973
+ "type": "uint256",
974
+ "internalType": "uint256"
975
+ }
976
+ ],
977
+ "stateMutability": "view"
978
+ },
979
+ {
980
+ "type": "function",
981
+ "name": "redeem",
982
+ "inputs": [
983
+ {
984
+ "name": "",
985
+ "type": "uint256",
986
+ "internalType": "uint256"
987
+ },
988
+ {
989
+ "name": "",
990
+ "type": "address",
991
+ "internalType": "address"
992
+ },
993
+ {
994
+ "name": "",
995
+ "type": "address",
996
+ "internalType": "address"
997
+ }
998
+ ],
999
+ "outputs": [
1000
+ {
1001
+ "name": "",
1002
+ "type": "uint256",
1003
+ "internalType": "uint256"
1004
+ }
1005
+ ],
1006
+ "stateMutability": "pure"
1007
+ },
1008
+ {
1009
+ "type": "function",
1010
+ "name": "repay",
1011
+ "inputs": [
1012
+ {
1013
+ "name": "amount",
1014
+ "type": "uint256",
1015
+ "internalType": "uint256"
1016
+ },
1017
+ {
1018
+ "name": "account",
1019
+ "type": "address",
1020
+ "internalType": "address"
1021
+ }
1022
+ ],
1023
+ "outputs": [],
1024
+ "stateMutability": "nonpayable"
1025
+ },
1026
+ {
1027
+ "type": "function",
1028
+ "name": "repayPaused",
1029
+ "inputs": [],
1030
+ "outputs": [
1031
+ {
1032
+ "name": "",
1033
+ "type": "bool",
1034
+ "internalType": "bool"
1035
+ }
1036
+ ],
1037
+ "stateMutability": "view"
1038
+ },
1039
+ {
1040
+ "type": "function",
1041
+ "name": "riskManager",
1042
+ "inputs": [],
1043
+ "outputs": [
1044
+ {
1045
+ "name": "",
1046
+ "type": "address",
1047
+ "internalType": "address"
1048
+ }
1049
+ ],
1050
+ "stateMutability": "view"
1051
+ },
1052
+ {
1053
+ "type": "function",
1054
+ "name": "setAccountVersion",
1055
+ "inputs": [
1056
+ {
1057
+ "name": "accountVersion",
1058
+ "type": "uint256",
1059
+ "internalType": "uint256"
1060
+ },
1061
+ {
1062
+ "name": "valid",
1063
+ "type": "bool",
1064
+ "internalType": "bool"
1065
+ }
1066
+ ],
1067
+ "outputs": [],
1068
+ "stateMutability": "nonpayable"
1069
+ },
1070
+ {
1071
+ "type": "function",
1072
+ "name": "setInterestParameters",
1073
+ "inputs": [
1074
+ {
1075
+ "name": "baseRatePerYear_",
1076
+ "type": "uint72",
1077
+ "internalType": "uint72"
1078
+ },
1079
+ {
1080
+ "name": "lowSlopePerYear_",
1081
+ "type": "uint72",
1082
+ "internalType": "uint72"
1083
+ },
1084
+ {
1085
+ "name": "highSlopePerYear_",
1086
+ "type": "uint72",
1087
+ "internalType": "uint72"
1088
+ },
1089
+ {
1090
+ "name": "utilisationThreshold_",
1091
+ "type": "uint16",
1092
+ "internalType": "uint16"
1093
+ }
1094
+ ],
1095
+ "outputs": [],
1096
+ "stateMutability": "nonpayable"
1097
+ },
1098
+ {
1099
+ "type": "function",
1100
+ "name": "setInterestWeightTranche",
1101
+ "inputs": [
1102
+ {
1103
+ "name": "index",
1104
+ "type": "uint256",
1105
+ "internalType": "uint256"
1106
+ },
1107
+ {
1108
+ "name": "interestWeight_",
1109
+ "type": "uint16",
1110
+ "internalType": "uint16"
1111
+ }
1112
+ ],
1113
+ "outputs": [],
1114
+ "stateMutability": "nonpayable"
1115
+ },
1116
+ {
1117
+ "type": "function",
1118
+ "name": "setLiquidationParameters",
1119
+ "inputs": [
1120
+ {
1121
+ "name": "initiationWeight_",
1122
+ "type": "uint16",
1123
+ "internalType": "uint16"
1124
+ },
1125
+ {
1126
+ "name": "penaltyWeight_",
1127
+ "type": "uint16",
1128
+ "internalType": "uint16"
1129
+ },
1130
+ {
1131
+ "name": "terminationWeight_",
1132
+ "type": "uint16",
1133
+ "internalType": "uint16"
1134
+ },
1135
+ {
1136
+ "name": "minRewardWeight_",
1137
+ "type": "uint16",
1138
+ "internalType": "uint16"
1139
+ },
1140
+ {
1141
+ "name": "maxReward_",
1142
+ "type": "uint80",
1143
+ "internalType": "uint80"
1144
+ }
1145
+ ],
1146
+ "outputs": [],
1147
+ "stateMutability": "nonpayable"
1148
+ },
1149
+ {
1150
+ "type": "function",
1151
+ "name": "setLiquidationWeightTranche",
1152
+ "inputs": [
1153
+ {
1154
+ "name": "liquidationWeight",
1155
+ "type": "uint16",
1156
+ "internalType": "uint16"
1157
+ }
1158
+ ],
1159
+ "outputs": [],
1160
+ "stateMutability": "nonpayable"
1161
+ },
1162
+ {
1163
+ "type": "function",
1164
+ "name": "setMinimumMargin",
1165
+ "inputs": [
1166
+ {
1167
+ "name": "minimumMargin_",
1168
+ "type": "uint96",
1169
+ "internalType": "uint96"
1170
+ }
1171
+ ],
1172
+ "outputs": [],
1173
+ "stateMutability": "nonpayable"
1174
+ },
1175
+ {
1176
+ "type": "function",
1177
+ "name": "setOriginationFee",
1178
+ "inputs": [
1179
+ {
1180
+ "name": "originationFee_",
1181
+ "type": "uint8",
1182
+ "internalType": "uint8"
1183
+ }
1184
+ ],
1185
+ "outputs": [],
1186
+ "stateMutability": "nonpayable"
1187
+ },
1188
+ {
1189
+ "type": "function",
1190
+ "name": "setRiskManager",
1191
+ "inputs": [
1192
+ {
1193
+ "name": "riskManager_",
1194
+ "type": "address",
1195
+ "internalType": "address"
1196
+ }
1197
+ ],
1198
+ "outputs": [],
1199
+ "stateMutability": "nonpayable"
1200
+ },
1201
+ {
1202
+ "type": "function",
1203
+ "name": "setTreasury",
1204
+ "inputs": [
1205
+ {
1206
+ "name": "treasury_",
1207
+ "type": "address",
1208
+ "internalType": "address"
1209
+ }
1210
+ ],
1211
+ "outputs": [],
1212
+ "stateMutability": "nonpayable"
1213
+ },
1214
+ {
1215
+ "type": "function",
1216
+ "name": "setTreasuryWeights",
1217
+ "inputs": [
1218
+ {
1219
+ "name": "interestWeight_",
1220
+ "type": "uint16",
1221
+ "internalType": "uint16"
1222
+ },
1223
+ {
1224
+ "name": "liquidationWeight",
1225
+ "type": "uint16",
1226
+ "internalType": "uint16"
1227
+ }
1228
+ ],
1229
+ "outputs": [],
1230
+ "stateMutability": "nonpayable"
1231
+ },
1232
+ {
1233
+ "type": "function",
1234
+ "name": "settleLiquidationHappyFlow",
1235
+ "inputs": [
1236
+ {
1237
+ "name": "account",
1238
+ "type": "address",
1239
+ "internalType": "address"
1240
+ },
1241
+ {
1242
+ "name": "startDebt",
1243
+ "type": "uint256",
1244
+ "internalType": "uint256"
1245
+ },
1246
+ {
1247
+ "name": "minimumMargin_",
1248
+ "type": "uint256",
1249
+ "internalType": "uint256"
1250
+ },
1251
+ {
1252
+ "name": "terminator",
1253
+ "type": "address",
1254
+ "internalType": "address"
1255
+ }
1256
+ ],
1257
+ "outputs": [],
1258
+ "stateMutability": "nonpayable"
1259
+ },
1260
+ {
1261
+ "type": "function",
1262
+ "name": "settleLiquidationUnhappyFlow",
1263
+ "inputs": [
1264
+ {
1265
+ "name": "account",
1266
+ "type": "address",
1267
+ "internalType": "address"
1268
+ },
1269
+ {
1270
+ "name": "startDebt",
1271
+ "type": "uint256",
1272
+ "internalType": "uint256"
1273
+ },
1274
+ {
1275
+ "name": "minimumMargin_",
1276
+ "type": "uint256",
1277
+ "internalType": "uint256"
1278
+ },
1279
+ {
1280
+ "name": "terminator",
1281
+ "type": "address",
1282
+ "internalType": "address"
1283
+ }
1284
+ ],
1285
+ "outputs": [],
1286
+ "stateMutability": "nonpayable"
1287
+ },
1288
+ {
1289
+ "type": "function",
1290
+ "name": "skim",
1291
+ "inputs": [],
1292
+ "outputs": [],
1293
+ "stateMutability": "nonpayable"
1294
+ },
1295
+ {
1296
+ "type": "function",
1297
+ "name": "startLiquidation",
1298
+ "inputs": [
1299
+ {
1300
+ "name": "initiator",
1301
+ "type": "address",
1302
+ "internalType": "address"
1303
+ },
1304
+ {
1305
+ "name": "minimumMargin_",
1306
+ "type": "uint256",
1307
+ "internalType": "uint256"
1308
+ }
1309
+ ],
1310
+ "outputs": [
1311
+ {
1312
+ "name": "startDebt",
1313
+ "type": "uint256",
1314
+ "internalType": "uint256"
1315
+ }
1316
+ ],
1317
+ "stateMutability": "nonpayable"
1318
+ },
1319
+ {
1320
+ "type": "function",
1321
+ "name": "symbol",
1322
+ "inputs": [],
1323
+ "outputs": [
1324
+ {
1325
+ "name": "",
1326
+ "type": "string",
1327
+ "internalType": "string"
1328
+ }
1329
+ ],
1330
+ "stateMutability": "view"
1331
+ },
1332
+ {
1333
+ "type": "function",
1334
+ "name": "totalAssets",
1335
+ "inputs": [],
1336
+ "outputs": [
1337
+ {
1338
+ "name": "totalDebt",
1339
+ "type": "uint256",
1340
+ "internalType": "uint256"
1341
+ }
1342
+ ],
1343
+ "stateMutability": "view"
1344
+ },
1345
+ {
1346
+ "type": "function",
1347
+ "name": "totalLiquidity",
1348
+ "inputs": [],
1349
+ "outputs": [
1350
+ {
1351
+ "name": "totalLiquidity_",
1352
+ "type": "uint256",
1353
+ "internalType": "uint256"
1354
+ }
1355
+ ],
1356
+ "stateMutability": "view"
1357
+ },
1358
+ {
1359
+ "type": "function",
1360
+ "name": "totalSupply",
1361
+ "inputs": [],
1362
+ "outputs": [
1363
+ {
1364
+ "name": "",
1365
+ "type": "uint256",
1366
+ "internalType": "uint256"
1367
+ }
1368
+ ],
1369
+ "stateMutability": "view"
1370
+ },
1371
+ {
1372
+ "type": "function",
1373
+ "name": "transfer",
1374
+ "inputs": [
1375
+ {
1376
+ "name": "",
1377
+ "type": "address",
1378
+ "internalType": "address"
1379
+ },
1380
+ {
1381
+ "name": "",
1382
+ "type": "uint256",
1383
+ "internalType": "uint256"
1384
+ }
1385
+ ],
1386
+ "outputs": [
1387
+ {
1388
+ "name": "",
1389
+ "type": "bool",
1390
+ "internalType": "bool"
1391
+ }
1392
+ ],
1393
+ "stateMutability": "pure"
1394
+ },
1395
+ {
1396
+ "type": "function",
1397
+ "name": "transferFrom",
1398
+ "inputs": [
1399
+ {
1400
+ "name": "",
1401
+ "type": "address",
1402
+ "internalType": "address"
1403
+ },
1404
+ {
1405
+ "name": "",
1406
+ "type": "address",
1407
+ "internalType": "address"
1408
+ },
1409
+ {
1410
+ "name": "",
1411
+ "type": "uint256",
1412
+ "internalType": "uint256"
1413
+ }
1414
+ ],
1415
+ "outputs": [
1416
+ {
1417
+ "name": "",
1418
+ "type": "bool",
1419
+ "internalType": "bool"
1420
+ }
1421
+ ],
1422
+ "stateMutability": "pure"
1423
+ },
1424
+ {
1425
+ "type": "function",
1426
+ "name": "transferOwnership",
1427
+ "inputs": [
1428
+ {
1429
+ "name": "newOwner",
1430
+ "type": "address",
1431
+ "internalType": "address"
1432
+ }
1433
+ ],
1434
+ "outputs": [],
1435
+ "stateMutability": "nonpayable"
1436
+ },
1437
+ {
1438
+ "type": "function",
1439
+ "name": "unpause",
1440
+ "inputs": [],
1441
+ "outputs": [],
1442
+ "stateMutability": "nonpayable"
1443
+ },
1444
+ {
1445
+ "type": "function",
1446
+ "name": "unpause",
1447
+ "inputs": [
1448
+ {
1449
+ "name": "repayPaused_",
1450
+ "type": "bool",
1451
+ "internalType": "bool"
1452
+ },
1453
+ {
1454
+ "name": "withdrawPaused_",
1455
+ "type": "bool",
1456
+ "internalType": "bool"
1457
+ },
1458
+ {
1459
+ "name": "borrowPaused_",
1460
+ "type": "bool",
1461
+ "internalType": "bool"
1462
+ },
1463
+ {
1464
+ "name": "depositPaused_",
1465
+ "type": "bool",
1466
+ "internalType": "bool"
1467
+ },
1468
+ {
1469
+ "name": "liquidationPaused_",
1470
+ "type": "bool",
1471
+ "internalType": "bool"
1472
+ }
1473
+ ],
1474
+ "outputs": [],
1475
+ "stateMutability": "nonpayable"
1476
+ },
1477
+ {
1478
+ "type": "function",
1479
+ "name": "updateInterestRate",
1480
+ "inputs": [],
1481
+ "outputs": [],
1482
+ "stateMutability": "nonpayable"
1483
+ },
1484
+ {
1485
+ "type": "function",
1486
+ "name": "withdraw",
1487
+ "inputs": [
1488
+ {
1489
+ "name": "",
1490
+ "type": "uint256",
1491
+ "internalType": "uint256"
1492
+ },
1493
+ {
1494
+ "name": "",
1495
+ "type": "address",
1496
+ "internalType": "address"
1497
+ },
1498
+ {
1499
+ "name": "",
1500
+ "type": "address",
1501
+ "internalType": "address"
1502
+ }
1503
+ ],
1504
+ "outputs": [
1505
+ {
1506
+ "name": "",
1507
+ "type": "uint256",
1508
+ "internalType": "uint256"
1509
+ }
1510
+ ],
1511
+ "stateMutability": "pure"
1512
+ },
1513
+ {
1514
+ "type": "function",
1515
+ "name": "withdrawFromLendingPool",
1516
+ "inputs": [
1517
+ {
1518
+ "name": "assets",
1519
+ "type": "uint256",
1520
+ "internalType": "uint256"
1521
+ },
1522
+ {
1523
+ "name": "receiver",
1524
+ "type": "address",
1525
+ "internalType": "address"
1526
+ }
1527
+ ],
1528
+ "outputs": [],
1529
+ "stateMutability": "nonpayable"
1530
+ },
1531
+ {
1532
+ "type": "function",
1533
+ "name": "withdrawPaused",
1534
+ "inputs": [],
1535
+ "outputs": [
1536
+ {
1537
+ "name": "",
1538
+ "type": "bool",
1539
+ "internalType": "bool"
1540
+ }
1541
+ ],
1542
+ "stateMutability": "view"
1543
+ },
1544
+ {
1545
+ "type": "event",
1546
+ "name": "Approval",
1547
+ "inputs": [
1548
+ {
1549
+ "name": "owner",
1550
+ "type": "address",
1551
+ "indexed": true,
1552
+ "internalType": "address"
1553
+ },
1554
+ {
1555
+ "name": "spender",
1556
+ "type": "address",
1557
+ "indexed": true,
1558
+ "internalType": "address"
1559
+ },
1560
+ {
1561
+ "name": "amount",
1562
+ "type": "uint256",
1563
+ "indexed": false,
1564
+ "internalType": "uint256"
1565
+ }
1566
+ ],
1567
+ "anonymous": false
1568
+ },
1569
+ {
1570
+ "type": "event",
1571
+ "name": "AuctionFinished",
1572
+ "inputs": [
1573
+ {
1574
+ "name": "account",
1575
+ "type": "address",
1576
+ "indexed": true,
1577
+ "internalType": "address"
1578
+ },
1579
+ {
1580
+ "name": "creditor",
1581
+ "type": "address",
1582
+ "indexed": true,
1583
+ "internalType": "address"
1584
+ },
1585
+ {
1586
+ "name": "startDebt",
1587
+ "type": "uint256",
1588
+ "indexed": false,
1589
+ "internalType": "uint256"
1590
+ },
1591
+ {
1592
+ "name": "initiationReward",
1593
+ "type": "uint256",
1594
+ "indexed": false,
1595
+ "internalType": "uint256"
1596
+ },
1597
+ {
1598
+ "name": "terminationReward",
1599
+ "type": "uint256",
1600
+ "indexed": false,
1601
+ "internalType": "uint256"
1602
+ },
1603
+ {
1604
+ "name": "penalty",
1605
+ "type": "uint256",
1606
+ "indexed": false,
1607
+ "internalType": "uint256"
1608
+ },
1609
+ {
1610
+ "name": "badDebt",
1611
+ "type": "uint256",
1612
+ "indexed": false,
1613
+ "internalType": "uint256"
1614
+ },
1615
+ {
1616
+ "name": "surplus",
1617
+ "type": "uint256",
1618
+ "indexed": false,
1619
+ "internalType": "uint256"
1620
+ }
1621
+ ],
1622
+ "anonymous": false
1623
+ },
1624
+ {
1625
+ "type": "event",
1626
+ "name": "AuctionStarted",
1627
+ "inputs": [
1628
+ {
1629
+ "name": "account",
1630
+ "type": "address",
1631
+ "indexed": true,
1632
+ "internalType": "address"
1633
+ },
1634
+ {
1635
+ "name": "creditor",
1636
+ "type": "address",
1637
+ "indexed": true,
1638
+ "internalType": "address"
1639
+ },
1640
+ {
1641
+ "name": "openDebt",
1642
+ "type": "uint128",
1643
+ "indexed": false,
1644
+ "internalType": "uint128"
1645
+ }
1646
+ ],
1647
+ "anonymous": false
1648
+ },
1649
+ {
1650
+ "type": "event",
1651
+ "name": "Borrow",
1652
+ "inputs": [
1653
+ {
1654
+ "name": "account",
1655
+ "type": "address",
1656
+ "indexed": true,
1657
+ "internalType": "address"
1658
+ },
1659
+ {
1660
+ "name": "by",
1661
+ "type": "address",
1662
+ "indexed": true,
1663
+ "internalType": "address"
1664
+ },
1665
+ {
1666
+ "name": "to",
1667
+ "type": "address",
1668
+ "indexed": false,
1669
+ "internalType": "address"
1670
+ },
1671
+ {
1672
+ "name": "amount",
1673
+ "type": "uint256",
1674
+ "indexed": false,
1675
+ "internalType": "uint256"
1676
+ },
1677
+ {
1678
+ "name": "fee",
1679
+ "type": "uint256",
1680
+ "indexed": false,
1681
+ "internalType": "uint256"
1682
+ },
1683
+ {
1684
+ "name": "referrer",
1685
+ "type": "bytes3",
1686
+ "indexed": true,
1687
+ "internalType": "bytes3"
1688
+ }
1689
+ ],
1690
+ "anonymous": false
1691
+ },
1692
+ {
1693
+ "type": "event",
1694
+ "name": "CreditApproval",
1695
+ "inputs": [
1696
+ {
1697
+ "name": "account",
1698
+ "type": "address",
1699
+ "indexed": true,
1700
+ "internalType": "address"
1701
+ },
1702
+ {
1703
+ "name": "owner",
1704
+ "type": "address",
1705
+ "indexed": true,
1706
+ "internalType": "address"
1707
+ },
1708
+ {
1709
+ "name": "beneficiary",
1710
+ "type": "address",
1711
+ "indexed": true,
1712
+ "internalType": "address"
1713
+ },
1714
+ {
1715
+ "name": "amount",
1716
+ "type": "uint256",
1717
+ "indexed": false,
1718
+ "internalType": "uint256"
1719
+ }
1720
+ ],
1721
+ "anonymous": false
1722
+ },
1723
+ {
1724
+ "type": "event",
1725
+ "name": "Deposit",
1726
+ "inputs": [
1727
+ {
1728
+ "name": "caller",
1729
+ "type": "address",
1730
+ "indexed": true,
1731
+ "internalType": "address"
1732
+ },
1733
+ {
1734
+ "name": "owner",
1735
+ "type": "address",
1736
+ "indexed": true,
1737
+ "internalType": "address"
1738
+ },
1739
+ {
1740
+ "name": "assets",
1741
+ "type": "uint256",
1742
+ "indexed": false,
1743
+ "internalType": "uint256"
1744
+ },
1745
+ {
1746
+ "name": "shares",
1747
+ "type": "uint256",
1748
+ "indexed": false,
1749
+ "internalType": "uint256"
1750
+ }
1751
+ ],
1752
+ "anonymous": false
1753
+ },
1754
+ {
1755
+ "type": "event",
1756
+ "name": "GuardianChanged",
1757
+ "inputs": [
1758
+ {
1759
+ "name": "user",
1760
+ "type": "address",
1761
+ "indexed": true,
1762
+ "internalType": "address"
1763
+ },
1764
+ {
1765
+ "name": "newGuardian",
1766
+ "type": "address",
1767
+ "indexed": true,
1768
+ "internalType": "address"
1769
+ }
1770
+ ],
1771
+ "anonymous": false
1772
+ },
1773
+ {
1774
+ "type": "event",
1775
+ "name": "InterestSynced",
1776
+ "inputs": [
1777
+ {
1778
+ "name": "interest",
1779
+ "type": "uint256",
1780
+ "indexed": false,
1781
+ "internalType": "uint256"
1782
+ }
1783
+ ],
1784
+ "anonymous": false
1785
+ },
1786
+ {
1787
+ "type": "event",
1788
+ "name": "InterestWeightTrancheUpdated",
1789
+ "inputs": [
1790
+ {
1791
+ "name": "tranche",
1792
+ "type": "address",
1793
+ "indexed": true,
1794
+ "internalType": "address"
1795
+ },
1796
+ {
1797
+ "name": "trancheIndex",
1798
+ "type": "uint8",
1799
+ "indexed": true,
1800
+ "internalType": "uint8"
1801
+ },
1802
+ {
1803
+ "name": "interestWeight",
1804
+ "type": "uint16",
1805
+ "indexed": false,
1806
+ "internalType": "uint16"
1807
+ }
1808
+ ],
1809
+ "anonymous": false
1810
+ },
1811
+ {
1812
+ "type": "event",
1813
+ "name": "LiquidationWeightTrancheUpdated",
1814
+ "inputs": [
1815
+ {
1816
+ "name": "liquidationWeight",
1817
+ "type": "uint16",
1818
+ "indexed": false,
1819
+ "internalType": "uint16"
1820
+ }
1821
+ ],
1822
+ "anonymous": false
1823
+ },
1824
+ {
1825
+ "type": "event",
1826
+ "name": "OwnershipTransferred",
1827
+ "inputs": [
1828
+ {
1829
+ "name": "user",
1830
+ "type": "address",
1831
+ "indexed": true,
1832
+ "internalType": "address"
1833
+ },
1834
+ {
1835
+ "name": "newOwner",
1836
+ "type": "address",
1837
+ "indexed": true,
1838
+ "internalType": "address"
1839
+ }
1840
+ ],
1841
+ "anonymous": false
1842
+ },
1843
+ {
1844
+ "type": "event",
1845
+ "name": "PauseFlagsUpdated",
1846
+ "inputs": [
1847
+ {
1848
+ "name": "repayPauseFlagsUpdated",
1849
+ "type": "bool",
1850
+ "indexed": false,
1851
+ "internalType": "bool"
1852
+ },
1853
+ {
1854
+ "name": "withdrawPauseFlagsUpdated",
1855
+ "type": "bool",
1856
+ "indexed": false,
1857
+ "internalType": "bool"
1858
+ },
1859
+ {
1860
+ "name": "borrowPauseFlagsUpdated",
1861
+ "type": "bool",
1862
+ "indexed": false,
1863
+ "internalType": "bool"
1864
+ },
1865
+ {
1866
+ "name": "depositPauseFlagsUpdated",
1867
+ "type": "bool",
1868
+ "indexed": false,
1869
+ "internalType": "bool"
1870
+ },
1871
+ {
1872
+ "name": "liquidationPauseFlagsUpdated",
1873
+ "type": "bool",
1874
+ "indexed": false,
1875
+ "internalType": "bool"
1876
+ }
1877
+ ],
1878
+ "anonymous": false
1879
+ },
1880
+ {
1881
+ "type": "event",
1882
+ "name": "PoolStateUpdated",
1883
+ "inputs": [
1884
+ {
1885
+ "name": "totalDebt",
1886
+ "type": "uint256",
1887
+ "indexed": false,
1888
+ "internalType": "uint256"
1889
+ },
1890
+ {
1891
+ "name": "totalLiquidity",
1892
+ "type": "uint256",
1893
+ "indexed": false,
1894
+ "internalType": "uint256"
1895
+ },
1896
+ {
1897
+ "name": "interestRate",
1898
+ "type": "uint80",
1899
+ "indexed": false,
1900
+ "internalType": "uint80"
1901
+ }
1902
+ ],
1903
+ "anonymous": false
1904
+ },
1905
+ {
1906
+ "type": "event",
1907
+ "name": "Repay",
1908
+ "inputs": [
1909
+ {
1910
+ "name": "account",
1911
+ "type": "address",
1912
+ "indexed": true,
1913
+ "internalType": "address"
1914
+ },
1915
+ {
1916
+ "name": "from",
1917
+ "type": "address",
1918
+ "indexed": true,
1919
+ "internalType": "address"
1920
+ },
1921
+ {
1922
+ "name": "amount",
1923
+ "type": "uint256",
1924
+ "indexed": false,
1925
+ "internalType": "uint256"
1926
+ }
1927
+ ],
1928
+ "anonymous": false
1929
+ },
1930
+ {
1931
+ "type": "event",
1932
+ "name": "RiskManagerUpdated",
1933
+ "inputs": [
1934
+ {
1935
+ "name": "riskManager",
1936
+ "type": "address",
1937
+ "indexed": false,
1938
+ "internalType": "address"
1939
+ }
1940
+ ],
1941
+ "anonymous": false
1942
+ },
1943
+ {
1944
+ "type": "event",
1945
+ "name": "TranchePopped",
1946
+ "inputs": [
1947
+ {
1948
+ "name": "tranche",
1949
+ "type": "address",
1950
+ "indexed": false,
1951
+ "internalType": "address"
1952
+ }
1953
+ ],
1954
+ "anonymous": false
1955
+ },
1956
+ {
1957
+ "type": "event",
1958
+ "name": "Transfer",
1959
+ "inputs": [
1960
+ {
1961
+ "name": "from",
1962
+ "type": "address",
1963
+ "indexed": true,
1964
+ "internalType": "address"
1965
+ },
1966
+ {
1967
+ "name": "to",
1968
+ "type": "address",
1969
+ "indexed": true,
1970
+ "internalType": "address"
1971
+ },
1972
+ {
1973
+ "name": "amount",
1974
+ "type": "uint256",
1975
+ "indexed": false,
1976
+ "internalType": "uint256"
1977
+ }
1978
+ ],
1979
+ "anonymous": false
1980
+ },
1981
+ {
1982
+ "type": "event",
1983
+ "name": "TreasuryWeightsUpdated",
1984
+ "inputs": [
1985
+ {
1986
+ "name": "interestWeight",
1987
+ "type": "uint16",
1988
+ "indexed": false,
1989
+ "internalType": "uint16"
1990
+ },
1991
+ {
1992
+ "name": "liquidationWeight",
1993
+ "type": "uint16",
1994
+ "indexed": false,
1995
+ "internalType": "uint16"
1996
+ }
1997
+ ],
1998
+ "anonymous": false
1999
+ },
2000
+ {
2001
+ "type": "event",
2002
+ "name": "ValidAccountVersionsUpdated",
2003
+ "inputs": [
2004
+ {
2005
+ "name": "accountVersion",
2006
+ "type": "uint256",
2007
+ "indexed": true,
2008
+ "internalType": "uint256"
2009
+ },
2010
+ {
2011
+ "name": "valid",
2012
+ "type": "bool",
2013
+ "indexed": false,
2014
+ "internalType": "bool"
2015
+ }
2016
+ ],
2017
+ "anonymous": false
2018
+ },
2019
+ {
2020
+ "type": "event",
2021
+ "name": "Withdraw",
2022
+ "inputs": [
2023
+ {
2024
+ "name": "caller",
2025
+ "type": "address",
2026
+ "indexed": true,
2027
+ "internalType": "address"
2028
+ },
2029
+ {
2030
+ "name": "receiver",
2031
+ "type": "address",
2032
+ "indexed": true,
2033
+ "internalType": "address"
2034
+ },
2035
+ {
2036
+ "name": "owner",
2037
+ "type": "address",
2038
+ "indexed": true,
2039
+ "internalType": "address"
2040
+ },
2041
+ {
2042
+ "name": "assets",
2043
+ "type": "uint256",
2044
+ "indexed": false,
2045
+ "internalType": "uint256"
2046
+ },
2047
+ {
2048
+ "name": "shares",
2049
+ "type": "uint256",
2050
+ "indexed": false,
2051
+ "internalType": "uint256"
2052
+ }
2053
+ ],
2054
+ "anonymous": false
2055
+ },
2056
+ {
2057
+ "type": "error",
2058
+ "name": "AmountExceedsBalance",
2059
+ "inputs": []
2060
+ },
2061
+ {
2062
+ "type": "error",
2063
+ "name": "AuctionOngoing",
2064
+ "inputs": []
2065
+ },
2066
+ {
2067
+ "type": "error",
2068
+ "name": "CoolDownPeriodNotPassed",
2069
+ "inputs": []
2070
+ },
2071
+ {
2072
+ "type": "error",
2073
+ "name": "FunctionIsPaused",
2074
+ "inputs": []
2075
+ },
2076
+ {
2077
+ "type": "error",
2078
+ "name": "FunctionNotImplemented",
2079
+ "inputs": []
2080
+ },
2081
+ {
2082
+ "type": "error",
2083
+ "name": "InvalidVersion",
2084
+ "inputs": []
2085
+ },
2086
+ {
2087
+ "type": "error",
2088
+ "name": "IsNotAnAccount",
2089
+ "inputs": []
2090
+ },
2091
+ {
2092
+ "type": "error",
2093
+ "name": "IsNotAnAccountWithDebt",
2094
+ "inputs": []
2095
+ },
2096
+ {
2097
+ "type": "error",
2098
+ "name": "LiquidationWeightsTooHigh",
2099
+ "inputs": []
2100
+ },
2101
+ {
2102
+ "type": "error",
2103
+ "name": "NonExistingTranche",
2104
+ "inputs": []
2105
+ },
2106
+ {
2107
+ "type": "error",
2108
+ "name": "OnlyGuardian",
2109
+ "inputs": []
2110
+ },
2111
+ {
2112
+ "type": "error",
2113
+ "name": "OpenPositionNonZero",
2114
+ "inputs": []
2115
+ },
2116
+ {
2117
+ "type": "error",
2118
+ "name": "TrancheAlreadyExists",
2119
+ "inputs": []
2120
+ },
2121
+ {
2122
+ "type": "error",
2123
+ "name": "Unauthorized",
2124
+ "inputs": []
2125
+ },
2126
+ {
2127
+ "type": "error",
2128
+ "name": "ZeroAmount",
2129
+ "inputs": []
2130
+ },
2131
+ {
2132
+ "type": "error",
2133
+ "name": "ZeroShares",
2134
+ "inputs": []
2135
+ }
2136
+ ]