@varla/sdk 1.11.3 → 1.11.4
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.
- package/AGENTS.md +1 -0
- package/BACKEND.md +1 -0
- package/FRONTEND.md +1 -0
- package/README.md +1 -0
- package/dist/abi/full/VarlaConvertLiquidator.d.ts +35 -0
- package/dist/abi/full/VarlaConvertLiquidator.d.ts.map +1 -1
- package/dist/abi/full/VarlaConvertLiquidator.js +45 -0
- package/dist/abi/full/VarlaLiquidator.d.ts +35 -0
- package/dist/abi/full/VarlaLiquidator.d.ts.map +1 -1
- package/dist/abi/full/VarlaLiquidator.js +45 -0
- package/dist/abi/full/VarlaMergeLiquidator.d.ts +35 -0
- package/dist/abi/full/VarlaMergeLiquidator.d.ts.map +1 -1
- package/dist/abi/full/VarlaMergeLiquidator.js +45 -0
- package/dist/generated.d.ts +105 -0
- package/dist/generated.d.ts.map +1 -1
- package/dist/views/core.d.ts +55 -7
- package/dist/views/core.d.ts.map +1 -1
- package/dist/views/core.js +184 -36
- package/package.json +1 -1
package/AGENTS.md
CHANGED
package/BACKEND.md
CHANGED
package/FRONTEND.md
CHANGED
package/README.md
CHANGED
|
@@ -134,6 +134,7 @@ These are convenience helpers built on top of the contract bindings.
|
|
|
134
134
|
- `readDefaultLtvConfig`
|
|
135
135
|
- `readHasRole`
|
|
136
136
|
- `readHealthFactor`
|
|
137
|
+
- `readHypotheticalBorrowCapacity`
|
|
137
138
|
- `readInterestRateStrategyBasics`
|
|
138
139
|
- `readLenderSnapshot`
|
|
139
140
|
- `readLiquidationBonusBps`
|
|
@@ -244,6 +244,21 @@ export declare const VARLACONVERTLIQUIDATOR_ABI: readonly [{
|
|
|
244
244
|
}];
|
|
245
245
|
readonly name: "NegRiskAdapterUpdated";
|
|
246
246
|
readonly type: "event";
|
|
247
|
+
}, {
|
|
248
|
+
readonly anonymous: false;
|
|
249
|
+
readonly inputs: readonly [{
|
|
250
|
+
readonly indexed: true;
|
|
251
|
+
readonly internalType: "address";
|
|
252
|
+
readonly name: "oldStaking";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
}, {
|
|
255
|
+
readonly indexed: true;
|
|
256
|
+
readonly internalType: "address";
|
|
257
|
+
readonly name: "newStaking";
|
|
258
|
+
readonly type: "address";
|
|
259
|
+
}];
|
|
260
|
+
readonly name: "StakingUpdated";
|
|
261
|
+
readonly type: "event";
|
|
247
262
|
}, {
|
|
248
263
|
readonly anonymous: false;
|
|
249
264
|
readonly inputs: readonly [{
|
|
@@ -565,6 +580,16 @@ export declare const VARLACONVERTLIQUIDATOR_ABI: readonly [{
|
|
|
565
580
|
readonly outputs: readonly [];
|
|
566
581
|
readonly stateMutability: "nonpayable";
|
|
567
582
|
readonly type: "function";
|
|
583
|
+
}, {
|
|
584
|
+
readonly inputs: readonly [{
|
|
585
|
+
readonly internalType: "address";
|
|
586
|
+
readonly name: "_staking";
|
|
587
|
+
readonly type: "address";
|
|
588
|
+
}];
|
|
589
|
+
readonly name: "setStaking";
|
|
590
|
+
readonly outputs: readonly [];
|
|
591
|
+
readonly stateMutability: "nonpayable";
|
|
592
|
+
readonly type: "function";
|
|
568
593
|
}, {
|
|
569
594
|
readonly inputs: readonly [{
|
|
570
595
|
readonly internalType: "address";
|
|
@@ -575,6 +600,16 @@ export declare const VARLACONVERTLIQUIDATOR_ABI: readonly [{
|
|
|
575
600
|
readonly outputs: readonly [];
|
|
576
601
|
readonly stateMutability: "nonpayable";
|
|
577
602
|
readonly type: "function";
|
|
603
|
+
}, {
|
|
604
|
+
readonly inputs: readonly [];
|
|
605
|
+
readonly name: "staking";
|
|
606
|
+
readonly outputs: readonly [{
|
|
607
|
+
readonly internalType: "address";
|
|
608
|
+
readonly name: "";
|
|
609
|
+
readonly type: "address";
|
|
610
|
+
}];
|
|
611
|
+
readonly stateMutability: "view";
|
|
612
|
+
readonly type: "function";
|
|
578
613
|
}, {
|
|
579
614
|
readonly inputs: readonly [{
|
|
580
615
|
readonly internalType: "bytes4";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarlaConvertLiquidator.d.ts","sourceRoot":"","sources":["../../../src/abi/full/VarlaConvertLiquidator.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"VarlaConvertLiquidator.d.ts","sourceRoot":"","sources":["../../../src/abi/full/VarlaConvertLiquidator.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4zBf,CAAC"}
|
|
@@ -320,6 +320,25 @@ export const VARLACONVERTLIQUIDATOR_ABI = [
|
|
|
320
320
|
"name": "NegRiskAdapterUpdated",
|
|
321
321
|
"type": "event"
|
|
322
322
|
},
|
|
323
|
+
{
|
|
324
|
+
"anonymous": false,
|
|
325
|
+
"inputs": [
|
|
326
|
+
{
|
|
327
|
+
"indexed": true,
|
|
328
|
+
"internalType": "address",
|
|
329
|
+
"name": "oldStaking",
|
|
330
|
+
"type": "address"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"indexed": true,
|
|
334
|
+
"internalType": "address",
|
|
335
|
+
"name": "newStaking",
|
|
336
|
+
"type": "address"
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"name": "StakingUpdated",
|
|
340
|
+
"type": "event"
|
|
341
|
+
},
|
|
323
342
|
{
|
|
324
343
|
"anonymous": false,
|
|
325
344
|
"inputs": [
|
|
@@ -736,6 +755,19 @@ export const VARLACONVERTLIQUIDATOR_ABI = [
|
|
|
736
755
|
"stateMutability": "nonpayable",
|
|
737
756
|
"type": "function"
|
|
738
757
|
},
|
|
758
|
+
{
|
|
759
|
+
"inputs": [
|
|
760
|
+
{
|
|
761
|
+
"internalType": "address",
|
|
762
|
+
"name": "_staking",
|
|
763
|
+
"type": "address"
|
|
764
|
+
}
|
|
765
|
+
],
|
|
766
|
+
"name": "setStaking",
|
|
767
|
+
"outputs": [],
|
|
768
|
+
"stateMutability": "nonpayable",
|
|
769
|
+
"type": "function"
|
|
770
|
+
},
|
|
739
771
|
{
|
|
740
772
|
"inputs": [
|
|
741
773
|
{
|
|
@@ -749,6 +781,19 @@ export const VARLACONVERTLIQUIDATOR_ABI = [
|
|
|
749
781
|
"stateMutability": "nonpayable",
|
|
750
782
|
"type": "function"
|
|
751
783
|
},
|
|
784
|
+
{
|
|
785
|
+
"inputs": [],
|
|
786
|
+
"name": "staking",
|
|
787
|
+
"outputs": [
|
|
788
|
+
{
|
|
789
|
+
"internalType": "address",
|
|
790
|
+
"name": "",
|
|
791
|
+
"type": "address"
|
|
792
|
+
}
|
|
793
|
+
],
|
|
794
|
+
"stateMutability": "view",
|
|
795
|
+
"type": "function"
|
|
796
|
+
},
|
|
752
797
|
{
|
|
753
798
|
"inputs": [
|
|
754
799
|
{
|
|
@@ -262,6 +262,21 @@ export declare const VARLALIQUIDATOR_ABI: readonly [{
|
|
|
262
262
|
}];
|
|
263
263
|
readonly name: "MultiLiquidation";
|
|
264
264
|
readonly type: "event";
|
|
265
|
+
}, {
|
|
266
|
+
readonly anonymous: false;
|
|
267
|
+
readonly inputs: readonly [{
|
|
268
|
+
readonly indexed: true;
|
|
269
|
+
readonly internalType: "address";
|
|
270
|
+
readonly name: "oldStaking";
|
|
271
|
+
readonly type: "address";
|
|
272
|
+
}, {
|
|
273
|
+
readonly indexed: true;
|
|
274
|
+
readonly internalType: "address";
|
|
275
|
+
readonly name: "newStaking";
|
|
276
|
+
readonly type: "address";
|
|
277
|
+
}];
|
|
278
|
+
readonly name: "StakingUpdated";
|
|
279
|
+
readonly type: "event";
|
|
265
280
|
}, {
|
|
266
281
|
readonly anonymous: false;
|
|
267
282
|
readonly inputs: readonly [{
|
|
@@ -631,6 +646,16 @@ export declare const VARLALIQUIDATOR_ABI: readonly [{
|
|
|
631
646
|
readonly outputs: readonly [];
|
|
632
647
|
readonly stateMutability: "nonpayable";
|
|
633
648
|
readonly type: "function";
|
|
649
|
+
}, {
|
|
650
|
+
readonly inputs: readonly [{
|
|
651
|
+
readonly internalType: "address";
|
|
652
|
+
readonly name: "_staking";
|
|
653
|
+
readonly type: "address";
|
|
654
|
+
}];
|
|
655
|
+
readonly name: "setStaking";
|
|
656
|
+
readonly outputs: readonly [];
|
|
657
|
+
readonly stateMutability: "nonpayable";
|
|
658
|
+
readonly type: "function";
|
|
634
659
|
}, {
|
|
635
660
|
readonly inputs: readonly [{
|
|
636
661
|
readonly internalType: "address";
|
|
@@ -641,6 +666,16 @@ export declare const VARLALIQUIDATOR_ABI: readonly [{
|
|
|
641
666
|
readonly outputs: readonly [];
|
|
642
667
|
readonly stateMutability: "nonpayable";
|
|
643
668
|
readonly type: "function";
|
|
669
|
+
}, {
|
|
670
|
+
readonly inputs: readonly [];
|
|
671
|
+
readonly name: "staking";
|
|
672
|
+
readonly outputs: readonly [{
|
|
673
|
+
readonly internalType: "address";
|
|
674
|
+
readonly name: "";
|
|
675
|
+
readonly type: "address";
|
|
676
|
+
}];
|
|
677
|
+
readonly stateMutability: "view";
|
|
678
|
+
readonly type: "function";
|
|
644
679
|
}, {
|
|
645
680
|
readonly inputs: readonly [{
|
|
646
681
|
readonly internalType: "bytes4";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarlaLiquidator.d.ts","sourceRoot":"","sources":["../../../src/abi/full/VarlaLiquidator.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"VarlaLiquidator.d.ts","sourceRoot":"","sources":["../../../src/abi/full/VarlaLiquidator.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA44BR,CAAC"}
|
|
@@ -338,6 +338,25 @@ export const VARLALIQUIDATOR_ABI = [
|
|
|
338
338
|
"name": "MultiLiquidation",
|
|
339
339
|
"type": "event"
|
|
340
340
|
},
|
|
341
|
+
{
|
|
342
|
+
"anonymous": false,
|
|
343
|
+
"inputs": [
|
|
344
|
+
{
|
|
345
|
+
"indexed": true,
|
|
346
|
+
"internalType": "address",
|
|
347
|
+
"name": "oldStaking",
|
|
348
|
+
"type": "address"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"indexed": true,
|
|
352
|
+
"internalType": "address",
|
|
353
|
+
"name": "newStaking",
|
|
354
|
+
"type": "address"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"name": "StakingUpdated",
|
|
358
|
+
"type": "event"
|
|
359
|
+
},
|
|
341
360
|
{
|
|
342
361
|
"anonymous": false,
|
|
343
362
|
"inputs": [
|
|
@@ -816,6 +835,19 @@ export const VARLALIQUIDATOR_ABI = [
|
|
|
816
835
|
"stateMutability": "nonpayable",
|
|
817
836
|
"type": "function"
|
|
818
837
|
},
|
|
838
|
+
{
|
|
839
|
+
"inputs": [
|
|
840
|
+
{
|
|
841
|
+
"internalType": "address",
|
|
842
|
+
"name": "_staking",
|
|
843
|
+
"type": "address"
|
|
844
|
+
}
|
|
845
|
+
],
|
|
846
|
+
"name": "setStaking",
|
|
847
|
+
"outputs": [],
|
|
848
|
+
"stateMutability": "nonpayable",
|
|
849
|
+
"type": "function"
|
|
850
|
+
},
|
|
819
851
|
{
|
|
820
852
|
"inputs": [
|
|
821
853
|
{
|
|
@@ -829,6 +861,19 @@ export const VARLALIQUIDATOR_ABI = [
|
|
|
829
861
|
"stateMutability": "nonpayable",
|
|
830
862
|
"type": "function"
|
|
831
863
|
},
|
|
864
|
+
{
|
|
865
|
+
"inputs": [],
|
|
866
|
+
"name": "staking",
|
|
867
|
+
"outputs": [
|
|
868
|
+
{
|
|
869
|
+
"internalType": "address",
|
|
870
|
+
"name": "",
|
|
871
|
+
"type": "address"
|
|
872
|
+
}
|
|
873
|
+
],
|
|
874
|
+
"stateMutability": "view",
|
|
875
|
+
"type": "function"
|
|
876
|
+
},
|
|
832
877
|
{
|
|
833
878
|
"inputs": [
|
|
834
879
|
{
|
|
@@ -220,6 +220,21 @@ export declare const VARLAMERGELIQUIDATOR_ABI: readonly [{
|
|
|
220
220
|
}];
|
|
221
221
|
readonly name: "MarketAdapterUpdated";
|
|
222
222
|
readonly type: "event";
|
|
223
|
+
}, {
|
|
224
|
+
readonly anonymous: false;
|
|
225
|
+
readonly inputs: readonly [{
|
|
226
|
+
readonly indexed: true;
|
|
227
|
+
readonly internalType: "address";
|
|
228
|
+
readonly name: "oldStaking";
|
|
229
|
+
readonly type: "address";
|
|
230
|
+
}, {
|
|
231
|
+
readonly indexed: true;
|
|
232
|
+
readonly internalType: "address";
|
|
233
|
+
readonly name: "newStaking";
|
|
234
|
+
readonly type: "address";
|
|
235
|
+
}];
|
|
236
|
+
readonly name: "StakingUpdated";
|
|
237
|
+
readonly type: "event";
|
|
223
238
|
}, {
|
|
224
239
|
readonly anonymous: false;
|
|
225
240
|
readonly inputs: readonly [{
|
|
@@ -537,6 +552,16 @@ export declare const VARLAMERGELIQUIDATOR_ABI: readonly [{
|
|
|
537
552
|
readonly outputs: readonly [];
|
|
538
553
|
readonly stateMutability: "nonpayable";
|
|
539
554
|
readonly type: "function";
|
|
555
|
+
}, {
|
|
556
|
+
readonly inputs: readonly [{
|
|
557
|
+
readonly internalType: "address";
|
|
558
|
+
readonly name: "_staking";
|
|
559
|
+
readonly type: "address";
|
|
560
|
+
}];
|
|
561
|
+
readonly name: "setStaking";
|
|
562
|
+
readonly outputs: readonly [];
|
|
563
|
+
readonly stateMutability: "nonpayable";
|
|
564
|
+
readonly type: "function";
|
|
540
565
|
}, {
|
|
541
566
|
readonly inputs: readonly [{
|
|
542
567
|
readonly internalType: "address";
|
|
@@ -547,6 +572,16 @@ export declare const VARLAMERGELIQUIDATOR_ABI: readonly [{
|
|
|
547
572
|
readonly outputs: readonly [];
|
|
548
573
|
readonly stateMutability: "nonpayable";
|
|
549
574
|
readonly type: "function";
|
|
575
|
+
}, {
|
|
576
|
+
readonly inputs: readonly [];
|
|
577
|
+
readonly name: "staking";
|
|
578
|
+
readonly outputs: readonly [{
|
|
579
|
+
readonly internalType: "address";
|
|
580
|
+
readonly name: "";
|
|
581
|
+
readonly type: "address";
|
|
582
|
+
}];
|
|
583
|
+
readonly stateMutability: "view";
|
|
584
|
+
readonly type: "function";
|
|
550
585
|
}, {
|
|
551
586
|
readonly inputs: readonly [{
|
|
552
587
|
readonly internalType: "bytes4";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarlaMergeLiquidator.d.ts","sourceRoot":"","sources":["../../../src/abi/full/VarlaMergeLiquidator.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"VarlaMergeLiquidator.d.ts","sourceRoot":"","sources":["../../../src/abi/full/VarlaMergeLiquidator.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuxBb,CAAC"}
|
|
@@ -288,6 +288,25 @@ export const VARLAMERGELIQUIDATOR_ABI = [
|
|
|
288
288
|
"name": "MarketAdapterUpdated",
|
|
289
289
|
"type": "event"
|
|
290
290
|
},
|
|
291
|
+
{
|
|
292
|
+
"anonymous": false,
|
|
293
|
+
"inputs": [
|
|
294
|
+
{
|
|
295
|
+
"indexed": true,
|
|
296
|
+
"internalType": "address",
|
|
297
|
+
"name": "oldStaking",
|
|
298
|
+
"type": "address"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"indexed": true,
|
|
302
|
+
"internalType": "address",
|
|
303
|
+
"name": "newStaking",
|
|
304
|
+
"type": "address"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"name": "StakingUpdated",
|
|
308
|
+
"type": "event"
|
|
309
|
+
},
|
|
291
310
|
{
|
|
292
311
|
"anonymous": false,
|
|
293
312
|
"inputs": [
|
|
@@ -699,6 +718,19 @@ export const VARLAMERGELIQUIDATOR_ABI = [
|
|
|
699
718
|
"stateMutability": "nonpayable",
|
|
700
719
|
"type": "function"
|
|
701
720
|
},
|
|
721
|
+
{
|
|
722
|
+
"inputs": [
|
|
723
|
+
{
|
|
724
|
+
"internalType": "address",
|
|
725
|
+
"name": "_staking",
|
|
726
|
+
"type": "address"
|
|
727
|
+
}
|
|
728
|
+
],
|
|
729
|
+
"name": "setStaking",
|
|
730
|
+
"outputs": [],
|
|
731
|
+
"stateMutability": "nonpayable",
|
|
732
|
+
"type": "function"
|
|
733
|
+
},
|
|
702
734
|
{
|
|
703
735
|
"inputs": [
|
|
704
736
|
{
|
|
@@ -712,6 +744,19 @@ export const VARLAMERGELIQUIDATOR_ABI = [
|
|
|
712
744
|
"stateMutability": "nonpayable",
|
|
713
745
|
"type": "function"
|
|
714
746
|
},
|
|
747
|
+
{
|
|
748
|
+
"inputs": [],
|
|
749
|
+
"name": "staking",
|
|
750
|
+
"outputs": [
|
|
751
|
+
{
|
|
752
|
+
"internalType": "address",
|
|
753
|
+
"name": "",
|
|
754
|
+
"type": "address"
|
|
755
|
+
}
|
|
756
|
+
],
|
|
757
|
+
"stateMutability": "view",
|
|
758
|
+
"type": "function"
|
|
759
|
+
},
|
|
715
760
|
{
|
|
716
761
|
"inputs": [
|
|
717
762
|
{
|
package/dist/generated.d.ts
CHANGED
|
@@ -6481,6 +6481,21 @@ export declare const abis: {
|
|
|
6481
6481
|
}];
|
|
6482
6482
|
readonly name: "MultiLiquidation";
|
|
6483
6483
|
readonly type: "event";
|
|
6484
|
+
}, {
|
|
6485
|
+
readonly anonymous: false;
|
|
6486
|
+
readonly inputs: readonly [{
|
|
6487
|
+
readonly indexed: true;
|
|
6488
|
+
readonly internalType: "address";
|
|
6489
|
+
readonly name: "oldStaking";
|
|
6490
|
+
readonly type: "address";
|
|
6491
|
+
}, {
|
|
6492
|
+
readonly indexed: true;
|
|
6493
|
+
readonly internalType: "address";
|
|
6494
|
+
readonly name: "newStaking";
|
|
6495
|
+
readonly type: "address";
|
|
6496
|
+
}];
|
|
6497
|
+
readonly name: "StakingUpdated";
|
|
6498
|
+
readonly type: "event";
|
|
6484
6499
|
}, {
|
|
6485
6500
|
readonly anonymous: false;
|
|
6486
6501
|
readonly inputs: readonly [{
|
|
@@ -6850,6 +6865,16 @@ export declare const abis: {
|
|
|
6850
6865
|
readonly outputs: readonly [];
|
|
6851
6866
|
readonly stateMutability: "nonpayable";
|
|
6852
6867
|
readonly type: "function";
|
|
6868
|
+
}, {
|
|
6869
|
+
readonly inputs: readonly [{
|
|
6870
|
+
readonly internalType: "address";
|
|
6871
|
+
readonly name: "_staking";
|
|
6872
|
+
readonly type: "address";
|
|
6873
|
+
}];
|
|
6874
|
+
readonly name: "setStaking";
|
|
6875
|
+
readonly outputs: readonly [];
|
|
6876
|
+
readonly stateMutability: "nonpayable";
|
|
6877
|
+
readonly type: "function";
|
|
6853
6878
|
}, {
|
|
6854
6879
|
readonly inputs: readonly [{
|
|
6855
6880
|
readonly internalType: "address";
|
|
@@ -6860,6 +6885,16 @@ export declare const abis: {
|
|
|
6860
6885
|
readonly outputs: readonly [];
|
|
6861
6886
|
readonly stateMutability: "nonpayable";
|
|
6862
6887
|
readonly type: "function";
|
|
6888
|
+
}, {
|
|
6889
|
+
readonly inputs: readonly [];
|
|
6890
|
+
readonly name: "staking";
|
|
6891
|
+
readonly outputs: readonly [{
|
|
6892
|
+
readonly internalType: "address";
|
|
6893
|
+
readonly name: "";
|
|
6894
|
+
readonly type: "address";
|
|
6895
|
+
}];
|
|
6896
|
+
readonly stateMutability: "view";
|
|
6897
|
+
readonly type: "function";
|
|
6863
6898
|
}, {
|
|
6864
6899
|
readonly inputs: readonly [{
|
|
6865
6900
|
readonly internalType: "bytes4";
|
|
@@ -7107,6 +7142,21 @@ export declare const abis: {
|
|
|
7107
7142
|
}];
|
|
7108
7143
|
readonly name: "MarketAdapterUpdated";
|
|
7109
7144
|
readonly type: "event";
|
|
7145
|
+
}, {
|
|
7146
|
+
readonly anonymous: false;
|
|
7147
|
+
readonly inputs: readonly [{
|
|
7148
|
+
readonly indexed: true;
|
|
7149
|
+
readonly internalType: "address";
|
|
7150
|
+
readonly name: "oldStaking";
|
|
7151
|
+
readonly type: "address";
|
|
7152
|
+
}, {
|
|
7153
|
+
readonly indexed: true;
|
|
7154
|
+
readonly internalType: "address";
|
|
7155
|
+
readonly name: "newStaking";
|
|
7156
|
+
readonly type: "address";
|
|
7157
|
+
}];
|
|
7158
|
+
readonly name: "StakingUpdated";
|
|
7159
|
+
readonly type: "event";
|
|
7110
7160
|
}, {
|
|
7111
7161
|
readonly anonymous: false;
|
|
7112
7162
|
readonly inputs: readonly [{
|
|
@@ -7424,6 +7474,16 @@ export declare const abis: {
|
|
|
7424
7474
|
readonly outputs: readonly [];
|
|
7425
7475
|
readonly stateMutability: "nonpayable";
|
|
7426
7476
|
readonly type: "function";
|
|
7477
|
+
}, {
|
|
7478
|
+
readonly inputs: readonly [{
|
|
7479
|
+
readonly internalType: "address";
|
|
7480
|
+
readonly name: "_staking";
|
|
7481
|
+
readonly type: "address";
|
|
7482
|
+
}];
|
|
7483
|
+
readonly name: "setStaking";
|
|
7484
|
+
readonly outputs: readonly [];
|
|
7485
|
+
readonly stateMutability: "nonpayable";
|
|
7486
|
+
readonly type: "function";
|
|
7427
7487
|
}, {
|
|
7428
7488
|
readonly inputs: readonly [{
|
|
7429
7489
|
readonly internalType: "address";
|
|
@@ -7434,6 +7494,16 @@ export declare const abis: {
|
|
|
7434
7494
|
readonly outputs: readonly [];
|
|
7435
7495
|
readonly stateMutability: "nonpayable";
|
|
7436
7496
|
readonly type: "function";
|
|
7497
|
+
}, {
|
|
7498
|
+
readonly inputs: readonly [];
|
|
7499
|
+
readonly name: "staking";
|
|
7500
|
+
readonly outputs: readonly [{
|
|
7501
|
+
readonly internalType: "address";
|
|
7502
|
+
readonly name: "";
|
|
7503
|
+
readonly type: "address";
|
|
7504
|
+
}];
|
|
7505
|
+
readonly stateMutability: "view";
|
|
7506
|
+
readonly type: "function";
|
|
7437
7507
|
}, {
|
|
7438
7508
|
readonly inputs: readonly [{
|
|
7439
7509
|
readonly internalType: "bytes4";
|
|
@@ -7705,6 +7775,21 @@ export declare const abis: {
|
|
|
7705
7775
|
}];
|
|
7706
7776
|
readonly name: "NegRiskAdapterUpdated";
|
|
7707
7777
|
readonly type: "event";
|
|
7778
|
+
}, {
|
|
7779
|
+
readonly anonymous: false;
|
|
7780
|
+
readonly inputs: readonly [{
|
|
7781
|
+
readonly indexed: true;
|
|
7782
|
+
readonly internalType: "address";
|
|
7783
|
+
readonly name: "oldStaking";
|
|
7784
|
+
readonly type: "address";
|
|
7785
|
+
}, {
|
|
7786
|
+
readonly indexed: true;
|
|
7787
|
+
readonly internalType: "address";
|
|
7788
|
+
readonly name: "newStaking";
|
|
7789
|
+
readonly type: "address";
|
|
7790
|
+
}];
|
|
7791
|
+
readonly name: "StakingUpdated";
|
|
7792
|
+
readonly type: "event";
|
|
7708
7793
|
}, {
|
|
7709
7794
|
readonly anonymous: false;
|
|
7710
7795
|
readonly inputs: readonly [{
|
|
@@ -8026,6 +8111,16 @@ export declare const abis: {
|
|
|
8026
8111
|
readonly outputs: readonly [];
|
|
8027
8112
|
readonly stateMutability: "nonpayable";
|
|
8028
8113
|
readonly type: "function";
|
|
8114
|
+
}, {
|
|
8115
|
+
readonly inputs: readonly [{
|
|
8116
|
+
readonly internalType: "address";
|
|
8117
|
+
readonly name: "_staking";
|
|
8118
|
+
readonly type: "address";
|
|
8119
|
+
}];
|
|
8120
|
+
readonly name: "setStaking";
|
|
8121
|
+
readonly outputs: readonly [];
|
|
8122
|
+
readonly stateMutability: "nonpayable";
|
|
8123
|
+
readonly type: "function";
|
|
8029
8124
|
}, {
|
|
8030
8125
|
readonly inputs: readonly [{
|
|
8031
8126
|
readonly internalType: "address";
|
|
@@ -8036,6 +8131,16 @@ export declare const abis: {
|
|
|
8036
8131
|
readonly outputs: readonly [];
|
|
8037
8132
|
readonly stateMutability: "nonpayable";
|
|
8038
8133
|
readonly type: "function";
|
|
8134
|
+
}, {
|
|
8135
|
+
readonly inputs: readonly [];
|
|
8136
|
+
readonly name: "staking";
|
|
8137
|
+
readonly outputs: readonly [{
|
|
8138
|
+
readonly internalType: "address";
|
|
8139
|
+
readonly name: "";
|
|
8140
|
+
readonly type: "address";
|
|
8141
|
+
}];
|
|
8142
|
+
readonly stateMutability: "view";
|
|
8143
|
+
readonly type: "function";
|
|
8039
8144
|
}, {
|
|
8040
8145
|
readonly inputs: readonly [{
|
|
8041
8146
|
readonly internalType: "bytes4";
|
package/dist/generated.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../src/generated.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../src/generated.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcP,CAAC;AAEX,eAAO,MAAM,SAAS;;;CAGZ,CAAC"}
|
package/dist/views/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Address } from "viem";
|
|
2
2
|
export type ReadAccountSnapshot = {
|
|
3
3
|
portfolioValue: bigint;
|
|
4
4
|
collateralValue: bigint;
|
|
@@ -454,6 +454,26 @@ export type ReadBorrowLimits = {
|
|
|
454
454
|
healthFactor: bigint;
|
|
455
455
|
canBeLiquidated: boolean;
|
|
456
456
|
};
|
|
457
|
+
export type ReadHypotheticalBorrowCapacity = {
|
|
458
|
+
user: Address;
|
|
459
|
+
/** Current on-chain account snapshot (deposited positions only). */
|
|
460
|
+
current: ReadAccountSnapshot;
|
|
461
|
+
/** Aggregates computed from wallet-held ERC1155 positions. */
|
|
462
|
+
wallet: {
|
|
463
|
+
/** Wallet positionIds that had balance > 0 (aligned to balances). */
|
|
464
|
+
positionIds: bigint[];
|
|
465
|
+
balances: bigint[];
|
|
466
|
+
/** Sum(balance*price) in collateral base units (same units as Core accounting). */
|
|
467
|
+
portfolioValue: bigint;
|
|
468
|
+
/** Sum(balance*price*effectiveLtv) in collateral base units. */
|
|
469
|
+
collateralValue: bigint;
|
|
470
|
+
};
|
|
471
|
+
/** Current + wallet. */
|
|
472
|
+
potential: {
|
|
473
|
+
collateralValue: bigint;
|
|
474
|
+
maxBorrow: bigint;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
457
477
|
export type PreviewBorrow = {
|
|
458
478
|
user: Address;
|
|
459
479
|
borrowAmount: bigint;
|
|
@@ -474,9 +494,7 @@ export type PreviewBorrow = {
|
|
|
474
494
|
export declare function previewBorrow(params: {
|
|
475
495
|
core: {
|
|
476
496
|
read: {
|
|
477
|
-
|
|
478
|
-
getDebt: (args: readonly [Address]) => Promise<bigint>;
|
|
479
|
-
getMaxBorrow: (args: readonly [Address]) => Promise<bigint>;
|
|
497
|
+
getAccountSummary: (args: readonly [Address]) => Promise<unknown>;
|
|
480
498
|
getHealthFactor: (args: readonly [Address]) => Promise<unknown>;
|
|
481
499
|
};
|
|
482
500
|
};
|
|
@@ -523,9 +541,7 @@ export declare function previewRepay(params: {
|
|
|
523
541
|
export declare function readBorrowLimits(params: {
|
|
524
542
|
core: {
|
|
525
543
|
read: {
|
|
526
|
-
|
|
527
|
-
getDebt: (args: readonly [Address]) => Promise<bigint>;
|
|
528
|
-
getMaxBorrow: (args: readonly [Address]) => Promise<bigint>;
|
|
544
|
+
getAccountSummary: (args: readonly [Address]) => Promise<unknown>;
|
|
529
545
|
getHealthFactor: (args: readonly [Address]) => Promise<unknown>;
|
|
530
546
|
};
|
|
531
547
|
};
|
|
@@ -544,4 +560,36 @@ export declare function readManyBorrowLimits(params: {
|
|
|
544
560
|
users: readonly Address[];
|
|
545
561
|
chunkSize?: number;
|
|
546
562
|
}): Promise<ReadBorrowLimits[]>;
|
|
563
|
+
/**
|
|
564
|
+
* Computes current vs potential borrowing capacity.
|
|
565
|
+
*
|
|
566
|
+
* - `current` comes from Core.getAccountSummary(user) (deposited positions only).
|
|
567
|
+
* - `wallet` is computed by reading ERC1155 wallet balances for the provided `walletPositionIds`
|
|
568
|
+
* and applying VarlaOracle pricing + VarlaCore LTV rules.
|
|
569
|
+
*
|
|
570
|
+
* This helper exists to power UI flows like “Deposit Positions” where you want to show:
|
|
571
|
+
* - Current max loan (already deposited)
|
|
572
|
+
* - Potential max loan (if the user also deposits their wallet positions)
|
|
573
|
+
*/
|
|
574
|
+
export declare function readHypotheticalBorrowCapacity(params: {
|
|
575
|
+
core: {
|
|
576
|
+
address: Address;
|
|
577
|
+
read: {
|
|
578
|
+
getAccountSummary: (args: readonly [Address]) => Promise<unknown>;
|
|
579
|
+
getDefaultLtvConfig: () => Promise<unknown>;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
oracle: {
|
|
583
|
+
address: Address;
|
|
584
|
+
};
|
|
585
|
+
positionsToken: {
|
|
586
|
+
address: Address;
|
|
587
|
+
};
|
|
588
|
+
client: {
|
|
589
|
+
multicall: (args: any) => Promise<any>;
|
|
590
|
+
};
|
|
591
|
+
user: Address;
|
|
592
|
+
walletPositionIds: readonly bigint[];
|
|
593
|
+
chunkSize?: number;
|
|
594
|
+
}): Promise<ReadHypotheticalBorrowCapacity>;
|
|
547
595
|
//# sourceMappingURL=core.d.ts.map
|
package/dist/views/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/views/core.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAIpC,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,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AAE,CAAC;IACrC,MAAM,EAAE;QAAE,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;IACnD,IAAI,EAAE,OAAO,CAAC;IACd,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,8BAA8B,CAAC,CA4I1C"}
|
package/dist/views/core.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Note: explicit .js extension is required for Node ESM resolution.
|
|
2
|
+
import { erc1155Abi } from "viem";
|
|
2
3
|
import { multicallChunks } from "../batch.js";
|
|
3
4
|
import { abis } from "../generated.js";
|
|
4
5
|
/**
|
|
@@ -536,19 +537,17 @@ export async function previewRepay(params) {
|
|
|
536
537
|
/**
|
|
537
538
|
* A small convenience bundle for frontends/backends.
|
|
538
539
|
*/
|
|
539
|
-
// wraps: VarlaCore.
|
|
540
|
+
// wraps: VarlaCore.getAccountSummary,VarlaCore.getHealthFactor
|
|
540
541
|
export async function readBorrowLimits(params) {
|
|
541
|
-
const [
|
|
542
|
-
params.core
|
|
543
|
-
params.core.read.getDebt([params.user]),
|
|
544
|
-
params.core.read.getMaxBorrow([params.user]),
|
|
542
|
+
const [snap, hf] = await Promise.all([
|
|
543
|
+
readAccountSnapshot({ core: params.core, user: params.user }),
|
|
545
544
|
readHealthFactor({ core: params.core, user: params.user }),
|
|
546
545
|
]);
|
|
547
546
|
return {
|
|
548
547
|
user: params.user,
|
|
549
|
-
collateralValue,
|
|
550
|
-
debt,
|
|
551
|
-
maxBorrow,
|
|
548
|
+
collateralValue: snap.collateralValue,
|
|
549
|
+
debt: snap.debt,
|
|
550
|
+
maxBorrow: snap.maxBorrow,
|
|
552
551
|
healthFactor: hf.healthFactor,
|
|
553
552
|
canBeLiquidated: hf.canBeLiquidated,
|
|
554
553
|
};
|
|
@@ -556,7 +555,7 @@ export async function readBorrowLimits(params) {
|
|
|
556
555
|
/**
|
|
557
556
|
* Multicall-chunked version of `readBorrowLimits`.
|
|
558
557
|
*/
|
|
559
|
-
// wraps: VarlaCore.
|
|
558
|
+
// wraps: VarlaCore.getAccountSummary,VarlaCore.getHealthFactor
|
|
560
559
|
export async function readManyBorrowLimits(params) {
|
|
561
560
|
const chunkSize = params.chunkSize ?? 256;
|
|
562
561
|
if (params.users.length === 0)
|
|
@@ -565,19 +564,7 @@ export async function readManyBorrowLimits(params) {
|
|
|
565
564
|
{
|
|
566
565
|
address: params.core.address,
|
|
567
566
|
abi: abis.VARLACORE_ABI,
|
|
568
|
-
functionName: "
|
|
569
|
-
args: [user],
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
address: params.core.address,
|
|
573
|
-
abi: abis.VARLACORE_ABI,
|
|
574
|
-
functionName: "getDebt",
|
|
575
|
-
args: [user],
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
address: params.core.address,
|
|
579
|
-
abi: abis.VARLACORE_ABI,
|
|
580
|
-
functionName: "getMaxBorrow",
|
|
567
|
+
functionName: "getAccountSummary",
|
|
581
568
|
args: [user],
|
|
582
569
|
},
|
|
583
570
|
{
|
|
@@ -593,26 +580,27 @@ export async function readManyBorrowLimits(params) {
|
|
|
593
580
|
chunkSize,
|
|
594
581
|
});
|
|
595
582
|
const out = [];
|
|
596
|
-
const stride =
|
|
583
|
+
const stride = 2;
|
|
597
584
|
for (let i = 0; i < params.users.length; i++) {
|
|
598
585
|
const base = i * stride;
|
|
599
586
|
const r0 = res[base + 0];
|
|
600
587
|
const r1 = res[base + 1];
|
|
601
|
-
const r2 = res[base + 2];
|
|
602
|
-
const r3 = res[base + 3];
|
|
603
588
|
if (r0.status !== "success") {
|
|
604
|
-
throw new Error(`Core
|
|
589
|
+
throw new Error(`Core getAccountSummary multicall failed: ${String(r0.error ?? "unknown")}`);
|
|
605
590
|
}
|
|
606
591
|
if (r1.status !== "success") {
|
|
607
|
-
throw new Error(`Core
|
|
592
|
+
throw new Error(`Core getHealthFactor multicall failed: ${String(r1.error ?? "unknown")}`);
|
|
608
593
|
}
|
|
609
|
-
|
|
610
|
-
|
|
594
|
+
const snapRaw = r0.result;
|
|
595
|
+
const collateralValue = snapRaw.collateralValue ?? snapRaw[1];
|
|
596
|
+
const debt = snapRaw.debt ?? snapRaw[2];
|
|
597
|
+
const maxBorrow = snapRaw.maxBorrow ?? snapRaw[4];
|
|
598
|
+
if (typeof collateralValue !== "bigint" ||
|
|
599
|
+
typeof debt !== "bigint" ||
|
|
600
|
+
typeof maxBorrow !== "bigint") {
|
|
601
|
+
throw new Error("Unexpected getAccountSummary() return shape");
|
|
611
602
|
}
|
|
612
|
-
|
|
613
|
-
throw new Error(`Core getHealthFactor multicall failed: ${String(r3.error ?? "unknown")}`);
|
|
614
|
-
}
|
|
615
|
-
const hfRaw = r3.result;
|
|
603
|
+
const hfRaw = r1.result;
|
|
616
604
|
const healthFactor = hfRaw.healthFactor ?? hfRaw[0];
|
|
617
605
|
const canBeLiquidated = hfRaw.canBeLiquidated ?? hfRaw[1];
|
|
618
606
|
if (typeof healthFactor !== "bigint" || typeof canBeLiquidated !== "boolean") {
|
|
@@ -620,12 +608,172 @@ export async function readManyBorrowLimits(params) {
|
|
|
620
608
|
}
|
|
621
609
|
out.push({
|
|
622
610
|
user: params.users[i],
|
|
623
|
-
collateralValue
|
|
624
|
-
debt
|
|
625
|
-
maxBorrow
|
|
611
|
+
collateralValue,
|
|
612
|
+
debt,
|
|
613
|
+
maxBorrow,
|
|
626
614
|
healthFactor,
|
|
627
615
|
canBeLiquidated,
|
|
628
616
|
});
|
|
629
617
|
}
|
|
630
618
|
return out;
|
|
631
619
|
}
|
|
620
|
+
function _normalizeOraclePositionSnapshot(raw, positionId) {
|
|
621
|
+
const r = raw;
|
|
622
|
+
const priceOk = r.priceOk ?? r[0];
|
|
623
|
+
const priceE8 = r.priceE8 ?? r[1];
|
|
624
|
+
const manuallyInvalidated = r.manuallyInvalidated ?? r[2];
|
|
625
|
+
const riskTierRaw = r.riskTier ?? r[3];
|
|
626
|
+
const earlyClosureFactorWad = r.earlyClosureFactorWad ?? r[4];
|
|
627
|
+
if (typeof priceOk !== "boolean" ||
|
|
628
|
+
typeof priceE8 !== "bigint" ||
|
|
629
|
+
typeof manuallyInvalidated !== "boolean" ||
|
|
630
|
+
(typeof riskTierRaw !== "number" && typeof riskTierRaw !== "bigint") ||
|
|
631
|
+
typeof earlyClosureFactorWad !== "bigint") {
|
|
632
|
+
throw new Error("Unexpected getPositionSnapshot() return shape");
|
|
633
|
+
}
|
|
634
|
+
return {
|
|
635
|
+
positionId,
|
|
636
|
+
priceOk,
|
|
637
|
+
priceE8,
|
|
638
|
+
manuallyInvalidated,
|
|
639
|
+
riskTier: Number(riskTierRaw),
|
|
640
|
+
earlyClosureFactorWad,
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
function _tierDefaultLtv(defaultLtv, riskTier) {
|
|
644
|
+
if (riskTier === 0)
|
|
645
|
+
return defaultLtv.conservative;
|
|
646
|
+
if (riskTier === 1)
|
|
647
|
+
return defaultLtv.moderate;
|
|
648
|
+
return defaultLtv.risk;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Computes current vs potential borrowing capacity.
|
|
652
|
+
*
|
|
653
|
+
* - `current` comes from Core.getAccountSummary(user) (deposited positions only).
|
|
654
|
+
* - `wallet` is computed by reading ERC1155 wallet balances for the provided `walletPositionIds`
|
|
655
|
+
* and applying VarlaOracle pricing + VarlaCore LTV rules.
|
|
656
|
+
*
|
|
657
|
+
* This helper exists to power UI flows like “Deposit Positions” where you want to show:
|
|
658
|
+
* - Current max loan (already deposited)
|
|
659
|
+
* - Potential max loan (if the user also deposits their wallet positions)
|
|
660
|
+
*/
|
|
661
|
+
export async function readHypotheticalBorrowCapacity(params) {
|
|
662
|
+
const chunkSize = params.chunkSize ?? 256;
|
|
663
|
+
const [current, defaultLtv] = await Promise.all([
|
|
664
|
+
readAccountSnapshot({ core: params.core, user: params.user }),
|
|
665
|
+
readDefaultLtvConfig({ core: params.core }),
|
|
666
|
+
]);
|
|
667
|
+
// Fast path: no wallet ids.
|
|
668
|
+
if (params.walletPositionIds.length === 0) {
|
|
669
|
+
const potentialMaxBorrow = current.collateralValue > current.debt ? current.collateralValue - current.debt : 0n;
|
|
670
|
+
return {
|
|
671
|
+
user: params.user,
|
|
672
|
+
current,
|
|
673
|
+
wallet: { positionIds: [], balances: [], portfolioValue: 0n, collateralValue: 0n },
|
|
674
|
+
potential: { collateralValue: current.collateralValue, maxBorrow: potentialMaxBorrow },
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
// 1) Wallet balances (ERC1155 balanceOf)
|
|
678
|
+
const balCalls = params.walletPositionIds.map((pid) => ({
|
|
679
|
+
address: params.positionsToken.address,
|
|
680
|
+
abi: erc1155Abi,
|
|
681
|
+
functionName: "balanceOf",
|
|
682
|
+
args: [params.user, pid],
|
|
683
|
+
}));
|
|
684
|
+
const balRes = await multicallChunks({
|
|
685
|
+
client: params.client,
|
|
686
|
+
contracts: balCalls,
|
|
687
|
+
chunkSize,
|
|
688
|
+
});
|
|
689
|
+
const heldIds = [];
|
|
690
|
+
const heldBals = [];
|
|
691
|
+
for (let i = 0; i < balRes.length; i++) {
|
|
692
|
+
const r = balRes[i];
|
|
693
|
+
if (r.status !== "success") {
|
|
694
|
+
throw new Error(`ERC1155 balanceOf multicall failed: ${String(r.error ?? "unknown")}`);
|
|
695
|
+
}
|
|
696
|
+
const bal = r.result;
|
|
697
|
+
if (typeof bal !== "bigint")
|
|
698
|
+
throw new Error("Unexpected ERC1155 balanceOf return type");
|
|
699
|
+
if (bal > 0n) {
|
|
700
|
+
heldIds.push(params.walletPositionIds[i]);
|
|
701
|
+
heldBals.push(bal);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
// No wallet positions held.
|
|
705
|
+
if (heldIds.length === 0) {
|
|
706
|
+
const potentialMaxBorrow = current.collateralValue > current.debt ? current.collateralValue - current.debt : 0n;
|
|
707
|
+
return {
|
|
708
|
+
user: params.user,
|
|
709
|
+
current,
|
|
710
|
+
wallet: { positionIds: [], balances: [], portfolioValue: 0n, collateralValue: 0n },
|
|
711
|
+
potential: { collateralValue: current.collateralValue, maxBorrow: potentialMaxBorrow },
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
// 2) Oracle snapshots + Core LTV overrides
|
|
715
|
+
const snapCalls = heldIds.map((pid) => ({
|
|
716
|
+
address: params.oracle.address,
|
|
717
|
+
abi: abis.VARLAORACLE_ABI,
|
|
718
|
+
functionName: "getPositionSnapshot",
|
|
719
|
+
args: [pid],
|
|
720
|
+
}));
|
|
721
|
+
const ovCalls = heldIds.map((pid) => ({
|
|
722
|
+
address: params.core.address,
|
|
723
|
+
abi: abis.VARLACORE_ABI,
|
|
724
|
+
functionName: "getPositionLtvOverride",
|
|
725
|
+
args: [pid],
|
|
726
|
+
}));
|
|
727
|
+
const [snapRes, ovRes] = await Promise.all([
|
|
728
|
+
multicallChunks({ client: params.client, contracts: snapCalls, chunkSize }),
|
|
729
|
+
multicallChunks({ client: params.client, contracts: ovCalls, chunkSize }),
|
|
730
|
+
]);
|
|
731
|
+
const WAD = 1000000000000000000n;
|
|
732
|
+
const E8 = 100000000n;
|
|
733
|
+
let walletPortfolioValue = 0n;
|
|
734
|
+
let walletCollateralValue = 0n;
|
|
735
|
+
for (let i = 0; i < heldIds.length; i++) {
|
|
736
|
+
const snapR = snapRes[i];
|
|
737
|
+
if (snapR.status !== "success") {
|
|
738
|
+
throw new Error(`Oracle getPositionSnapshot multicall failed: ${String(snapR.error ?? "unknown")}`);
|
|
739
|
+
}
|
|
740
|
+
const snap = _normalizeOraclePositionSnapshot(snapR.result, heldIds[i]);
|
|
741
|
+
const ovR = ovRes[i];
|
|
742
|
+
if (ovR.status !== "success") {
|
|
743
|
+
throw new Error(`Core getPositionLtvOverride multicall failed: ${String(ovR.error ?? "unknown")}`);
|
|
744
|
+
}
|
|
745
|
+
const ovRaw = ovR.result;
|
|
746
|
+
const isSet = ovRaw.isSet ?? ovRaw[0];
|
|
747
|
+
const ltv = ovRaw.ltv ?? ovRaw[1];
|
|
748
|
+
if (typeof isSet !== "boolean" || typeof ltv !== "bigint") {
|
|
749
|
+
throw new Error("Unexpected getPositionLtvOverride() return shape");
|
|
750
|
+
}
|
|
751
|
+
// Mirror Core accounting semantics.
|
|
752
|
+
if (snap.manuallyInvalidated)
|
|
753
|
+
continue;
|
|
754
|
+
if (!snap.priceOk)
|
|
755
|
+
continue;
|
|
756
|
+
const bal = heldBals[i];
|
|
757
|
+
const pv = (bal * snap.priceE8) / E8;
|
|
758
|
+
if (pv === 0n)
|
|
759
|
+
continue;
|
|
760
|
+
walletPortfolioValue += pv;
|
|
761
|
+
const baseLtv = isSet ? ltv : _tierDefaultLtv(defaultLtv, snap.riskTier);
|
|
762
|
+
const effectiveLtv = (baseLtv * snap.earlyClosureFactorWad) / WAD;
|
|
763
|
+
const cv = (pv * effectiveLtv) / WAD;
|
|
764
|
+
walletCollateralValue += cv;
|
|
765
|
+
}
|
|
766
|
+
const potentialCollateralValue = current.collateralValue + walletCollateralValue;
|
|
767
|
+
const potentialMaxBorrow = potentialCollateralValue > current.debt ? potentialCollateralValue - current.debt : 0n;
|
|
768
|
+
return {
|
|
769
|
+
user: params.user,
|
|
770
|
+
current,
|
|
771
|
+
wallet: {
|
|
772
|
+
positionIds: heldIds,
|
|
773
|
+
balances: heldBals,
|
|
774
|
+
portfolioValue: walletPortfolioValue,
|
|
775
|
+
collateralValue: walletCollateralValue,
|
|
776
|
+
},
|
|
777
|
+
potential: { collateralValue: potentialCollateralValue, maxBorrow: potentialMaxBorrow },
|
|
778
|
+
};
|
|
779
|
+
}
|