@varla/sdk 1.0.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 (61) hide show
  1. package/dist/abi/full/OpinionCtfExecutionEngineAdapter.d.ts +240 -0
  2. package/dist/abi/full/OpinionCtfExecutionEngineAdapter.d.ts.map +1 -0
  3. package/dist/abi/full/OpinionCtfExecutionEngineAdapter.js +315 -0
  4. package/dist/abi/full/PolymarketCtfAdapter.d.ts +234 -0
  5. package/dist/abi/full/PolymarketCtfAdapter.d.ts.map +1 -0
  6. package/dist/abi/full/PolymarketCtfAdapter.js +307 -0
  7. package/dist/abi/full/VarlaAccessManager.d.ts +896 -0
  8. package/dist/abi/full/VarlaAccessManager.d.ts.map +1 -0
  9. package/dist/abi/full/VarlaAccessManager.js +1166 -0
  10. package/dist/abi/full/VarlaConvertLiquidator.d.ts +603 -0
  11. package/dist/abi/full/VarlaConvertLiquidator.d.ts.map +1 -0
  12. package/dist/abi/full/VarlaConvertLiquidator.js +784 -0
  13. package/dist/abi/full/VarlaCore.d.ts +1671 -0
  14. package/dist/abi/full/VarlaCore.d.ts.map +1 -0
  15. package/dist/abi/full/VarlaCore.js +2176 -0
  16. package/dist/abi/full/VarlaInterestRateStrategy.d.ts +337 -0
  17. package/dist/abi/full/VarlaInterestRateStrategy.d.ts.map +1 -0
  18. package/dist/abi/full/VarlaInterestRateStrategy.js +437 -0
  19. package/dist/abi/full/VarlaLiquidator.d.ts +669 -0
  20. package/dist/abi/full/VarlaLiquidator.d.ts.map +1 -0
  21. package/dist/abi/full/VarlaLiquidator.js +864 -0
  22. package/dist/abi/full/VarlaMergeLiquidator.d.ts +575 -0
  23. package/dist/abi/full/VarlaMergeLiquidator.d.ts.map +1 -0
  24. package/dist/abi/full/VarlaMergeLiquidator.js +747 -0
  25. package/dist/abi/full/VarlaOracle.d.ts +1278 -0
  26. package/dist/abi/full/VarlaOracle.d.ts.map +1 -0
  27. package/dist/abi/full/VarlaOracle.js +1673 -0
  28. package/dist/abi/full/VarlaPool.d.ts +1242 -0
  29. package/dist/abi/full/VarlaPool.d.ts.map +1 -0
  30. package/dist/abi/full/VarlaPool.js +1621 -0
  31. package/dist/abi/full/VarlaProxyAdmin.d.ts +227 -0
  32. package/dist/abi/full/VarlaProxyAdmin.d.ts.map +1 -0
  33. package/dist/abi/full/VarlaProxyAdmin.js +296 -0
  34. package/dist/abi/index.d.ts +13 -0
  35. package/dist/abi/index.d.ts.map +1 -0
  36. package/dist/abi/index.js +14 -0
  37. package/dist/abi/subsets/VarlaOracle.registry.d.ts +532 -0
  38. package/dist/abi/subsets/VarlaOracle.registry.d.ts.map +1 -0
  39. package/dist/abi/subsets/VarlaOracle.registry.js +695 -0
  40. package/dist/abi.d.ts +2 -0
  41. package/dist/abi.d.ts.map +1 -0
  42. package/dist/abi.js +2 -0
  43. package/dist/addresses/bsc.d.ts +3 -0
  44. package/dist/addresses/bsc.d.ts.map +1 -0
  45. package/dist/addresses/bsc.js +10 -0
  46. package/dist/addresses/index.d.ts +3 -0
  47. package/dist/addresses/index.d.ts.map +1 -0
  48. package/dist/addresses/index.js +4 -0
  49. package/dist/addresses/polygon.d.ts +3 -0
  50. package/dist/addresses/polygon.d.ts.map +1 -0
  51. package/dist/addresses/polygon.js +10 -0
  52. package/dist/addresses.d.ts +2 -0
  53. package/dist/addresses.d.ts.map +1 -0
  54. package/dist/addresses.js +2 -0
  55. package/dist/index.d.ts +2 -0
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +2 -0
  58. package/dist/types.d.ts +20 -0
  59. package/dist/types.d.ts.map +1 -0
  60. package/dist/types.js +1 -0
  61. package/package.json +42 -0
@@ -0,0 +1,1621 @@
1
+ export const VARLAPOOL_ABI = [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract IERC20",
6
+ "name": "_asset",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "string",
11
+ "name": "_name",
12
+ "type": "string"
13
+ },
14
+ {
15
+ "internalType": "string",
16
+ "name": "_symbol",
17
+ "type": "string"
18
+ },
19
+ {
20
+ "internalType": "address",
21
+ "name": "_authority",
22
+ "type": "address"
23
+ }
24
+ ],
25
+ "stateMutability": "nonpayable",
26
+ "type": "constructor"
27
+ },
28
+ {
29
+ "inputs": [
30
+ {
31
+ "internalType": "address",
32
+ "name": "authority",
33
+ "type": "address"
34
+ }
35
+ ],
36
+ "name": "AccessManagedInvalidAuthority",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [
41
+ {
42
+ "internalType": "address",
43
+ "name": "caller",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "internalType": "uint32",
48
+ "name": "delay",
49
+ "type": "uint32"
50
+ }
51
+ ],
52
+ "name": "AccessManagedRequiredDelay",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "caller",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "AccessManagedUnauthorized",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "uint256",
70
+ "name": "requestedTotalBorrowed",
71
+ "type": "uint256"
72
+ },
73
+ {
74
+ "internalType": "uint256",
75
+ "name": "cap",
76
+ "type": "uint256"
77
+ }
78
+ ],
79
+ "name": "BorrowCapExceeded",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "uint256",
86
+ "name": "requestedTotalAssets",
87
+ "type": "uint256"
88
+ },
89
+ {
90
+ "internalType": "uint256",
91
+ "name": "cap",
92
+ "type": "uint256"
93
+ }
94
+ ],
95
+ "name": "DepositCapExceeded",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "spender",
103
+ "type": "address"
104
+ },
105
+ {
106
+ "internalType": "uint256",
107
+ "name": "allowance",
108
+ "type": "uint256"
109
+ },
110
+ {
111
+ "internalType": "uint256",
112
+ "name": "needed",
113
+ "type": "uint256"
114
+ }
115
+ ],
116
+ "name": "ERC20InsufficientAllowance",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [
121
+ {
122
+ "internalType": "address",
123
+ "name": "sender",
124
+ "type": "address"
125
+ },
126
+ {
127
+ "internalType": "uint256",
128
+ "name": "balance",
129
+ "type": "uint256"
130
+ },
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "needed",
134
+ "type": "uint256"
135
+ }
136
+ ],
137
+ "name": "ERC20InsufficientBalance",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "address",
144
+ "name": "approver",
145
+ "type": "address"
146
+ }
147
+ ],
148
+ "name": "ERC20InvalidApprover",
149
+ "type": "error"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "internalType": "address",
155
+ "name": "receiver",
156
+ "type": "address"
157
+ }
158
+ ],
159
+ "name": "ERC20InvalidReceiver",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [
164
+ {
165
+ "internalType": "address",
166
+ "name": "sender",
167
+ "type": "address"
168
+ }
169
+ ],
170
+ "name": "ERC20InvalidSender",
171
+ "type": "error"
172
+ },
173
+ {
174
+ "inputs": [
175
+ {
176
+ "internalType": "address",
177
+ "name": "spender",
178
+ "type": "address"
179
+ }
180
+ ],
181
+ "name": "ERC20InvalidSpender",
182
+ "type": "error"
183
+ },
184
+ {
185
+ "inputs": [
186
+ {
187
+ "internalType": "address",
188
+ "name": "receiver",
189
+ "type": "address"
190
+ },
191
+ {
192
+ "internalType": "uint256",
193
+ "name": "assets",
194
+ "type": "uint256"
195
+ },
196
+ {
197
+ "internalType": "uint256",
198
+ "name": "max",
199
+ "type": "uint256"
200
+ }
201
+ ],
202
+ "name": "ERC4626ExceededMaxDeposit",
203
+ "type": "error"
204
+ },
205
+ {
206
+ "inputs": [
207
+ {
208
+ "internalType": "address",
209
+ "name": "receiver",
210
+ "type": "address"
211
+ },
212
+ {
213
+ "internalType": "uint256",
214
+ "name": "shares",
215
+ "type": "uint256"
216
+ },
217
+ {
218
+ "internalType": "uint256",
219
+ "name": "max",
220
+ "type": "uint256"
221
+ }
222
+ ],
223
+ "name": "ERC4626ExceededMaxMint",
224
+ "type": "error"
225
+ },
226
+ {
227
+ "inputs": [
228
+ {
229
+ "internalType": "address",
230
+ "name": "owner",
231
+ "type": "address"
232
+ },
233
+ {
234
+ "internalType": "uint256",
235
+ "name": "shares",
236
+ "type": "uint256"
237
+ },
238
+ {
239
+ "internalType": "uint256",
240
+ "name": "max",
241
+ "type": "uint256"
242
+ }
243
+ ],
244
+ "name": "ERC4626ExceededMaxRedeem",
245
+ "type": "error"
246
+ },
247
+ {
248
+ "inputs": [
249
+ {
250
+ "internalType": "address",
251
+ "name": "owner",
252
+ "type": "address"
253
+ },
254
+ {
255
+ "internalType": "uint256",
256
+ "name": "assets",
257
+ "type": "uint256"
258
+ },
259
+ {
260
+ "internalType": "uint256",
261
+ "name": "max",
262
+ "type": "uint256"
263
+ }
264
+ ],
265
+ "name": "ERC4626ExceededMaxWithdraw",
266
+ "type": "error"
267
+ },
268
+ {
269
+ "inputs": [
270
+ {
271
+ "internalType": "uint256",
272
+ "name": "requested",
273
+ "type": "uint256"
274
+ },
275
+ {
276
+ "internalType": "uint256",
277
+ "name": "available",
278
+ "type": "uint256"
279
+ }
280
+ ],
281
+ "name": "InsufficientLiquidity",
282
+ "type": "error"
283
+ },
284
+ {
285
+ "inputs": [
286
+ {
287
+ "internalType": "uint256",
288
+ "name": "requested",
289
+ "type": "uint256"
290
+ },
291
+ {
292
+ "internalType": "uint256",
293
+ "name": "available",
294
+ "type": "uint256"
295
+ }
296
+ ],
297
+ "name": "InsufficientReserve",
298
+ "type": "error"
299
+ },
300
+ {
301
+ "inputs": [],
302
+ "name": "InterestRateStrategyCallFailed",
303
+ "type": "error"
304
+ },
305
+ {
306
+ "inputs": [],
307
+ "name": "InvalidAddress",
308
+ "type": "error"
309
+ },
310
+ {
311
+ "inputs": [],
312
+ "name": "OnlyVarlaCore",
313
+ "type": "error"
314
+ },
315
+ {
316
+ "inputs": [],
317
+ "name": "ReentrancyGuardReentrantCall",
318
+ "type": "error"
319
+ },
320
+ {
321
+ "inputs": [
322
+ {
323
+ "internalType": "address",
324
+ "name": "token",
325
+ "type": "address"
326
+ }
327
+ ],
328
+ "name": "SafeERC20FailedOperation",
329
+ "type": "error"
330
+ },
331
+ {
332
+ "inputs": [
333
+ {
334
+ "internalType": "address",
335
+ "name": "strategy",
336
+ "type": "address"
337
+ }
338
+ ],
339
+ "name": "StrategyNotContract",
340
+ "type": "error"
341
+ },
342
+ {
343
+ "inputs": [],
344
+ "name": "VarlaCoreAlreadySet",
345
+ "type": "error"
346
+ },
347
+ {
348
+ "anonymous": false,
349
+ "inputs": [
350
+ {
351
+ "indexed": false,
352
+ "internalType": "uint256",
353
+ "name": "newIndex",
354
+ "type": "uint256"
355
+ },
356
+ {
357
+ "indexed": false,
358
+ "internalType": "uint256",
359
+ "name": "newRate",
360
+ "type": "uint256"
361
+ },
362
+ {
363
+ "indexed": false,
364
+ "internalType": "uint256",
365
+ "name": "interestAccrued",
366
+ "type": "uint256"
367
+ }
368
+ ],
369
+ "name": "AccrueInterest",
370
+ "type": "event"
371
+ },
372
+ {
373
+ "anonymous": false,
374
+ "inputs": [
375
+ {
376
+ "indexed": true,
377
+ "internalType": "address",
378
+ "name": "owner",
379
+ "type": "address"
380
+ },
381
+ {
382
+ "indexed": true,
383
+ "internalType": "address",
384
+ "name": "spender",
385
+ "type": "address"
386
+ },
387
+ {
388
+ "indexed": false,
389
+ "internalType": "uint256",
390
+ "name": "value",
391
+ "type": "uint256"
392
+ }
393
+ ],
394
+ "name": "Approval",
395
+ "type": "event"
396
+ },
397
+ {
398
+ "anonymous": false,
399
+ "inputs": [
400
+ {
401
+ "indexed": false,
402
+ "internalType": "address",
403
+ "name": "authority",
404
+ "type": "address"
405
+ }
406
+ ],
407
+ "name": "AuthorityUpdated",
408
+ "type": "event"
409
+ },
410
+ {
411
+ "anonymous": false,
412
+ "inputs": [
413
+ {
414
+ "indexed": false,
415
+ "internalType": "uint256",
416
+ "name": "oldCap",
417
+ "type": "uint256"
418
+ },
419
+ {
420
+ "indexed": false,
421
+ "internalType": "uint256",
422
+ "name": "newCap",
423
+ "type": "uint256"
424
+ }
425
+ ],
426
+ "name": "BorrowCapUpdated",
427
+ "type": "event"
428
+ },
429
+ {
430
+ "anonymous": false,
431
+ "inputs": [
432
+ {
433
+ "indexed": true,
434
+ "internalType": "address",
435
+ "name": "sender",
436
+ "type": "address"
437
+ },
438
+ {
439
+ "indexed": true,
440
+ "internalType": "address",
441
+ "name": "owner",
442
+ "type": "address"
443
+ },
444
+ {
445
+ "indexed": false,
446
+ "internalType": "uint256",
447
+ "name": "assets",
448
+ "type": "uint256"
449
+ },
450
+ {
451
+ "indexed": false,
452
+ "internalType": "uint256",
453
+ "name": "shares",
454
+ "type": "uint256"
455
+ }
456
+ ],
457
+ "name": "Deposit",
458
+ "type": "event"
459
+ },
460
+ {
461
+ "anonymous": false,
462
+ "inputs": [
463
+ {
464
+ "indexed": false,
465
+ "internalType": "uint256",
466
+ "name": "oldCap",
467
+ "type": "uint256"
468
+ },
469
+ {
470
+ "indexed": false,
471
+ "internalType": "uint256",
472
+ "name": "newCap",
473
+ "type": "uint256"
474
+ }
475
+ ],
476
+ "name": "DepositCapUpdated",
477
+ "type": "event"
478
+ },
479
+ {
480
+ "anonymous": false,
481
+ "inputs": [
482
+ {
483
+ "indexed": true,
484
+ "internalType": "address",
485
+ "name": "to",
486
+ "type": "address"
487
+ },
488
+ {
489
+ "indexed": false,
490
+ "internalType": "uint256",
491
+ "name": "amount",
492
+ "type": "uint256"
493
+ },
494
+ {
495
+ "indexed": false,
496
+ "internalType": "uint256",
497
+ "name": "scaledAmount",
498
+ "type": "uint256"
499
+ }
500
+ ],
501
+ "name": "Draw",
502
+ "type": "event"
503
+ },
504
+ {
505
+ "anonymous": false,
506
+ "inputs": [
507
+ {
508
+ "indexed": true,
509
+ "internalType": "address",
510
+ "name": "oldStrategy",
511
+ "type": "address"
512
+ },
513
+ {
514
+ "indexed": true,
515
+ "internalType": "address",
516
+ "name": "newStrategy",
517
+ "type": "address"
518
+ }
519
+ ],
520
+ "name": "InterestRateStrategySet",
521
+ "type": "event"
522
+ },
523
+ {
524
+ "anonymous": false,
525
+ "inputs": [
526
+ {
527
+ "indexed": false,
528
+ "internalType": "uint256",
529
+ "name": "amount",
530
+ "type": "uint256"
531
+ },
532
+ {
533
+ "indexed": false,
534
+ "internalType": "uint256",
535
+ "name": "scaledAmount",
536
+ "type": "uint256"
537
+ },
538
+ {
539
+ "indexed": false,
540
+ "internalType": "uint256",
541
+ "name": "interest",
542
+ "type": "uint256"
543
+ }
544
+ ],
545
+ "name": "Repay",
546
+ "type": "event"
547
+ },
548
+ {
549
+ "anonymous": false,
550
+ "inputs": [
551
+ {
552
+ "indexed": false,
553
+ "internalType": "uint256",
554
+ "name": "amount",
555
+ "type": "uint256"
556
+ },
557
+ {
558
+ "indexed": false,
559
+ "internalType": "uint256",
560
+ "name": "totalReserve",
561
+ "type": "uint256"
562
+ }
563
+ ],
564
+ "name": "ReserveFeeCollected",
565
+ "type": "event"
566
+ },
567
+ {
568
+ "anonymous": false,
569
+ "inputs": [
570
+ {
571
+ "indexed": false,
572
+ "internalType": "uint256",
573
+ "name": "amount",
574
+ "type": "uint256"
575
+ },
576
+ {
577
+ "indexed": false,
578
+ "internalType": "uint256",
579
+ "name": "remaining",
580
+ "type": "uint256"
581
+ }
582
+ ],
583
+ "name": "ReserveUsedForBadDebt",
584
+ "type": "event"
585
+ },
586
+ {
587
+ "anonymous": false,
588
+ "inputs": [
589
+ {
590
+ "indexed": true,
591
+ "internalType": "address",
592
+ "name": "to",
593
+ "type": "address"
594
+ },
595
+ {
596
+ "indexed": false,
597
+ "internalType": "uint256",
598
+ "name": "amount",
599
+ "type": "uint256"
600
+ }
601
+ ],
602
+ "name": "ReserveWithdrawn",
603
+ "type": "event"
604
+ },
605
+ {
606
+ "anonymous": false,
607
+ "inputs": [
608
+ {
609
+ "indexed": true,
610
+ "internalType": "address",
611
+ "name": "from",
612
+ "type": "address"
613
+ },
614
+ {
615
+ "indexed": true,
616
+ "internalType": "address",
617
+ "name": "to",
618
+ "type": "address"
619
+ },
620
+ {
621
+ "indexed": false,
622
+ "internalType": "uint256",
623
+ "name": "value",
624
+ "type": "uint256"
625
+ }
626
+ ],
627
+ "name": "Transfer",
628
+ "type": "event"
629
+ },
630
+ {
631
+ "anonymous": false,
632
+ "inputs": [
633
+ {
634
+ "indexed": true,
635
+ "internalType": "address",
636
+ "name": "oldCore",
637
+ "type": "address"
638
+ },
639
+ {
640
+ "indexed": true,
641
+ "internalType": "address",
642
+ "name": "newCore",
643
+ "type": "address"
644
+ }
645
+ ],
646
+ "name": "VarlaCoreSet",
647
+ "type": "event"
648
+ },
649
+ {
650
+ "anonymous": false,
651
+ "inputs": [
652
+ {
653
+ "indexed": true,
654
+ "internalType": "address",
655
+ "name": "sender",
656
+ "type": "address"
657
+ },
658
+ {
659
+ "indexed": true,
660
+ "internalType": "address",
661
+ "name": "receiver",
662
+ "type": "address"
663
+ },
664
+ {
665
+ "indexed": true,
666
+ "internalType": "address",
667
+ "name": "owner",
668
+ "type": "address"
669
+ },
670
+ {
671
+ "indexed": false,
672
+ "internalType": "uint256",
673
+ "name": "assets",
674
+ "type": "uint256"
675
+ },
676
+ {
677
+ "indexed": false,
678
+ "internalType": "uint256",
679
+ "name": "shares",
680
+ "type": "uint256"
681
+ }
682
+ ],
683
+ "name": "Withdraw",
684
+ "type": "event"
685
+ },
686
+ {
687
+ "inputs": [],
688
+ "name": "PRECISION",
689
+ "outputs": [
690
+ {
691
+ "internalType": "uint256",
692
+ "name": "",
693
+ "type": "uint256"
694
+ }
695
+ ],
696
+ "stateMutability": "view",
697
+ "type": "function"
698
+ },
699
+ {
700
+ "inputs": [],
701
+ "name": "RESERVE_FEE_BPS",
702
+ "outputs": [
703
+ {
704
+ "internalType": "uint256",
705
+ "name": "",
706
+ "type": "uint256"
707
+ }
708
+ ],
709
+ "stateMutability": "view",
710
+ "type": "function"
711
+ },
712
+ {
713
+ "inputs": [
714
+ {
715
+ "internalType": "address",
716
+ "name": "owner",
717
+ "type": "address"
718
+ },
719
+ {
720
+ "internalType": "address",
721
+ "name": "spender",
722
+ "type": "address"
723
+ }
724
+ ],
725
+ "name": "allowance",
726
+ "outputs": [
727
+ {
728
+ "internalType": "uint256",
729
+ "name": "",
730
+ "type": "uint256"
731
+ }
732
+ ],
733
+ "stateMutability": "view",
734
+ "type": "function"
735
+ },
736
+ {
737
+ "inputs": [
738
+ {
739
+ "internalType": "address",
740
+ "name": "spender",
741
+ "type": "address"
742
+ },
743
+ {
744
+ "internalType": "uint256",
745
+ "name": "value",
746
+ "type": "uint256"
747
+ }
748
+ ],
749
+ "name": "approve",
750
+ "outputs": [
751
+ {
752
+ "internalType": "bool",
753
+ "name": "",
754
+ "type": "bool"
755
+ }
756
+ ],
757
+ "stateMutability": "nonpayable",
758
+ "type": "function"
759
+ },
760
+ {
761
+ "inputs": [],
762
+ "name": "asset",
763
+ "outputs": [
764
+ {
765
+ "internalType": "address",
766
+ "name": "",
767
+ "type": "address"
768
+ }
769
+ ],
770
+ "stateMutability": "view",
771
+ "type": "function"
772
+ },
773
+ {
774
+ "inputs": [],
775
+ "name": "authority",
776
+ "outputs": [
777
+ {
778
+ "internalType": "address",
779
+ "name": "",
780
+ "type": "address"
781
+ }
782
+ ],
783
+ "stateMutability": "view",
784
+ "type": "function"
785
+ },
786
+ {
787
+ "inputs": [
788
+ {
789
+ "internalType": "address",
790
+ "name": "account",
791
+ "type": "address"
792
+ }
793
+ ],
794
+ "name": "balanceOf",
795
+ "outputs": [
796
+ {
797
+ "internalType": "uint256",
798
+ "name": "",
799
+ "type": "uint256"
800
+ }
801
+ ],
802
+ "stateMutability": "view",
803
+ "type": "function"
804
+ },
805
+ {
806
+ "inputs": [],
807
+ "name": "borrowCap",
808
+ "outputs": [
809
+ {
810
+ "internalType": "uint256",
811
+ "name": "",
812
+ "type": "uint256"
813
+ }
814
+ ],
815
+ "stateMutability": "view",
816
+ "type": "function"
817
+ },
818
+ {
819
+ "inputs": [],
820
+ "name": "borrowIndex",
821
+ "outputs": [
822
+ {
823
+ "internalType": "uint256",
824
+ "name": "",
825
+ "type": "uint256"
826
+ }
827
+ ],
828
+ "stateMutability": "view",
829
+ "type": "function"
830
+ },
831
+ {
832
+ "inputs": [],
833
+ "name": "borrowRate",
834
+ "outputs": [
835
+ {
836
+ "internalType": "uint256",
837
+ "name": "",
838
+ "type": "uint256"
839
+ }
840
+ ],
841
+ "stateMutability": "view",
842
+ "type": "function"
843
+ },
844
+ {
845
+ "inputs": [
846
+ {
847
+ "internalType": "uint256",
848
+ "name": "shares",
849
+ "type": "uint256"
850
+ }
851
+ ],
852
+ "name": "convertToAssets",
853
+ "outputs": [
854
+ {
855
+ "internalType": "uint256",
856
+ "name": "",
857
+ "type": "uint256"
858
+ }
859
+ ],
860
+ "stateMutability": "view",
861
+ "type": "function"
862
+ },
863
+ {
864
+ "inputs": [
865
+ {
866
+ "internalType": "uint256",
867
+ "name": "assets",
868
+ "type": "uint256"
869
+ }
870
+ ],
871
+ "name": "convertToShares",
872
+ "outputs": [
873
+ {
874
+ "internalType": "uint256",
875
+ "name": "",
876
+ "type": "uint256"
877
+ }
878
+ ],
879
+ "stateMutability": "view",
880
+ "type": "function"
881
+ },
882
+ {
883
+ "inputs": [],
884
+ "name": "decimals",
885
+ "outputs": [
886
+ {
887
+ "internalType": "uint8",
888
+ "name": "",
889
+ "type": "uint8"
890
+ }
891
+ ],
892
+ "stateMutability": "view",
893
+ "type": "function"
894
+ },
895
+ {
896
+ "inputs": [
897
+ {
898
+ "internalType": "uint256",
899
+ "name": "assets",
900
+ "type": "uint256"
901
+ },
902
+ {
903
+ "internalType": "address",
904
+ "name": "receiver",
905
+ "type": "address"
906
+ }
907
+ ],
908
+ "name": "deposit",
909
+ "outputs": [
910
+ {
911
+ "internalType": "uint256",
912
+ "name": "",
913
+ "type": "uint256"
914
+ }
915
+ ],
916
+ "stateMutability": "nonpayable",
917
+ "type": "function"
918
+ },
919
+ {
920
+ "inputs": [],
921
+ "name": "depositCap",
922
+ "outputs": [
923
+ {
924
+ "internalType": "uint256",
925
+ "name": "",
926
+ "type": "uint256"
927
+ }
928
+ ],
929
+ "stateMutability": "view",
930
+ "type": "function"
931
+ },
932
+ {
933
+ "inputs": [
934
+ {
935
+ "internalType": "address",
936
+ "name": "to",
937
+ "type": "address"
938
+ },
939
+ {
940
+ "internalType": "uint256",
941
+ "name": "amount",
942
+ "type": "uint256"
943
+ }
944
+ ],
945
+ "name": "drawFunds",
946
+ "outputs": [
947
+ {
948
+ "internalType": "uint256",
949
+ "name": "scaledAmount",
950
+ "type": "uint256"
951
+ }
952
+ ],
953
+ "stateMutability": "nonpayable",
954
+ "type": "function"
955
+ },
956
+ {
957
+ "inputs": [],
958
+ "name": "getAvailableLiquidity",
959
+ "outputs": [
960
+ {
961
+ "internalType": "uint256",
962
+ "name": "",
963
+ "type": "uint256"
964
+ }
965
+ ],
966
+ "stateMutability": "view",
967
+ "type": "function"
968
+ },
969
+ {
970
+ "inputs": [],
971
+ "name": "getCurrentBorrowIndex",
972
+ "outputs": [
973
+ {
974
+ "internalType": "uint256",
975
+ "name": "",
976
+ "type": "uint256"
977
+ }
978
+ ],
979
+ "stateMutability": "view",
980
+ "type": "function"
981
+ },
982
+ {
983
+ "inputs": [],
984
+ "name": "getInterestRate",
985
+ "outputs": [
986
+ {
987
+ "internalType": "uint256",
988
+ "name": "",
989
+ "type": "uint256"
990
+ }
991
+ ],
992
+ "stateMutability": "view",
993
+ "type": "function"
994
+ },
995
+ {
996
+ "inputs": [],
997
+ "name": "getPoolStats",
998
+ "outputs": [
999
+ {
1000
+ "internalType": "uint256",
1001
+ "name": "_totalAssets",
1002
+ "type": "uint256"
1003
+ },
1004
+ {
1005
+ "internalType": "uint256",
1006
+ "name": "_totalBorrowed",
1007
+ "type": "uint256"
1008
+ },
1009
+ {
1010
+ "internalType": "uint256",
1011
+ "name": "_available",
1012
+ "type": "uint256"
1013
+ },
1014
+ {
1015
+ "internalType": "uint256",
1016
+ "name": "_utilization",
1017
+ "type": "uint256"
1018
+ },
1019
+ {
1020
+ "internalType": "uint256",
1021
+ "name": "_borrowRate",
1022
+ "type": "uint256"
1023
+ },
1024
+ {
1025
+ "internalType": "uint256",
1026
+ "name": "_supplyAPY",
1027
+ "type": "uint256"
1028
+ },
1029
+ {
1030
+ "internalType": "uint256",
1031
+ "name": "_borrowIndex",
1032
+ "type": "uint256"
1033
+ }
1034
+ ],
1035
+ "stateMutability": "view",
1036
+ "type": "function"
1037
+ },
1038
+ {
1039
+ "inputs": [],
1040
+ "name": "getSupplyAPY",
1041
+ "outputs": [
1042
+ {
1043
+ "internalType": "uint256",
1044
+ "name": "",
1045
+ "type": "uint256"
1046
+ }
1047
+ ],
1048
+ "stateMutability": "view",
1049
+ "type": "function"
1050
+ },
1051
+ {
1052
+ "inputs": [],
1053
+ "name": "getTotalBorrowed",
1054
+ "outputs": [
1055
+ {
1056
+ "internalType": "uint256",
1057
+ "name": "",
1058
+ "type": "uint256"
1059
+ }
1060
+ ],
1061
+ "stateMutability": "view",
1062
+ "type": "function"
1063
+ },
1064
+ {
1065
+ "inputs": [],
1066
+ "name": "getUtilization",
1067
+ "outputs": [
1068
+ {
1069
+ "internalType": "uint256",
1070
+ "name": "",
1071
+ "type": "uint256"
1072
+ }
1073
+ ],
1074
+ "stateMutability": "view",
1075
+ "type": "function"
1076
+ },
1077
+ {
1078
+ "inputs": [
1079
+ {
1080
+ "internalType": "uint256",
1081
+ "name": "scaledAmount",
1082
+ "type": "uint256"
1083
+ }
1084
+ ],
1085
+ "name": "handleBadDebt",
1086
+ "outputs": [],
1087
+ "stateMutability": "nonpayable",
1088
+ "type": "function"
1089
+ },
1090
+ {
1091
+ "inputs": [],
1092
+ "name": "interestRateStrategy",
1093
+ "outputs": [
1094
+ {
1095
+ "internalType": "contract IVarlaInterestRateStrategy",
1096
+ "name": "",
1097
+ "type": "address"
1098
+ }
1099
+ ],
1100
+ "stateMutability": "view",
1101
+ "type": "function"
1102
+ },
1103
+ {
1104
+ "inputs": [],
1105
+ "name": "isConsumingScheduledOp",
1106
+ "outputs": [
1107
+ {
1108
+ "internalType": "bytes4",
1109
+ "name": "",
1110
+ "type": "bytes4"
1111
+ }
1112
+ ],
1113
+ "stateMutability": "view",
1114
+ "type": "function"
1115
+ },
1116
+ {
1117
+ "inputs": [],
1118
+ "name": "lastUpdateTimestamp",
1119
+ "outputs": [
1120
+ {
1121
+ "internalType": "uint40",
1122
+ "name": "",
1123
+ "type": "uint40"
1124
+ }
1125
+ ],
1126
+ "stateMutability": "view",
1127
+ "type": "function"
1128
+ },
1129
+ {
1130
+ "inputs": [],
1131
+ "name": "maxBorrow",
1132
+ "outputs": [
1133
+ {
1134
+ "internalType": "uint256",
1135
+ "name": "",
1136
+ "type": "uint256"
1137
+ }
1138
+ ],
1139
+ "stateMutability": "view",
1140
+ "type": "function"
1141
+ },
1142
+ {
1143
+ "inputs": [
1144
+ {
1145
+ "internalType": "address",
1146
+ "name": "receiver",
1147
+ "type": "address"
1148
+ }
1149
+ ],
1150
+ "name": "maxDeposit",
1151
+ "outputs": [
1152
+ {
1153
+ "internalType": "uint256",
1154
+ "name": "",
1155
+ "type": "uint256"
1156
+ }
1157
+ ],
1158
+ "stateMutability": "view",
1159
+ "type": "function"
1160
+ },
1161
+ {
1162
+ "inputs": [
1163
+ {
1164
+ "internalType": "address",
1165
+ "name": "receiver",
1166
+ "type": "address"
1167
+ }
1168
+ ],
1169
+ "name": "maxMint",
1170
+ "outputs": [
1171
+ {
1172
+ "internalType": "uint256",
1173
+ "name": "",
1174
+ "type": "uint256"
1175
+ }
1176
+ ],
1177
+ "stateMutability": "view",
1178
+ "type": "function"
1179
+ },
1180
+ {
1181
+ "inputs": [
1182
+ {
1183
+ "internalType": "address",
1184
+ "name": "owner",
1185
+ "type": "address"
1186
+ }
1187
+ ],
1188
+ "name": "maxRedeem",
1189
+ "outputs": [
1190
+ {
1191
+ "internalType": "uint256",
1192
+ "name": "",
1193
+ "type": "uint256"
1194
+ }
1195
+ ],
1196
+ "stateMutability": "view",
1197
+ "type": "function"
1198
+ },
1199
+ {
1200
+ "inputs": [
1201
+ {
1202
+ "internalType": "address",
1203
+ "name": "owner",
1204
+ "type": "address"
1205
+ }
1206
+ ],
1207
+ "name": "maxWithdraw",
1208
+ "outputs": [
1209
+ {
1210
+ "internalType": "uint256",
1211
+ "name": "",
1212
+ "type": "uint256"
1213
+ }
1214
+ ],
1215
+ "stateMutability": "view",
1216
+ "type": "function"
1217
+ },
1218
+ {
1219
+ "inputs": [
1220
+ {
1221
+ "internalType": "uint256",
1222
+ "name": "shares",
1223
+ "type": "uint256"
1224
+ },
1225
+ {
1226
+ "internalType": "address",
1227
+ "name": "receiver",
1228
+ "type": "address"
1229
+ }
1230
+ ],
1231
+ "name": "mint",
1232
+ "outputs": [
1233
+ {
1234
+ "internalType": "uint256",
1235
+ "name": "",
1236
+ "type": "uint256"
1237
+ }
1238
+ ],
1239
+ "stateMutability": "nonpayable",
1240
+ "type": "function"
1241
+ },
1242
+ {
1243
+ "inputs": [],
1244
+ "name": "name",
1245
+ "outputs": [
1246
+ {
1247
+ "internalType": "string",
1248
+ "name": "",
1249
+ "type": "string"
1250
+ }
1251
+ ],
1252
+ "stateMutability": "view",
1253
+ "type": "function"
1254
+ },
1255
+ {
1256
+ "inputs": [
1257
+ {
1258
+ "internalType": "uint256",
1259
+ "name": "assets",
1260
+ "type": "uint256"
1261
+ }
1262
+ ],
1263
+ "name": "previewDeposit",
1264
+ "outputs": [
1265
+ {
1266
+ "internalType": "uint256",
1267
+ "name": "",
1268
+ "type": "uint256"
1269
+ }
1270
+ ],
1271
+ "stateMutability": "view",
1272
+ "type": "function"
1273
+ },
1274
+ {
1275
+ "inputs": [
1276
+ {
1277
+ "internalType": "uint256",
1278
+ "name": "shares",
1279
+ "type": "uint256"
1280
+ }
1281
+ ],
1282
+ "name": "previewMint",
1283
+ "outputs": [
1284
+ {
1285
+ "internalType": "uint256",
1286
+ "name": "",
1287
+ "type": "uint256"
1288
+ }
1289
+ ],
1290
+ "stateMutability": "view",
1291
+ "type": "function"
1292
+ },
1293
+ {
1294
+ "inputs": [
1295
+ {
1296
+ "internalType": "uint256",
1297
+ "name": "shares",
1298
+ "type": "uint256"
1299
+ }
1300
+ ],
1301
+ "name": "previewRedeem",
1302
+ "outputs": [
1303
+ {
1304
+ "internalType": "uint256",
1305
+ "name": "",
1306
+ "type": "uint256"
1307
+ }
1308
+ ],
1309
+ "stateMutability": "view",
1310
+ "type": "function"
1311
+ },
1312
+ {
1313
+ "inputs": [
1314
+ {
1315
+ "internalType": "uint256",
1316
+ "name": "assets",
1317
+ "type": "uint256"
1318
+ }
1319
+ ],
1320
+ "name": "previewWithdraw",
1321
+ "outputs": [
1322
+ {
1323
+ "internalType": "uint256",
1324
+ "name": "",
1325
+ "type": "uint256"
1326
+ }
1327
+ ],
1328
+ "stateMutability": "view",
1329
+ "type": "function"
1330
+ },
1331
+ {
1332
+ "inputs": [
1333
+ {
1334
+ "internalType": "uint256",
1335
+ "name": "scaledAmount",
1336
+ "type": "uint256"
1337
+ },
1338
+ {
1339
+ "internalType": "uint256",
1340
+ "name": "actualAmount",
1341
+ "type": "uint256"
1342
+ }
1343
+ ],
1344
+ "name": "receiveFunds",
1345
+ "outputs": [],
1346
+ "stateMutability": "nonpayable",
1347
+ "type": "function"
1348
+ },
1349
+ {
1350
+ "inputs": [
1351
+ {
1352
+ "internalType": "uint256",
1353
+ "name": "shares",
1354
+ "type": "uint256"
1355
+ },
1356
+ {
1357
+ "internalType": "address",
1358
+ "name": "receiver",
1359
+ "type": "address"
1360
+ },
1361
+ {
1362
+ "internalType": "address",
1363
+ "name": "owner",
1364
+ "type": "address"
1365
+ }
1366
+ ],
1367
+ "name": "redeem",
1368
+ "outputs": [
1369
+ {
1370
+ "internalType": "uint256",
1371
+ "name": "",
1372
+ "type": "uint256"
1373
+ }
1374
+ ],
1375
+ "stateMutability": "nonpayable",
1376
+ "type": "function"
1377
+ },
1378
+ {
1379
+ "inputs": [],
1380
+ "name": "reserveBalance",
1381
+ "outputs": [
1382
+ {
1383
+ "internalType": "uint256",
1384
+ "name": "",
1385
+ "type": "uint256"
1386
+ }
1387
+ ],
1388
+ "stateMutability": "view",
1389
+ "type": "function"
1390
+ },
1391
+ {
1392
+ "inputs": [],
1393
+ "name": "scaledTotalBorrowed",
1394
+ "outputs": [
1395
+ {
1396
+ "internalType": "uint256",
1397
+ "name": "",
1398
+ "type": "uint256"
1399
+ }
1400
+ ],
1401
+ "stateMutability": "view",
1402
+ "type": "function"
1403
+ },
1404
+ {
1405
+ "inputs": [
1406
+ {
1407
+ "internalType": "address",
1408
+ "name": "newAuthority",
1409
+ "type": "address"
1410
+ }
1411
+ ],
1412
+ "name": "setAuthority",
1413
+ "outputs": [],
1414
+ "stateMutability": "nonpayable",
1415
+ "type": "function"
1416
+ },
1417
+ {
1418
+ "inputs": [
1419
+ {
1420
+ "internalType": "uint256",
1421
+ "name": "newCap",
1422
+ "type": "uint256"
1423
+ }
1424
+ ],
1425
+ "name": "setBorrowCap",
1426
+ "outputs": [],
1427
+ "stateMutability": "nonpayable",
1428
+ "type": "function"
1429
+ },
1430
+ {
1431
+ "inputs": [
1432
+ {
1433
+ "internalType": "uint256",
1434
+ "name": "newCap",
1435
+ "type": "uint256"
1436
+ }
1437
+ ],
1438
+ "name": "setDepositCap",
1439
+ "outputs": [],
1440
+ "stateMutability": "nonpayable",
1441
+ "type": "function"
1442
+ },
1443
+ {
1444
+ "inputs": [
1445
+ {
1446
+ "internalType": "address",
1447
+ "name": "_strategy",
1448
+ "type": "address"
1449
+ }
1450
+ ],
1451
+ "name": "setInterestRateStrategy",
1452
+ "outputs": [],
1453
+ "stateMutability": "nonpayable",
1454
+ "type": "function"
1455
+ },
1456
+ {
1457
+ "inputs": [
1458
+ {
1459
+ "internalType": "address",
1460
+ "name": "_varlaCore",
1461
+ "type": "address"
1462
+ }
1463
+ ],
1464
+ "name": "setVarlaCore",
1465
+ "outputs": [],
1466
+ "stateMutability": "nonpayable",
1467
+ "type": "function"
1468
+ },
1469
+ {
1470
+ "inputs": [],
1471
+ "name": "symbol",
1472
+ "outputs": [
1473
+ {
1474
+ "internalType": "string",
1475
+ "name": "",
1476
+ "type": "string"
1477
+ }
1478
+ ],
1479
+ "stateMutability": "view",
1480
+ "type": "function"
1481
+ },
1482
+ {
1483
+ "inputs": [],
1484
+ "name": "totalAssets",
1485
+ "outputs": [
1486
+ {
1487
+ "internalType": "uint256",
1488
+ "name": "",
1489
+ "type": "uint256"
1490
+ }
1491
+ ],
1492
+ "stateMutability": "view",
1493
+ "type": "function"
1494
+ },
1495
+ {
1496
+ "inputs": [],
1497
+ "name": "totalSupply",
1498
+ "outputs": [
1499
+ {
1500
+ "internalType": "uint256",
1501
+ "name": "",
1502
+ "type": "uint256"
1503
+ }
1504
+ ],
1505
+ "stateMutability": "view",
1506
+ "type": "function"
1507
+ },
1508
+ {
1509
+ "inputs": [
1510
+ {
1511
+ "internalType": "address",
1512
+ "name": "to",
1513
+ "type": "address"
1514
+ },
1515
+ {
1516
+ "internalType": "uint256",
1517
+ "name": "value",
1518
+ "type": "uint256"
1519
+ }
1520
+ ],
1521
+ "name": "transfer",
1522
+ "outputs": [
1523
+ {
1524
+ "internalType": "bool",
1525
+ "name": "",
1526
+ "type": "bool"
1527
+ }
1528
+ ],
1529
+ "stateMutability": "nonpayable",
1530
+ "type": "function"
1531
+ },
1532
+ {
1533
+ "inputs": [
1534
+ {
1535
+ "internalType": "address",
1536
+ "name": "from",
1537
+ "type": "address"
1538
+ },
1539
+ {
1540
+ "internalType": "address",
1541
+ "name": "to",
1542
+ "type": "address"
1543
+ },
1544
+ {
1545
+ "internalType": "uint256",
1546
+ "name": "value",
1547
+ "type": "uint256"
1548
+ }
1549
+ ],
1550
+ "name": "transferFrom",
1551
+ "outputs": [
1552
+ {
1553
+ "internalType": "bool",
1554
+ "name": "",
1555
+ "type": "bool"
1556
+ }
1557
+ ],
1558
+ "stateMutability": "nonpayable",
1559
+ "type": "function"
1560
+ },
1561
+ {
1562
+ "inputs": [],
1563
+ "name": "varlaCore",
1564
+ "outputs": [
1565
+ {
1566
+ "internalType": "address",
1567
+ "name": "",
1568
+ "type": "address"
1569
+ }
1570
+ ],
1571
+ "stateMutability": "view",
1572
+ "type": "function"
1573
+ },
1574
+ {
1575
+ "inputs": [
1576
+ {
1577
+ "internalType": "uint256",
1578
+ "name": "assets",
1579
+ "type": "uint256"
1580
+ },
1581
+ {
1582
+ "internalType": "address",
1583
+ "name": "receiver",
1584
+ "type": "address"
1585
+ },
1586
+ {
1587
+ "internalType": "address",
1588
+ "name": "owner",
1589
+ "type": "address"
1590
+ }
1591
+ ],
1592
+ "name": "withdraw",
1593
+ "outputs": [
1594
+ {
1595
+ "internalType": "uint256",
1596
+ "name": "",
1597
+ "type": "uint256"
1598
+ }
1599
+ ],
1600
+ "stateMutability": "nonpayable",
1601
+ "type": "function"
1602
+ },
1603
+ {
1604
+ "inputs": [
1605
+ {
1606
+ "internalType": "address",
1607
+ "name": "to",
1608
+ "type": "address"
1609
+ },
1610
+ {
1611
+ "internalType": "uint256",
1612
+ "name": "amount",
1613
+ "type": "uint256"
1614
+ }
1615
+ ],
1616
+ "name": "withdrawReserve",
1617
+ "outputs": [],
1618
+ "stateMutability": "nonpayable",
1619
+ "type": "function"
1620
+ }
1621
+ ];