curvance 1.4.2 → 2.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.
@@ -279,7 +279,7 @@
279
279
  "inputs": [],
280
280
  "outputs": [
281
281
  {
282
- "name": "r",
282
+ "name": "result",
283
283
  "type": "uint256",
284
284
  "internalType": "uint256"
285
285
  }
@@ -288,16 +288,16 @@
288
288
  },
289
289
  {
290
290
  "type": "function",
291
- "name": "exchangeRateSafe",
291
+ "name": "exchangeRateUpdated",
292
292
  "inputs": [],
293
293
  "outputs": [
294
294
  {
295
- "name": "r",
295
+ "name": "result",
296
296
  "type": "uint256",
297
297
  "internalType": "uint256"
298
298
  }
299
299
  ],
300
- "stateMutability": "view"
300
+ "stateMutability": "nonpayable"
301
301
  },
302
302
  {
303
303
  "type": "function",
@@ -320,6 +320,11 @@
320
320
  "type": "address",
321
321
  "internalType": "address"
322
322
  },
323
+ {
324
+ "name": "underlying",
325
+ "type": "address",
326
+ "internalType": "address"
327
+ },
323
328
  {
324
329
  "name": "decimals",
325
330
  "type": "uint8",
@@ -345,6 +350,57 @@
345
350
  ],
346
351
  "stateMutability": "view"
347
352
  },
353
+ {
354
+ "type": "function",
355
+ "name": "getSnapshotUpdated",
356
+ "inputs": [
357
+ {
358
+ "name": "account",
359
+ "type": "address",
360
+ "internalType": "address"
361
+ }
362
+ ],
363
+ "outputs": [
364
+ {
365
+ "name": "result",
366
+ "type": "tuple",
367
+ "internalType": "struct AccountSnapshot",
368
+ "components": [
369
+ {
370
+ "name": "asset",
371
+ "type": "address",
372
+ "internalType": "address"
373
+ },
374
+ {
375
+ "name": "underlying",
376
+ "type": "address",
377
+ "internalType": "address"
378
+ },
379
+ {
380
+ "name": "decimals",
381
+ "type": "uint8",
382
+ "internalType": "uint8"
383
+ },
384
+ {
385
+ "name": "isCollateral",
386
+ "type": "bool",
387
+ "internalType": "bool"
388
+ },
389
+ {
390
+ "name": "collateralPosted",
391
+ "type": "uint256",
392
+ "internalType": "uint256"
393
+ },
394
+ {
395
+ "name": "debtBalance",
396
+ "type": "uint256",
397
+ "internalType": "uint256"
398
+ }
399
+ ]
400
+ }
401
+ ],
402
+ "stateMutability": "nonpayable"
403
+ },
348
404
  {
349
405
  "type": "function",
350
406
  "name": "initializeDeposits",
@@ -518,20 +518,7 @@
518
518
  "inputs": [],
519
519
  "outputs": [
520
520
  {
521
- "name": "r",
522
- "type": "uint256",
523
- "internalType": "uint256"
524
- }
525
- ],
526
- "stateMutability": "view"
527
- },
528
- {
529
- "type": "function",
530
- "name": "exchangeRateSafe",
531
- "inputs": [],
532
- "outputs": [
533
- {
534
- "name": "r",
521
+ "name": "result",
535
522
  "type": "uint256",
536
523
  "internalType": "uint256"
537
524
  }
@@ -544,7 +531,7 @@
544
531
  "inputs": [],
545
532
  "outputs": [
546
533
  {
547
- "name": "r",
534
+ "name": "result",
548
535
  "type": "uint256",
549
536
  "internalType": "uint256"
550
537
  }
@@ -609,6 +596,11 @@
609
596
  "type": "address",
610
597
  "internalType": "address"
611
598
  },
599
+ {
600
+ "name": "underlying",
601
+ "type": "address",
602
+ "internalType": "address"
603
+ },
612
604
  {
613
605
  "name": "decimals",
614
606
  "type": "uint8",
@@ -634,6 +626,57 @@
634
626
  ],
635
627
  "stateMutability": "view"
636
628
  },
629
+ {
630
+ "type": "function",
631
+ "name": "getSnapshotUpdated",
632
+ "inputs": [
633
+ {
634
+ "name": "account",
635
+ "type": "address",
636
+ "internalType": "address"
637
+ }
638
+ ],
639
+ "outputs": [
640
+ {
641
+ "name": "result",
642
+ "type": "tuple",
643
+ "internalType": "struct AccountSnapshot",
644
+ "components": [
645
+ {
646
+ "name": "asset",
647
+ "type": "address",
648
+ "internalType": "address"
649
+ },
650
+ {
651
+ "name": "underlying",
652
+ "type": "address",
653
+ "internalType": "address"
654
+ },
655
+ {
656
+ "name": "decimals",
657
+ "type": "uint8",
658
+ "internalType": "uint8"
659
+ },
660
+ {
661
+ "name": "isCollateral",
662
+ "type": "bool",
663
+ "internalType": "bool"
664
+ },
665
+ {
666
+ "name": "collateralPosted",
667
+ "type": "uint256",
668
+ "internalType": "uint256"
669
+ },
670
+ {
671
+ "name": "debtBalance",
672
+ "type": "uint256",
673
+ "internalType": "uint256"
674
+ }
675
+ ]
676
+ }
677
+ ],
678
+ "stateMutability": "nonpayable"
679
+ },
637
680
  {
638
681
  "type": "function",
639
682
  "name": "getYieldInformation",
@@ -414,7 +414,7 @@
414
414
  "internalType": "uint256[]"
415
415
  }
416
416
  ],
417
- "stateMutability": "view"
417
+ "stateMutability": "nonpayable"
418
418
  },
419
419
  {
420
420
  "type": "function",
@@ -450,7 +450,7 @@
450
450
  }
451
451
  ],
452
452
  "outputs": [],
453
- "stateMutability": "view"
453
+ "stateMutability": "nonpayable"
454
454
  },
455
455
  {
456
456
  "type": "function",
@@ -784,40 +784,6 @@
784
784
  ],
785
785
  "stateMutability": "view"
786
786
  },
787
- {
788
- "type": "function",
789
- "name": "liquidationValuesOf",
790
- "inputs": [
791
- {
792
- "name": "account",
793
- "type": "address",
794
- "internalType": "address"
795
- }
796
- ],
797
- "outputs": [
798
- {
799
- "name": "",
800
- "type": "uint256",
801
- "internalType": "uint256"
802
- },
803
- {
804
- "name": "",
805
- "type": "uint256",
806
- "internalType": "uint256"
807
- },
808
- {
809
- "name": "",
810
- "type": "uint256",
811
- "internalType": "uint256"
812
- },
813
- {
814
- "name": "",
815
- "type": "uint256",
816
- "internalType": "uint256"
817
- }
818
- ],
819
- "stateMutability": "view"
820
- },
821
787
  {
822
788
  "type": "function",
823
789
  "name": "listTokens",
@@ -1105,7 +1071,7 @@
1105
1071
  "internalType": "uint256"
1106
1072
  }
1107
1073
  ],
1108
- "stateMutability": "view"
1074
+ "stateMutability": "nonpayable"
1109
1075
  },
1110
1076
  {
1111
1077
  "type": "function",
@@ -10,6 +10,19 @@
10
10
  ],
11
11
  "stateMutability": "nonpayable"
12
12
  },
13
+ {
14
+ "type": "function",
15
+ "name": "AUCTION_BUFFER",
16
+ "inputs": [],
17
+ "outputs": [
18
+ {
19
+ "name": "",
20
+ "type": "uint256",
21
+ "internalType": "uint256"
22
+ }
23
+ ],
24
+ "stateMutability": "view"
25
+ },
13
26
  {
14
27
  "type": "function",
15
28
  "name": "MARKET_ASSET_RESERVE",
@@ -36,6 +49,19 @@
36
49
  ],
37
50
  "stateMutability": "view"
38
51
  },
52
+ {
53
+ "type": "function",
54
+ "name": "MIN_ACTIVE_LOAN_SIZE",
55
+ "inputs": [],
56
+ "outputs": [
57
+ {
58
+ "name": "",
59
+ "type": "uint256",
60
+ "internalType": "uint256"
61
+ }
62
+ ],
63
+ "stateMutability": "view"
64
+ },
39
65
  {
40
66
  "type": "function",
41
67
  "name": "centralRegistry",
@@ -236,7 +262,7 @@
236
262
  "internalType": "uint256"
237
263
  },
238
264
  {
239
- "name": "priceStale",
265
+ "name": "errorCodeHit",
240
266
  "type": "bool",
241
267
  "internalType": "bool"
242
268
  },
@@ -394,6 +420,41 @@
394
420
  "name": "account",
395
421
  "type": "address",
396
422
  "internalType": "address"
423
+ },
424
+ {
425
+ "name": "cToken",
426
+ "type": "address",
427
+ "internalType": "address"
428
+ },
429
+ {
430
+ "name": "borrowableCToken",
431
+ "type": "address",
432
+ "internalType": "address"
433
+ },
434
+ {
435
+ "name": "isDeposit",
436
+ "type": "bool",
437
+ "internalType": "bool"
438
+ },
439
+ {
440
+ "name": "collateralAssets",
441
+ "type": "uint256",
442
+ "internalType": "uint256"
443
+ },
444
+ {
445
+ "name": "isRepayment",
446
+ "type": "bool",
447
+ "internalType": "bool"
448
+ },
449
+ {
450
+ "name": "debtAssets",
451
+ "type": "uint256",
452
+ "internalType": "uint256"
453
+ },
454
+ {
455
+ "name": "bufferTime",
456
+ "type": "uint256",
457
+ "internalType": "uint256"
397
458
  }
398
459
  ],
399
460
  "outputs": [
@@ -403,7 +464,7 @@
403
464
  "internalType": "uint256"
404
465
  },
405
466
  {
406
- "name": "priceStale",
467
+ "name": "errorCodeHit",
407
468
  "type": "bool",
408
469
  "internalType": "bool"
409
470
  }
@@ -736,7 +797,7 @@
736
797
  "internalType": "uint256"
737
798
  },
738
799
  {
739
- "name": "priceStale",
800
+ "name": "errorCodeHit",
740
801
  "type": "bool",
741
802
  "internalType": "bool"
742
803
  },
@@ -789,6 +850,55 @@
789
850
  ],
790
851
  "stateMutability": "view"
791
852
  },
853
+ {
854
+ "type": "function",
855
+ "name": "hypotheticalBorrowOf",
856
+ "inputs": [
857
+ {
858
+ "name": "account",
859
+ "type": "address",
860
+ "internalType": "address"
861
+ },
862
+ {
863
+ "name": "borrowableCTokenModified",
864
+ "type": "address",
865
+ "internalType": "address"
866
+ },
867
+ {
868
+ "name": "borrowAssets",
869
+ "type": "uint256",
870
+ "internalType": "uint256"
871
+ }
872
+ ],
873
+ "outputs": [
874
+ {
875
+ "name": "",
876
+ "type": "uint256",
877
+ "internalType": "uint256"
878
+ },
879
+ {
880
+ "name": "",
881
+ "type": "uint256",
882
+ "internalType": "uint256"
883
+ },
884
+ {
885
+ "name": "",
886
+ "type": "bool",
887
+ "internalType": "bool"
888
+ },
889
+ {
890
+ "name": "",
891
+ "type": "bool",
892
+ "internalType": "bool"
893
+ },
894
+ {
895
+ "name": "",
896
+ "type": "bool",
897
+ "internalType": "bool"
898
+ }
899
+ ],
900
+ "stateMutability": "view"
901
+ },
792
902
  {
793
903
  "type": "function",
794
904
  "name": "hypotheticalLeverageOf",
@@ -834,6 +944,60 @@
834
944
  "name": "maxDebtBorrowable",
835
945
  "type": "uint256",
836
946
  "internalType": "uint256"
947
+ },
948
+ {
949
+ "name": "loanSizeError",
950
+ "type": "bool",
951
+ "internalType": "bool"
952
+ },
953
+ {
954
+ "name": "errorCodeHit",
955
+ "type": "bool",
956
+ "internalType": "bool"
957
+ }
958
+ ],
959
+ "stateMutability": "view"
960
+ },
961
+ {
962
+ "type": "function",
963
+ "name": "hypotheticalRedemptionOf",
964
+ "inputs": [
965
+ {
966
+ "name": "account",
967
+ "type": "address",
968
+ "internalType": "address"
969
+ },
970
+ {
971
+ "name": "cTokenModified",
972
+ "type": "address",
973
+ "internalType": "address"
974
+ },
975
+ {
976
+ "name": "redemptionShares",
977
+ "type": "uint256",
978
+ "internalType": "uint256"
979
+ }
980
+ ],
981
+ "outputs": [
982
+ {
983
+ "name": "",
984
+ "type": "uint256",
985
+ "internalType": "uint256"
986
+ },
987
+ {
988
+ "name": "",
989
+ "type": "uint256",
990
+ "internalType": "uint256"
991
+ },
992
+ {
993
+ "name": "",
994
+ "type": "bool",
995
+ "internalType": "bool"
996
+ },
997
+ {
998
+ "name": "",
999
+ "type": "bool",
1000
+ "internalType": "bool"
837
1001
  }
838
1002
  ],
839
1003
  "stateMutability": "view"
@@ -503,30 +503,6 @@
503
503
  ],
504
504
  "stateMutability": "view"
505
505
  },
506
- {
507
- "type": "function",
508
- "name": "maxRemainingLeverageOf",
509
- "inputs": [
510
- {
511
- "name": "account",
512
- "type": "address",
513
- "internalType": "address"
514
- },
515
- {
516
- "name": "borrowableCToken",
517
- "type": "address",
518
- "internalType": "address"
519
- }
520
- ],
521
- "outputs": [
522
- {
523
- "name": "result",
524
- "type": "uint256",
525
- "internalType": "uint256"
526
- }
527
- ],
528
- "stateMutability": "view"
529
- },
530
506
  {
531
507
  "type": "function",
532
508
  "name": "multicall",
@@ -16,50 +16,17 @@ export declare const chains: {
16
16
  simpleZapper: string;
17
17
  };
18
18
  MockOracle: string;
19
- USDC: string;
20
- WBTC: string;
21
- SWETH: string;
22
- DAI: string;
23
- LUSD: string;
24
- mkUSD: string;
25
- mETH: string;
26
- mUSD: string;
27
- Faucet: string;
19
+ MessagingHub: string;
20
+ CVE: string;
21
+ RewardManager: string;
22
+ VeCVE: string;
23
+ GaugeManager: string;
24
+ VotingHub: string;
25
+ "WMON-MockPermissionV3Aggregator": string;
26
+ "WMON-ChainlinkAdaptor": string;
27
+ "VaultAggregator-WMON-aprMON": string;
28
+ "VaultAggregator-WMON-shMON": string;
28
29
  markets: {
29
- "Test WBTC / Test USDC": {
30
- address: string;
31
- "WBTC-DynamicIRM": string;
32
- tokens: {
33
- WBTC: string;
34
- USDC: string;
35
- };
36
- "USDC-DynamicIRM": string;
37
- };
38
- "Test LUSD / Test SWETH": {
39
- address: string;
40
- "LUSD-DynamicIRM": string;
41
- tokens: {
42
- LUSD: string;
43
- SWETH: string;
44
- };
45
- };
46
- "Test mUSD / Test mETH": {
47
- address: string;
48
- tokens: {
49
- mUSD: string;
50
- mETH: string;
51
- };
52
- "mETH-DynamicIRM": string;
53
- };
54
- "Test DAI / Test mkUSD": {
55
- address: string;
56
- "DAI-DynamicIRM": string;
57
- tokens: {
58
- DAI: string;
59
- mkUSD: string;
60
- };
61
- "mkUSD-DynamicIRM": string;
62
- };
63
30
  "Apriori (aprMON) / wMON": {
64
31
  address: string;
65
32
  plugins: {
@@ -109,16 +76,6 @@ export declare const chains: {
109
76
  "WMON-DynamicIRM": string;
110
77
  };
111
78
  };
112
- MessagingHub: string;
113
- CVE: string;
114
- RewardManager: string;
115
- VeCVE: string;
116
- GaugeManager: string;
117
- VotingHub: string;
118
- "WMON-MockPermissionV3Aggregator": string;
119
- "WMON-ChainlinkAdaptor": string;
120
- "VaultAggregator-WMON-aprMON": string;
121
- "VaultAggregator-WMON-shMON": string;
122
79
  ProtocolReader: string;
123
80
  };
124
81
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chains/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAElB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chains/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAElB,CAAC"}