@defisaver/positions-sdk 2.1.71-aave-v4-2-dev → 2.1.72-aave-v4-dev
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/cjs/config/contracts.d.ts +17 -1
- package/cjs/config/contracts.js +2 -2
- package/cjs/contracts.d.ts +340 -0
- package/cjs/markets/aave/marketAssets.js +1 -1
- package/cjs/staking/eligibility.d.ts +6 -0
- package/cjs/staking/eligibility.js +37 -19
- package/cjs/staking/staking.js +4 -2
- package/cjs/types/common.d.ts +2 -1
- package/cjs/types/common.js +1 -0
- package/esm/config/contracts.d.ts +17 -1
- package/esm/config/contracts.js +2 -2
- package/esm/contracts.d.ts +340 -0
- package/esm/markets/aave/marketAssets.js +1 -1
- package/esm/staking/eligibility.d.ts +6 -0
- package/esm/staking/eligibility.js +35 -18
- package/esm/staking/staking.js +4 -2
- package/esm/types/common.d.ts +2 -1
- package/esm/types/common.js +1 -0
- package/package.json +2 -2
- package/src/config/contracts.ts +2 -2
- package/src/markets/aave/marketAssets.ts +1 -1
- package/src/staking/eligibility.ts +67 -15
- package/src/staking/staking.ts +3 -2
- package/src/types/common.ts +1 -0
package/esm/contracts.d.ts
CHANGED
|
@@ -545672,6 +545672,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
545672
545672
|
readonly internalType: "uint256";
|
|
545673
545673
|
readonly name: "totalDebt";
|
|
545674
545674
|
readonly type: "uint256";
|
|
545675
|
+
}, {
|
|
545676
|
+
readonly internalType: "uint256";
|
|
545677
|
+
readonly name: "totalDrawnShares";
|
|
545678
|
+
readonly type: "uint256";
|
|
545679
|
+
}, {
|
|
545680
|
+
readonly internalType: "uint256";
|
|
545681
|
+
readonly name: "totalPremiumShares";
|
|
545682
|
+
readonly type: "uint256";
|
|
545675
545683
|
}, {
|
|
545676
545684
|
readonly internalType: "uint256";
|
|
545677
545685
|
readonly name: "swept";
|
|
@@ -545759,6 +545767,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
545759
545767
|
readonly internalType: "uint256";
|
|
545760
545768
|
readonly name: "totalDebt";
|
|
545761
545769
|
readonly type: "uint256";
|
|
545770
|
+
}, {
|
|
545771
|
+
readonly internalType: "uint256";
|
|
545772
|
+
readonly name: "totalDrawnShares";
|
|
545773
|
+
readonly type: "uint256";
|
|
545774
|
+
}, {
|
|
545775
|
+
readonly internalType: "uint256";
|
|
545776
|
+
readonly name: "totalPremiumShares";
|
|
545777
|
+
readonly type: "uint256";
|
|
545762
545778
|
}, {
|
|
545763
545779
|
readonly internalType: "uint256";
|
|
545764
545780
|
readonly name: "swept";
|
|
@@ -547217,6 +547233,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
547217
547233
|
readonly internalType: "uint256";
|
|
547218
547234
|
readonly name: "totalDebt";
|
|
547219
547235
|
readonly type: "uint256";
|
|
547236
|
+
}, {
|
|
547237
|
+
readonly internalType: "uint256";
|
|
547238
|
+
readonly name: "totalDrawnShares";
|
|
547239
|
+
readonly type: "uint256";
|
|
547240
|
+
}, {
|
|
547241
|
+
readonly internalType: "uint256";
|
|
547242
|
+
readonly name: "totalPremiumShares";
|
|
547243
|
+
readonly type: "uint256";
|
|
547220
547244
|
}, {
|
|
547221
547245
|
readonly internalType: "uint256";
|
|
547222
547246
|
readonly name: "swept";
|
|
@@ -547304,6 +547328,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
547304
547328
|
readonly internalType: "uint256";
|
|
547305
547329
|
readonly name: "totalDebt";
|
|
547306
547330
|
readonly type: "uint256";
|
|
547331
|
+
}, {
|
|
547332
|
+
readonly internalType: "uint256";
|
|
547333
|
+
readonly name: "totalDrawnShares";
|
|
547334
|
+
readonly type: "uint256";
|
|
547335
|
+
}, {
|
|
547336
|
+
readonly internalType: "uint256";
|
|
547337
|
+
readonly name: "totalPremiumShares";
|
|
547338
|
+
readonly type: "uint256";
|
|
547307
547339
|
}, {
|
|
547308
547340
|
readonly internalType: "uint256";
|
|
547309
547341
|
readonly name: "swept";
|
|
@@ -548745,6 +548777,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
548745
548777
|
readonly internalType: "uint256";
|
|
548746
548778
|
readonly name: "totalDebt";
|
|
548747
548779
|
readonly type: "uint256";
|
|
548780
|
+
}, {
|
|
548781
|
+
readonly internalType: "uint256";
|
|
548782
|
+
readonly name: "totalDrawnShares";
|
|
548783
|
+
readonly type: "uint256";
|
|
548784
|
+
}, {
|
|
548785
|
+
readonly internalType: "uint256";
|
|
548786
|
+
readonly name: "totalPremiumShares";
|
|
548787
|
+
readonly type: "uint256";
|
|
548748
548788
|
}, {
|
|
548749
548789
|
readonly internalType: "uint256";
|
|
548750
548790
|
readonly name: "swept";
|
|
@@ -548832,6 +548872,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
548832
548872
|
readonly internalType: "uint256";
|
|
548833
548873
|
readonly name: "totalDebt";
|
|
548834
548874
|
readonly type: "uint256";
|
|
548875
|
+
}, {
|
|
548876
|
+
readonly internalType: "uint256";
|
|
548877
|
+
readonly name: "totalDrawnShares";
|
|
548878
|
+
readonly type: "uint256";
|
|
548879
|
+
}, {
|
|
548880
|
+
readonly internalType: "uint256";
|
|
548881
|
+
readonly name: "totalPremiumShares";
|
|
548882
|
+
readonly type: "uint256";
|
|
548835
548883
|
}, {
|
|
548836
548884
|
readonly internalType: "uint256";
|
|
548837
548885
|
readonly name: "swept";
|
|
@@ -550296,6 +550344,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
550296
550344
|
readonly internalType: "uint256";
|
|
550297
550345
|
readonly name: "totalDebt";
|
|
550298
550346
|
readonly type: "uint256";
|
|
550347
|
+
}, {
|
|
550348
|
+
readonly internalType: "uint256";
|
|
550349
|
+
readonly name: "totalDrawnShares";
|
|
550350
|
+
readonly type: "uint256";
|
|
550351
|
+
}, {
|
|
550352
|
+
readonly internalType: "uint256";
|
|
550353
|
+
readonly name: "totalPremiumShares";
|
|
550354
|
+
readonly type: "uint256";
|
|
550299
550355
|
}, {
|
|
550300
550356
|
readonly internalType: "uint256";
|
|
550301
550357
|
readonly name: "swept";
|
|
@@ -550383,6 +550439,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
550383
550439
|
readonly internalType: "uint256";
|
|
550384
550440
|
readonly name: "totalDebt";
|
|
550385
550441
|
readonly type: "uint256";
|
|
550442
|
+
}, {
|
|
550443
|
+
readonly internalType: "uint256";
|
|
550444
|
+
readonly name: "totalDrawnShares";
|
|
550445
|
+
readonly type: "uint256";
|
|
550446
|
+
}, {
|
|
550447
|
+
readonly internalType: "uint256";
|
|
550448
|
+
readonly name: "totalPremiumShares";
|
|
550449
|
+
readonly type: "uint256";
|
|
550386
550450
|
}, {
|
|
550387
550451
|
readonly internalType: "uint256";
|
|
550388
550452
|
readonly name: "swept";
|
|
@@ -551828,6 +551892,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
551828
551892
|
readonly internalType: "uint256";
|
|
551829
551893
|
readonly name: "totalDebt";
|
|
551830
551894
|
readonly type: "uint256";
|
|
551895
|
+
}, {
|
|
551896
|
+
readonly internalType: "uint256";
|
|
551897
|
+
readonly name: "totalDrawnShares";
|
|
551898
|
+
readonly type: "uint256";
|
|
551899
|
+
}, {
|
|
551900
|
+
readonly internalType: "uint256";
|
|
551901
|
+
readonly name: "totalPremiumShares";
|
|
551902
|
+
readonly type: "uint256";
|
|
551831
551903
|
}, {
|
|
551832
551904
|
readonly internalType: "uint256";
|
|
551833
551905
|
readonly name: "swept";
|
|
@@ -551915,6 +551987,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
551915
551987
|
readonly internalType: "uint256";
|
|
551916
551988
|
readonly name: "totalDebt";
|
|
551917
551989
|
readonly type: "uint256";
|
|
551990
|
+
}, {
|
|
551991
|
+
readonly internalType: "uint256";
|
|
551992
|
+
readonly name: "totalDrawnShares";
|
|
551993
|
+
readonly type: "uint256";
|
|
551994
|
+
}, {
|
|
551995
|
+
readonly internalType: "uint256";
|
|
551996
|
+
readonly name: "totalPremiumShares";
|
|
551997
|
+
readonly type: "uint256";
|
|
551918
551998
|
}, {
|
|
551919
551999
|
readonly internalType: "uint256";
|
|
551920
552000
|
readonly name: "swept";
|
|
@@ -553369,6 +553449,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
553369
553449
|
readonly internalType: "uint256";
|
|
553370
553450
|
readonly name: "totalDebt";
|
|
553371
553451
|
readonly type: "uint256";
|
|
553452
|
+
}, {
|
|
553453
|
+
readonly internalType: "uint256";
|
|
553454
|
+
readonly name: "totalDrawnShares";
|
|
553455
|
+
readonly type: "uint256";
|
|
553456
|
+
}, {
|
|
553457
|
+
readonly internalType: "uint256";
|
|
553458
|
+
readonly name: "totalPremiumShares";
|
|
553459
|
+
readonly type: "uint256";
|
|
553372
553460
|
}, {
|
|
553373
553461
|
readonly internalType: "uint256";
|
|
553374
553462
|
readonly name: "swept";
|
|
@@ -553456,6 +553544,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
553456
553544
|
readonly internalType: "uint256";
|
|
553457
553545
|
readonly name: "totalDebt";
|
|
553458
553546
|
readonly type: "uint256";
|
|
553547
|
+
}, {
|
|
553548
|
+
readonly internalType: "uint256";
|
|
553549
|
+
readonly name: "totalDrawnShares";
|
|
553550
|
+
readonly type: "uint256";
|
|
553551
|
+
}, {
|
|
553552
|
+
readonly internalType: "uint256";
|
|
553553
|
+
readonly name: "totalPremiumShares";
|
|
553554
|
+
readonly type: "uint256";
|
|
553459
553555
|
}, {
|
|
553460
553556
|
readonly internalType: "uint256";
|
|
553461
553557
|
readonly name: "swept";
|
|
@@ -554763,6 +554859,8 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
554763
554859
|
totalDrawn: bigint;
|
|
554764
554860
|
totalPremium: bigint;
|
|
554765
554861
|
totalDebt: bigint;
|
|
554862
|
+
totalDrawnShares: bigint;
|
|
554863
|
+
totalPremiumShares: bigint;
|
|
554766
554864
|
swept: bigint;
|
|
554767
554865
|
liquidityFee: number;
|
|
554768
554866
|
drawnIndex: bigint;
|
|
@@ -554915,6 +555013,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
554915
555013
|
readonly internalType: "uint256";
|
|
554916
555014
|
readonly name: "totalDebt";
|
|
554917
555015
|
readonly type: "uint256";
|
|
555016
|
+
}, {
|
|
555017
|
+
readonly internalType: "uint256";
|
|
555018
|
+
readonly name: "totalDrawnShares";
|
|
555019
|
+
readonly type: "uint256";
|
|
555020
|
+
}, {
|
|
555021
|
+
readonly internalType: "uint256";
|
|
555022
|
+
readonly name: "totalPremiumShares";
|
|
555023
|
+
readonly type: "uint256";
|
|
554918
555024
|
}, {
|
|
554919
555025
|
readonly internalType: "uint256";
|
|
554920
555026
|
readonly name: "swept";
|
|
@@ -555002,6 +555108,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
555002
555108
|
readonly internalType: "uint256";
|
|
555003
555109
|
readonly name: "totalDebt";
|
|
555004
555110
|
readonly type: "uint256";
|
|
555111
|
+
}, {
|
|
555112
|
+
readonly internalType: "uint256";
|
|
555113
|
+
readonly name: "totalDrawnShares";
|
|
555114
|
+
readonly type: "uint256";
|
|
555115
|
+
}, {
|
|
555116
|
+
readonly internalType: "uint256";
|
|
555117
|
+
readonly name: "totalPremiumShares";
|
|
555118
|
+
readonly type: "uint256";
|
|
555005
555119
|
}, {
|
|
555006
555120
|
readonly internalType: "uint256";
|
|
555007
555121
|
readonly name: "swept";
|
|
@@ -556309,6 +556423,8 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
556309
556423
|
totalDrawn: bigint;
|
|
556310
556424
|
totalPremium: bigint;
|
|
556311
556425
|
totalDebt: bigint;
|
|
556426
|
+
totalDrawnShares: bigint;
|
|
556427
|
+
totalPremiumShares: bigint;
|
|
556312
556428
|
swept: bigint;
|
|
556313
556429
|
liquidityFee: number;
|
|
556314
556430
|
drawnIndex: bigint;
|
|
@@ -556461,6 +556577,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
556461
556577
|
readonly internalType: "uint256";
|
|
556462
556578
|
readonly name: "totalDebt";
|
|
556463
556579
|
readonly type: "uint256";
|
|
556580
|
+
}, {
|
|
556581
|
+
readonly internalType: "uint256";
|
|
556582
|
+
readonly name: "totalDrawnShares";
|
|
556583
|
+
readonly type: "uint256";
|
|
556584
|
+
}, {
|
|
556585
|
+
readonly internalType: "uint256";
|
|
556586
|
+
readonly name: "totalPremiumShares";
|
|
556587
|
+
readonly type: "uint256";
|
|
556464
556588
|
}, {
|
|
556465
556589
|
readonly internalType: "uint256";
|
|
556466
556590
|
readonly name: "swept";
|
|
@@ -556548,6 +556672,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
556548
556672
|
readonly internalType: "uint256";
|
|
556549
556673
|
readonly name: "totalDebt";
|
|
556550
556674
|
readonly type: "uint256";
|
|
556675
|
+
}, {
|
|
556676
|
+
readonly internalType: "uint256";
|
|
556677
|
+
readonly name: "totalDrawnShares";
|
|
556678
|
+
readonly type: "uint256";
|
|
556679
|
+
}, {
|
|
556680
|
+
readonly internalType: "uint256";
|
|
556681
|
+
readonly name: "totalPremiumShares";
|
|
556682
|
+
readonly type: "uint256";
|
|
556551
556683
|
}, {
|
|
556552
556684
|
readonly internalType: "uint256";
|
|
556553
556685
|
readonly name: "swept";
|
|
@@ -558012,6 +558144,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
558012
558144
|
readonly internalType: "uint256";
|
|
558013
558145
|
readonly name: "totalDebt";
|
|
558014
558146
|
readonly type: "uint256";
|
|
558147
|
+
}, {
|
|
558148
|
+
readonly internalType: "uint256";
|
|
558149
|
+
readonly name: "totalDrawnShares";
|
|
558150
|
+
readonly type: "uint256";
|
|
558151
|
+
}, {
|
|
558152
|
+
readonly internalType: "uint256";
|
|
558153
|
+
readonly name: "totalPremiumShares";
|
|
558154
|
+
readonly type: "uint256";
|
|
558015
558155
|
}, {
|
|
558016
558156
|
readonly internalType: "uint256";
|
|
558017
558157
|
readonly name: "swept";
|
|
@@ -558099,6 +558239,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
558099
558239
|
readonly internalType: "uint256";
|
|
558100
558240
|
readonly name: "totalDebt";
|
|
558101
558241
|
readonly type: "uint256";
|
|
558242
|
+
}, {
|
|
558243
|
+
readonly internalType: "uint256";
|
|
558244
|
+
readonly name: "totalDrawnShares";
|
|
558245
|
+
readonly type: "uint256";
|
|
558246
|
+
}, {
|
|
558247
|
+
readonly internalType: "uint256";
|
|
558248
|
+
readonly name: "totalPremiumShares";
|
|
558249
|
+
readonly type: "uint256";
|
|
558102
558250
|
}, {
|
|
558103
558251
|
readonly internalType: "uint256";
|
|
558104
558252
|
readonly name: "swept";
|
|
@@ -559563,6 +559711,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
559563
559711
|
readonly internalType: "uint256";
|
|
559564
559712
|
readonly name: "totalDebt";
|
|
559565
559713
|
readonly type: "uint256";
|
|
559714
|
+
}, {
|
|
559715
|
+
readonly internalType: "uint256";
|
|
559716
|
+
readonly name: "totalDrawnShares";
|
|
559717
|
+
readonly type: "uint256";
|
|
559718
|
+
}, {
|
|
559719
|
+
readonly internalType: "uint256";
|
|
559720
|
+
readonly name: "totalPremiumShares";
|
|
559721
|
+
readonly type: "uint256";
|
|
559566
559722
|
}, {
|
|
559567
559723
|
readonly internalType: "uint256";
|
|
559568
559724
|
readonly name: "swept";
|
|
@@ -559650,6 +559806,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
559650
559806
|
readonly internalType: "uint256";
|
|
559651
559807
|
readonly name: "totalDebt";
|
|
559652
559808
|
readonly type: "uint256";
|
|
559809
|
+
}, {
|
|
559810
|
+
readonly internalType: "uint256";
|
|
559811
|
+
readonly name: "totalDrawnShares";
|
|
559812
|
+
readonly type: "uint256";
|
|
559813
|
+
}, {
|
|
559814
|
+
readonly internalType: "uint256";
|
|
559815
|
+
readonly name: "totalPremiumShares";
|
|
559816
|
+
readonly type: "uint256";
|
|
559653
559817
|
}, {
|
|
559654
559818
|
readonly internalType: "uint256";
|
|
559655
559819
|
readonly name: "swept";
|
|
@@ -561136,6 +561300,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
561136
561300
|
readonly internalType: "uint256";
|
|
561137
561301
|
readonly name: "totalDebt";
|
|
561138
561302
|
readonly type: "uint256";
|
|
561303
|
+
}, {
|
|
561304
|
+
readonly internalType: "uint256";
|
|
561305
|
+
readonly name: "totalDrawnShares";
|
|
561306
|
+
readonly type: "uint256";
|
|
561307
|
+
}, {
|
|
561308
|
+
readonly internalType: "uint256";
|
|
561309
|
+
readonly name: "totalPremiumShares";
|
|
561310
|
+
readonly type: "uint256";
|
|
561139
561311
|
}, {
|
|
561140
561312
|
readonly internalType: "uint256";
|
|
561141
561313
|
readonly name: "swept";
|
|
@@ -561223,6 +561395,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
561223
561395
|
readonly internalType: "uint256";
|
|
561224
561396
|
readonly name: "totalDebt";
|
|
561225
561397
|
readonly type: "uint256";
|
|
561398
|
+
}, {
|
|
561399
|
+
readonly internalType: "uint256";
|
|
561400
|
+
readonly name: "totalDrawnShares";
|
|
561401
|
+
readonly type: "uint256";
|
|
561402
|
+
}, {
|
|
561403
|
+
readonly internalType: "uint256";
|
|
561404
|
+
readonly name: "totalPremiumShares";
|
|
561405
|
+
readonly type: "uint256";
|
|
561226
561406
|
}, {
|
|
561227
561407
|
readonly internalType: "uint256";
|
|
561228
561408
|
readonly name: "swept";
|
|
@@ -562686,6 +562866,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
562686
562866
|
readonly internalType: "uint256";
|
|
562687
562867
|
readonly name: "totalDebt";
|
|
562688
562868
|
readonly type: "uint256";
|
|
562869
|
+
}, {
|
|
562870
|
+
readonly internalType: "uint256";
|
|
562871
|
+
readonly name: "totalDrawnShares";
|
|
562872
|
+
readonly type: "uint256";
|
|
562873
|
+
}, {
|
|
562874
|
+
readonly internalType: "uint256";
|
|
562875
|
+
readonly name: "totalPremiumShares";
|
|
562876
|
+
readonly type: "uint256";
|
|
562689
562877
|
}, {
|
|
562690
562878
|
readonly internalType: "uint256";
|
|
562691
562879
|
readonly name: "swept";
|
|
@@ -562773,6 +562961,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
562773
562961
|
readonly internalType: "uint256";
|
|
562774
562962
|
readonly name: "totalDebt";
|
|
562775
562963
|
readonly type: "uint256";
|
|
562964
|
+
}, {
|
|
562965
|
+
readonly internalType: "uint256";
|
|
562966
|
+
readonly name: "totalDrawnShares";
|
|
562967
|
+
readonly type: "uint256";
|
|
562968
|
+
}, {
|
|
562969
|
+
readonly internalType: "uint256";
|
|
562970
|
+
readonly name: "totalPremiumShares";
|
|
562971
|
+
readonly type: "uint256";
|
|
562776
562972
|
}, {
|
|
562777
562973
|
readonly internalType: "uint256";
|
|
562778
562974
|
readonly name: "swept";
|
|
@@ -564214,6 +564410,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
564214
564410
|
readonly internalType: "uint256";
|
|
564215
564411
|
readonly name: "totalDebt";
|
|
564216
564412
|
readonly type: "uint256";
|
|
564413
|
+
}, {
|
|
564414
|
+
readonly internalType: "uint256";
|
|
564415
|
+
readonly name: "totalDrawnShares";
|
|
564416
|
+
readonly type: "uint256";
|
|
564417
|
+
}, {
|
|
564418
|
+
readonly internalType: "uint256";
|
|
564419
|
+
readonly name: "totalPremiumShares";
|
|
564420
|
+
readonly type: "uint256";
|
|
564217
564421
|
}, {
|
|
564218
564422
|
readonly internalType: "uint256";
|
|
564219
564423
|
readonly name: "swept";
|
|
@@ -564301,6 +564505,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
564301
564505
|
readonly internalType: "uint256";
|
|
564302
564506
|
readonly name: "totalDebt";
|
|
564303
564507
|
readonly type: "uint256";
|
|
564508
|
+
}, {
|
|
564509
|
+
readonly internalType: "uint256";
|
|
564510
|
+
readonly name: "totalDrawnShares";
|
|
564511
|
+
readonly type: "uint256";
|
|
564512
|
+
}, {
|
|
564513
|
+
readonly internalType: "uint256";
|
|
564514
|
+
readonly name: "totalPremiumShares";
|
|
564515
|
+
readonly type: "uint256";
|
|
564304
564516
|
}, {
|
|
564305
564517
|
readonly internalType: "uint256";
|
|
564306
564518
|
readonly name: "swept";
|
|
@@ -565742,6 +565954,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
565742
565954
|
readonly internalType: "uint256";
|
|
565743
565955
|
readonly name: "totalDebt";
|
|
565744
565956
|
readonly type: "uint256";
|
|
565957
|
+
}, {
|
|
565958
|
+
readonly internalType: "uint256";
|
|
565959
|
+
readonly name: "totalDrawnShares";
|
|
565960
|
+
readonly type: "uint256";
|
|
565961
|
+
}, {
|
|
565962
|
+
readonly internalType: "uint256";
|
|
565963
|
+
readonly name: "totalPremiumShares";
|
|
565964
|
+
readonly type: "uint256";
|
|
565745
565965
|
}, {
|
|
565746
565966
|
readonly internalType: "uint256";
|
|
565747
565967
|
readonly name: "swept";
|
|
@@ -565829,6 +566049,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
565829
566049
|
readonly internalType: "uint256";
|
|
565830
566050
|
readonly name: "totalDebt";
|
|
565831
566051
|
readonly type: "uint256";
|
|
566052
|
+
}, {
|
|
566053
|
+
readonly internalType: "uint256";
|
|
566054
|
+
readonly name: "totalDrawnShares";
|
|
566055
|
+
readonly type: "uint256";
|
|
566056
|
+
}, {
|
|
566057
|
+
readonly internalType: "uint256";
|
|
566058
|
+
readonly name: "totalPremiumShares";
|
|
566059
|
+
readonly type: "uint256";
|
|
565832
566060
|
}, {
|
|
565833
566061
|
readonly internalType: "uint256";
|
|
565834
566062
|
readonly name: "swept";
|
|
@@ -567274,6 +567502,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
567274
567502
|
readonly internalType: "uint256";
|
|
567275
567503
|
readonly name: "totalDebt";
|
|
567276
567504
|
readonly type: "uint256";
|
|
567505
|
+
}, {
|
|
567506
|
+
readonly internalType: "uint256";
|
|
567507
|
+
readonly name: "totalDrawnShares";
|
|
567508
|
+
readonly type: "uint256";
|
|
567509
|
+
}, {
|
|
567510
|
+
readonly internalType: "uint256";
|
|
567511
|
+
readonly name: "totalPremiumShares";
|
|
567512
|
+
readonly type: "uint256";
|
|
567277
567513
|
}, {
|
|
567278
567514
|
readonly internalType: "uint256";
|
|
567279
567515
|
readonly name: "swept";
|
|
@@ -567361,6 +567597,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
567361
567597
|
readonly internalType: "uint256";
|
|
567362
567598
|
readonly name: "totalDebt";
|
|
567363
567599
|
readonly type: "uint256";
|
|
567600
|
+
}, {
|
|
567601
|
+
readonly internalType: "uint256";
|
|
567602
|
+
readonly name: "totalDrawnShares";
|
|
567603
|
+
readonly type: "uint256";
|
|
567604
|
+
}, {
|
|
567605
|
+
readonly internalType: "uint256";
|
|
567606
|
+
readonly name: "totalPremiumShares";
|
|
567607
|
+
readonly type: "uint256";
|
|
567364
567608
|
}, {
|
|
567365
567609
|
readonly internalType: "uint256";
|
|
567366
567610
|
readonly name: "swept";
|
|
@@ -568824,6 +569068,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
568824
569068
|
readonly internalType: "uint256";
|
|
568825
569069
|
readonly name: "totalDebt";
|
|
568826
569070
|
readonly type: "uint256";
|
|
569071
|
+
}, {
|
|
569072
|
+
readonly internalType: "uint256";
|
|
569073
|
+
readonly name: "totalDrawnShares";
|
|
569074
|
+
readonly type: "uint256";
|
|
569075
|
+
}, {
|
|
569076
|
+
readonly internalType: "uint256";
|
|
569077
|
+
readonly name: "totalPremiumShares";
|
|
569078
|
+
readonly type: "uint256";
|
|
568827
569079
|
}, {
|
|
568828
569080
|
readonly internalType: "uint256";
|
|
568829
569081
|
readonly name: "swept";
|
|
@@ -568911,6 +569163,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
568911
569163
|
readonly internalType: "uint256";
|
|
568912
569164
|
readonly name: "totalDebt";
|
|
568913
569165
|
readonly type: "uint256";
|
|
569166
|
+
}, {
|
|
569167
|
+
readonly internalType: "uint256";
|
|
569168
|
+
readonly name: "totalDrawnShares";
|
|
569169
|
+
readonly type: "uint256";
|
|
569170
|
+
}, {
|
|
569171
|
+
readonly internalType: "uint256";
|
|
569172
|
+
readonly name: "totalPremiumShares";
|
|
569173
|
+
readonly type: "uint256";
|
|
568914
569174
|
}, {
|
|
568915
569175
|
readonly internalType: "uint256";
|
|
568916
569176
|
readonly name: "swept";
|
|
@@ -570363,6 +570623,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
570363
570623
|
readonly internalType: "uint256";
|
|
570364
570624
|
readonly name: "totalDebt";
|
|
570365
570625
|
readonly type: "uint256";
|
|
570626
|
+
}, {
|
|
570627
|
+
readonly internalType: "uint256";
|
|
570628
|
+
readonly name: "totalDrawnShares";
|
|
570629
|
+
readonly type: "uint256";
|
|
570630
|
+
}, {
|
|
570631
|
+
readonly internalType: "uint256";
|
|
570632
|
+
readonly name: "totalPremiumShares";
|
|
570633
|
+
readonly type: "uint256";
|
|
570366
570634
|
}, {
|
|
570367
570635
|
readonly internalType: "uint256";
|
|
570368
570636
|
readonly name: "swept";
|
|
@@ -570450,6 +570718,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
570450
570718
|
readonly internalType: "uint256";
|
|
570451
570719
|
readonly name: "totalDebt";
|
|
570452
570720
|
readonly type: "uint256";
|
|
570721
|
+
}, {
|
|
570722
|
+
readonly internalType: "uint256";
|
|
570723
|
+
readonly name: "totalDrawnShares";
|
|
570724
|
+
readonly type: "uint256";
|
|
570725
|
+
}, {
|
|
570726
|
+
readonly internalType: "uint256";
|
|
570727
|
+
readonly name: "totalPremiumShares";
|
|
570728
|
+
readonly type: "uint256";
|
|
570453
570729
|
}, {
|
|
570454
570730
|
readonly internalType: "uint256";
|
|
570455
570731
|
readonly name: "swept";
|
|
@@ -571920,6 +572196,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
571920
572196
|
readonly internalType: "uint256";
|
|
571921
572197
|
readonly name: "totalDebt";
|
|
571922
572198
|
readonly type: "uint256";
|
|
572199
|
+
}, {
|
|
572200
|
+
readonly internalType: "uint256";
|
|
572201
|
+
readonly name: "totalDrawnShares";
|
|
572202
|
+
readonly type: "uint256";
|
|
572203
|
+
}, {
|
|
572204
|
+
readonly internalType: "uint256";
|
|
572205
|
+
readonly name: "totalPremiumShares";
|
|
572206
|
+
readonly type: "uint256";
|
|
571923
572207
|
}, {
|
|
571924
572208
|
readonly internalType: "uint256";
|
|
571925
572209
|
readonly name: "swept";
|
|
@@ -572007,6 +572291,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
572007
572291
|
readonly internalType: "uint256";
|
|
572008
572292
|
readonly name: "totalDebt";
|
|
572009
572293
|
readonly type: "uint256";
|
|
572294
|
+
}, {
|
|
572295
|
+
readonly internalType: "uint256";
|
|
572296
|
+
readonly name: "totalDrawnShares";
|
|
572297
|
+
readonly type: "uint256";
|
|
572298
|
+
}, {
|
|
572299
|
+
readonly internalType: "uint256";
|
|
572300
|
+
readonly name: "totalPremiumShares";
|
|
572301
|
+
readonly type: "uint256";
|
|
572010
572302
|
}, {
|
|
572011
572303
|
readonly internalType: "uint256";
|
|
572012
572304
|
readonly name: "swept";
|
|
@@ -573448,6 +573740,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
573448
573740
|
readonly internalType: "uint256";
|
|
573449
573741
|
readonly name: "totalDebt";
|
|
573450
573742
|
readonly type: "uint256";
|
|
573743
|
+
}, {
|
|
573744
|
+
readonly internalType: "uint256";
|
|
573745
|
+
readonly name: "totalDrawnShares";
|
|
573746
|
+
readonly type: "uint256";
|
|
573747
|
+
}, {
|
|
573748
|
+
readonly internalType: "uint256";
|
|
573749
|
+
readonly name: "totalPremiumShares";
|
|
573750
|
+
readonly type: "uint256";
|
|
573451
573751
|
}, {
|
|
573452
573752
|
readonly internalType: "uint256";
|
|
573453
573753
|
readonly name: "swept";
|
|
@@ -573535,6 +573835,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
573535
573835
|
readonly internalType: "uint256";
|
|
573536
573836
|
readonly name: "totalDebt";
|
|
573537
573837
|
readonly type: "uint256";
|
|
573838
|
+
}, {
|
|
573839
|
+
readonly internalType: "uint256";
|
|
573840
|
+
readonly name: "totalDrawnShares";
|
|
573841
|
+
readonly type: "uint256";
|
|
573842
|
+
}, {
|
|
573843
|
+
readonly internalType: "uint256";
|
|
573844
|
+
readonly name: "totalPremiumShares";
|
|
573845
|
+
readonly type: "uint256";
|
|
573538
573846
|
}, {
|
|
573539
573847
|
readonly internalType: "uint256";
|
|
573540
573848
|
readonly name: "swept";
|
|
@@ -574994,6 +575302,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
574994
575302
|
readonly internalType: "uint256";
|
|
574995
575303
|
readonly name: "totalDebt";
|
|
574996
575304
|
readonly type: "uint256";
|
|
575305
|
+
}, {
|
|
575306
|
+
readonly internalType: "uint256";
|
|
575307
|
+
readonly name: "totalDrawnShares";
|
|
575308
|
+
readonly type: "uint256";
|
|
575309
|
+
}, {
|
|
575310
|
+
readonly internalType: "uint256";
|
|
575311
|
+
readonly name: "totalPremiumShares";
|
|
575312
|
+
readonly type: "uint256";
|
|
574997
575313
|
}, {
|
|
574998
575314
|
readonly internalType: "uint256";
|
|
574999
575315
|
readonly name: "swept";
|
|
@@ -575081,6 +575397,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
575081
575397
|
readonly internalType: "uint256";
|
|
575082
575398
|
readonly name: "totalDebt";
|
|
575083
575399
|
readonly type: "uint256";
|
|
575400
|
+
}, {
|
|
575401
|
+
readonly internalType: "uint256";
|
|
575402
|
+
readonly name: "totalDrawnShares";
|
|
575403
|
+
readonly type: "uint256";
|
|
575404
|
+
}, {
|
|
575405
|
+
readonly internalType: "uint256";
|
|
575406
|
+
readonly name: "totalPremiumShares";
|
|
575407
|
+
readonly type: "uint256";
|
|
575084
575408
|
}, {
|
|
575085
575409
|
readonly internalType: "uint256";
|
|
575086
575410
|
readonly name: "swept";
|
|
@@ -576542,6 +576866,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
576542
576866
|
readonly internalType: "uint256";
|
|
576543
576867
|
readonly name: "totalDebt";
|
|
576544
576868
|
readonly type: "uint256";
|
|
576869
|
+
}, {
|
|
576870
|
+
readonly internalType: "uint256";
|
|
576871
|
+
readonly name: "totalDrawnShares";
|
|
576872
|
+
readonly type: "uint256";
|
|
576873
|
+
}, {
|
|
576874
|
+
readonly internalType: "uint256";
|
|
576875
|
+
readonly name: "totalPremiumShares";
|
|
576876
|
+
readonly type: "uint256";
|
|
576545
576877
|
}, {
|
|
576546
576878
|
readonly internalType: "uint256";
|
|
576547
576879
|
readonly name: "swept";
|
|
@@ -576629,6 +576961,14 @@ export declare const AaveV4ViewContractViem: (client: Client, network: NetworkNu
|
|
|
576629
576961
|
readonly internalType: "uint256";
|
|
576630
576962
|
readonly name: "totalDebt";
|
|
576631
576963
|
readonly type: "uint256";
|
|
576964
|
+
}, {
|
|
576965
|
+
readonly internalType: "uint256";
|
|
576966
|
+
readonly name: "totalDrawnShares";
|
|
576967
|
+
readonly type: "uint256";
|
|
576968
|
+
}, {
|
|
576969
|
+
readonly internalType: "uint256";
|
|
576970
|
+
readonly name: "totalPremiumShares";
|
|
576971
|
+
readonly type: "uint256";
|
|
576632
576972
|
}, {
|
|
576633
576973
|
readonly internalType: "uint256";
|
|
576634
576974
|
readonly name: "swept";
|
|
@@ -15,7 +15,7 @@ export const aaveV3AssetsDefaultMarketOpt = [
|
|
|
15
15
|
export const aaveV3AssetsDefaultMarketArb = ['DAI', 'LINK', 'USDC.e', 'WBTC', 'ETH', 'USDT', 'AAVE', 'EURS', 'wstETH', 'MAI', 'rETH', 'LUSD', 'USDC', 'FRAX', 'ARB', 'weETH', 'GHO', 'ezETH', 'rsETH', 'tBTC'];
|
|
16
16
|
export const aaveV3AssetsDefaultMarketBase = ['ETH', 'cbETH', 'USDbC', 'wstETH', 'USDC', 'weETH', 'cbBTC', 'ezETH', 'GHO', 'wrsETH', 'LBTC', 'EURC', 'AAVE', 'tBTC', 'syrupUSDC'];
|
|
17
17
|
export const aaveV3AssetsDefaultMarketLinea = ['ETH', 'USDC', 'weETH', 'ezETH', 'USDT', 'wstETH', 'wrsETH', 'WBTC', 'mUSD'];
|
|
18
|
-
export const aaveV3AssetsDefaultMarketPlasma = ['ETH', 'USDT', 'sUSDe', 'USDe', 'weETH', 'XAUt', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'XPL', 'PT USDe Apr', 'PT sUSDe Apr'];
|
|
18
|
+
export const aaveV3AssetsDefaultMarketPlasma = ['ETH', 'USDT', 'sUSDe', 'USDe', 'weETH', 'XAUt', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'XPL', 'PT USDe Apr', 'PT sUSDe Apr', 'GHO'];
|
|
19
19
|
// @dev Keep assets in array, do not assign directly, so we can parse it and edit it programmatically with `scripts/updateMarkets`
|
|
20
20
|
export const aaveV3AssetsDefaultMarket = {
|
|
21
21
|
[NetworkNumber.Eth]: aaveV3AssetsDefaultMarketEth,
|
|
@@ -5,6 +5,12 @@ export declare const isEligibleForEthenaUSDeRewards: (usedAssets: MMUsedAssets,
|
|
|
5
5
|
isEligible: boolean;
|
|
6
6
|
eligibleUSDAmount: string;
|
|
7
7
|
};
|
|
8
|
+
export declare const isEligibleForEthenaGHORewards: (usedAssets: MMUsedAssets, { healthRatio }: {
|
|
9
|
+
healthRatio: string;
|
|
10
|
+
}) => {
|
|
11
|
+
isEligible: boolean;
|
|
12
|
+
eligibleUSDAmount: string;
|
|
13
|
+
};
|
|
8
14
|
export declare const isEligibleForAaveV3ArbitrumEthSupply: (usedAssets: MMUsedAssets) => {
|
|
9
15
|
isEligible: boolean;
|
|
10
16
|
eligibleUSDAmount: string;
|