@defisaver/positions-sdk 2.0.15-dev → 2.0.15-dev-2
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/.mocharc.json +4 -4
- package/.nvmrc +1 -1
- package/README.md +64 -64
- package/cjs/aaveV2/index.js +9 -5
- package/cjs/aaveV3/index.js +50 -40
- package/cjs/aaveV3/merit.d.ts +17 -0
- package/cjs/aaveV3/merit.js +95 -0
- package/cjs/aaveV3/{rewards.d.ts → merkl.d.ts} +7 -2
- package/cjs/aaveV3/{rewards.js → merkl.js} +30 -14
- package/cjs/compoundV2/index.js +13 -7
- package/cjs/compoundV3/index.js +7 -2
- package/cjs/config/contracts.d.ts +6510 -1851
- package/cjs/config/contracts.js +33 -12
- package/cjs/contracts.d.ts +178 -0
- package/cjs/eulerV2/index.js +11 -2
- package/cjs/fluid/index.js +105 -34
- package/cjs/helpers/aaveHelpers/index.js +0 -1
- package/cjs/helpers/compoundHelpers/index.d.ts +3 -5
- package/cjs/helpers/compoundHelpers/index.js +15 -11
- package/cjs/helpers/eulerHelpers/index.d.ts +0 -5
- package/cjs/helpers/eulerHelpers/index.js +2 -31
- package/cjs/helpers/fluidHelpers/index.js +2 -0
- package/cjs/helpers/liquityV2Helpers/index.js +3 -2
- package/cjs/helpers/morphoBlueHelpers/index.js +66 -66
- package/cjs/liquityV2/index.js +10 -2
- package/cjs/llamaLend/index.js +10 -2
- package/cjs/morphoBlue/index.js +20 -6
- package/cjs/spark/index.js +20 -30
- package/cjs/staking/eligibility.d.ts +11 -0
- package/cjs/staking/eligibility.js +43 -0
- package/cjs/staking/index.d.ts +1 -0
- package/cjs/staking/index.js +1 -0
- package/cjs/staking/staking.d.ts +1 -7
- package/cjs/staking/staking.js +29 -55
- package/cjs/types/aave.d.ts +1 -7
- package/cjs/types/common.d.ts +16 -4
- package/cjs/types/common.js +10 -1
- package/cjs/types/euler.d.ts +3 -3
- package/cjs/types/fluid.d.ts +3 -5
- package/cjs/types/liquityV2.d.ts +3 -3
- package/cjs/types/llamaLend.d.ts +3 -1
- package/cjs/types/morphoBlue.d.ts +3 -5
- package/cjs/types/spark.d.ts +0 -3
- package/esm/aaveV2/index.js +9 -5
- package/esm/aaveV3/index.js +48 -38
- package/esm/aaveV3/merit.d.ts +17 -0
- package/esm/aaveV3/merit.js +90 -0
- package/esm/aaveV3/{rewards.d.ts → merkl.d.ts} +7 -2
- package/esm/aaveV3/{rewards.js → merkl.js} +28 -13
- package/esm/compoundV2/index.js +13 -7
- package/esm/compoundV3/index.js +7 -2
- package/esm/config/contracts.d.ts +6510 -1851
- package/esm/config/contracts.js +33 -12
- package/esm/contracts.d.ts +178 -0
- package/esm/eulerV2/index.js +11 -2
- package/esm/fluid/index.js +106 -35
- package/esm/helpers/aaveHelpers/index.js +0 -1
- package/esm/helpers/compoundHelpers/index.d.ts +3 -5
- package/esm/helpers/compoundHelpers/index.js +16 -12
- package/esm/helpers/eulerHelpers/index.d.ts +0 -5
- package/esm/helpers/eulerHelpers/index.js +2 -30
- package/esm/helpers/fluidHelpers/index.js +2 -0
- package/esm/helpers/liquityV2Helpers/index.js +3 -2
- package/esm/helpers/morphoBlueHelpers/index.js +66 -66
- package/esm/liquityV2/index.js +11 -3
- package/esm/llamaLend/index.js +11 -3
- package/esm/morphoBlue/index.js +21 -7
- package/esm/spark/index.js +21 -31
- package/esm/staking/eligibility.d.ts +11 -0
- package/esm/staking/eligibility.js +36 -0
- package/esm/staking/index.d.ts +1 -0
- package/esm/staking/index.js +1 -0
- package/esm/staking/staking.d.ts +1 -7
- package/esm/staking/staking.js +28 -53
- package/esm/types/aave.d.ts +1 -7
- package/esm/types/common.d.ts +16 -4
- package/esm/types/common.js +9 -0
- package/esm/types/euler.d.ts +3 -3
- package/esm/types/fluid.d.ts +3 -5
- package/esm/types/liquityV2.d.ts +3 -3
- package/esm/types/llamaLend.d.ts +3 -1
- package/esm/types/morphoBlue.d.ts +3 -5
- package/esm/types/spark.d.ts +0 -3
- package/package.json +47 -47
- package/src/aaveV2/index.ts +239 -236
- package/src/aaveV3/index.ts +511 -493
- package/src/aaveV3/merit.ts +98 -0
- package/src/aaveV3/{rewards.ts → merkl.ts} +141 -125
- package/src/compoundV2/index.ts +244 -240
- package/src/compoundV3/index.ts +274 -270
- package/src/config/contracts.ts +1129 -1108
- package/src/constants/index.ts +6 -6
- package/src/contracts.ts +107 -107
- package/src/curveUsd/index.ts +250 -250
- package/src/eulerV2/index.ts +324 -314
- package/src/exchange/index.ts +25 -25
- package/src/fluid/index.ts +1636 -1568
- package/src/helpers/aaveHelpers/index.ts +169 -170
- package/src/helpers/compoundHelpers/index.ts +267 -261
- package/src/helpers/curveUsdHelpers/index.ts +40 -40
- package/src/helpers/eulerHelpers/index.ts +222 -259
- package/src/helpers/fluidHelpers/index.ts +326 -324
- package/src/helpers/index.ts +10 -10
- package/src/helpers/liquityV2Helpers/index.ts +82 -80
- package/src/helpers/llamaLendHelpers/index.ts +53 -53
- package/src/helpers/makerHelpers/index.ts +52 -52
- package/src/helpers/morphoBlueHelpers/index.ts +390 -390
- package/src/helpers/sparkHelpers/index.ts +155 -155
- package/src/index.ts +45 -45
- package/src/liquity/index.ts +104 -104
- package/src/liquityV2/index.ts +418 -408
- package/src/llamaLend/index.ts +305 -296
- package/src/maker/index.ts +223 -223
- package/src/markets/aave/index.ts +116 -116
- package/src/markets/aave/marketAssets.ts +49 -49
- package/src/markets/compound/index.ts +227 -227
- package/src/markets/compound/marketsAssets.ts +90 -90
- package/src/markets/curveUsd/index.ts +69 -69
- package/src/markets/euler/index.ts +26 -26
- package/src/markets/fluid/index.ts +2456 -2456
- package/src/markets/index.ts +25 -25
- package/src/markets/liquityV2/index.ts +102 -102
- package/src/markets/llamaLend/contractAddresses.ts +141 -141
- package/src/markets/llamaLend/index.ts +235 -235
- package/src/markets/morphoBlue/index.ts +895 -895
- package/src/markets/spark/index.ts +29 -29
- package/src/markets/spark/marketAssets.ts +11 -11
- package/src/moneymarket/moneymarketCommonService.ts +80 -80
- package/src/morphoBlue/index.ts +236 -222
- package/src/portfolio/index.ts +285 -285
- package/src/services/priceService.ts +159 -159
- package/src/services/utils.ts +63 -63
- package/src/services/viem.ts +32 -32
- package/src/setup.ts +8 -8
- package/src/spark/index.ts +444 -456
- package/src/staking/eligibility.ts +37 -0
- package/src/staking/index.ts +2 -1
- package/src/staking/staking.ts +169 -194
- package/src/types/aave.ts +189 -195
- package/src/types/common.ts +103 -88
- package/src/types/compound.ts +136 -136
- package/src/types/curveUsd.ts +121 -121
- package/src/types/euler.ts +175 -174
- package/src/types/fluid.ts +448 -450
- package/src/types/index.ts +11 -11
- package/src/types/liquity.ts +30 -30
- package/src/types/liquityV2.ts +126 -126
- package/src/types/llamaLend.ts +159 -157
- package/src/types/maker.ts +63 -63
- package/src/types/morphoBlue.ts +194 -194
- package/src/types/portfolio.ts +60 -60
- package/src/types/spark.ts +135 -137
package/esm/contracts.d.ts
CHANGED
|
@@ -38659,6 +38659,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
38659
38659
|
readonly internalType: "bool";
|
|
38660
38660
|
readonly name: "isFrozen";
|
|
38661
38661
|
readonly type: "bool";
|
|
38662
|
+
}, {
|
|
38663
|
+
readonly internalType: "address";
|
|
38664
|
+
readonly name: "debtTokenAddress";
|
|
38665
|
+
readonly type: "address";
|
|
38662
38666
|
}];
|
|
38663
38667
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
38664
38668
|
readonly name: "tokens";
|
|
@@ -39120,6 +39124,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
39120
39124
|
readonly internalType: "bool";
|
|
39121
39125
|
readonly name: "isFrozen";
|
|
39122
39126
|
readonly type: "bool";
|
|
39127
|
+
}, {
|
|
39128
|
+
readonly internalType: "address";
|
|
39129
|
+
readonly name: "debtTokenAddress";
|
|
39130
|
+
readonly type: "address";
|
|
39123
39131
|
}];
|
|
39124
39132
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
39125
39133
|
readonly name: "_tokenInfo";
|
|
@@ -39586,6 +39594,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
39586
39594
|
readonly internalType: "bool";
|
|
39587
39595
|
readonly name: "isFrozen";
|
|
39588
39596
|
readonly type: "bool";
|
|
39597
|
+
}, {
|
|
39598
|
+
readonly internalType: "address";
|
|
39599
|
+
readonly name: "debtTokenAddress";
|
|
39600
|
+
readonly type: "address";
|
|
39589
39601
|
}];
|
|
39590
39602
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
39591
39603
|
readonly name: "tokens";
|
|
@@ -40047,6 +40059,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
40047
40059
|
readonly internalType: "bool";
|
|
40048
40060
|
readonly name: "isFrozen";
|
|
40049
40061
|
readonly type: "bool";
|
|
40062
|
+
}, {
|
|
40063
|
+
readonly internalType: "address";
|
|
40064
|
+
readonly name: "debtTokenAddress";
|
|
40065
|
+
readonly type: "address";
|
|
40050
40066
|
}];
|
|
40051
40067
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
40052
40068
|
readonly name: "_tokenInfo";
|
|
@@ -40526,6 +40542,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
40526
40542
|
readonly internalType: "bool";
|
|
40527
40543
|
readonly name: "isFrozen";
|
|
40528
40544
|
readonly type: "bool";
|
|
40545
|
+
}, {
|
|
40546
|
+
readonly internalType: "address";
|
|
40547
|
+
readonly name: "debtTokenAddress";
|
|
40548
|
+
readonly type: "address";
|
|
40529
40549
|
}];
|
|
40530
40550
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
40531
40551
|
readonly name: "tokens";
|
|
@@ -40987,6 +41007,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
40987
41007
|
readonly internalType: "bool";
|
|
40988
41008
|
readonly name: "isFrozen";
|
|
40989
41009
|
readonly type: "bool";
|
|
41010
|
+
}, {
|
|
41011
|
+
readonly internalType: "address";
|
|
41012
|
+
readonly name: "debtTokenAddress";
|
|
41013
|
+
readonly type: "address";
|
|
40990
41014
|
}];
|
|
40991
41015
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
40992
41016
|
readonly name: "_tokenInfo";
|
|
@@ -41465,6 +41489,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
41465
41489
|
readonly internalType: "bool";
|
|
41466
41490
|
readonly name: "isFrozen";
|
|
41467
41491
|
readonly type: "bool";
|
|
41492
|
+
}, {
|
|
41493
|
+
readonly internalType: "address";
|
|
41494
|
+
readonly name: "debtTokenAddress";
|
|
41495
|
+
readonly type: "address";
|
|
41468
41496
|
}];
|
|
41469
41497
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
41470
41498
|
readonly name: "tokens";
|
|
@@ -41926,6 +41954,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
41926
41954
|
readonly internalType: "bool";
|
|
41927
41955
|
readonly name: "isFrozen";
|
|
41928
41956
|
readonly type: "bool";
|
|
41957
|
+
}, {
|
|
41958
|
+
readonly internalType: "address";
|
|
41959
|
+
readonly name: "debtTokenAddress";
|
|
41960
|
+
readonly type: "address";
|
|
41929
41961
|
}];
|
|
41930
41962
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
41931
41963
|
readonly name: "_tokenInfo";
|
|
@@ -42401,6 +42433,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
42401
42433
|
readonly internalType: "bool";
|
|
42402
42434
|
readonly name: "isFrozen";
|
|
42403
42435
|
readonly type: "bool";
|
|
42436
|
+
}, {
|
|
42437
|
+
readonly internalType: "address";
|
|
42438
|
+
readonly name: "debtTokenAddress";
|
|
42439
|
+
readonly type: "address";
|
|
42404
42440
|
}];
|
|
42405
42441
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
42406
42442
|
readonly name: "tokens";
|
|
@@ -42862,6 +42898,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
42862
42898
|
readonly internalType: "bool";
|
|
42863
42899
|
readonly name: "isFrozen";
|
|
42864
42900
|
readonly type: "bool";
|
|
42901
|
+
}, {
|
|
42902
|
+
readonly internalType: "address";
|
|
42903
|
+
readonly name: "debtTokenAddress";
|
|
42904
|
+
readonly type: "address";
|
|
42865
42905
|
}];
|
|
42866
42906
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
42867
42907
|
readonly name: "_tokenInfo";
|
|
@@ -43328,6 +43368,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
43328
43368
|
readonly internalType: "bool";
|
|
43329
43369
|
readonly name: "isFrozen";
|
|
43330
43370
|
readonly type: "bool";
|
|
43371
|
+
}, {
|
|
43372
|
+
readonly internalType: "address";
|
|
43373
|
+
readonly name: "debtTokenAddress";
|
|
43374
|
+
readonly type: "address";
|
|
43331
43375
|
}];
|
|
43332
43376
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
43333
43377
|
readonly name: "tokens";
|
|
@@ -43789,6 +43833,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
43789
43833
|
readonly internalType: "bool";
|
|
43790
43834
|
readonly name: "isFrozen";
|
|
43791
43835
|
readonly type: "bool";
|
|
43836
|
+
}, {
|
|
43837
|
+
readonly internalType: "address";
|
|
43838
|
+
readonly name: "debtTokenAddress";
|
|
43839
|
+
readonly type: "address";
|
|
43792
43840
|
}];
|
|
43793
43841
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
43794
43842
|
readonly name: "_tokenInfo";
|
|
@@ -44255,6 +44303,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
44255
44303
|
readonly internalType: "bool";
|
|
44256
44304
|
readonly name: "isFrozen";
|
|
44257
44305
|
readonly type: "bool";
|
|
44306
|
+
}, {
|
|
44307
|
+
readonly internalType: "address";
|
|
44308
|
+
readonly name: "debtTokenAddress";
|
|
44309
|
+
readonly type: "address";
|
|
44258
44310
|
}];
|
|
44259
44311
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
44260
44312
|
readonly name: "tokens";
|
|
@@ -44716,6 +44768,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
44716
44768
|
readonly internalType: "bool";
|
|
44717
44769
|
readonly name: "isFrozen";
|
|
44718
44770
|
readonly type: "bool";
|
|
44771
|
+
}, {
|
|
44772
|
+
readonly internalType: "address";
|
|
44773
|
+
readonly name: "debtTokenAddress";
|
|
44774
|
+
readonly type: "address";
|
|
44719
44775
|
}];
|
|
44720
44776
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
44721
44777
|
readonly name: "_tokenInfo";
|
|
@@ -45182,6 +45238,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
45182
45238
|
readonly internalType: "bool";
|
|
45183
45239
|
readonly name: "isFrozen";
|
|
45184
45240
|
readonly type: "bool";
|
|
45241
|
+
}, {
|
|
45242
|
+
readonly internalType: "address";
|
|
45243
|
+
readonly name: "debtTokenAddress";
|
|
45244
|
+
readonly type: "address";
|
|
45185
45245
|
}];
|
|
45186
45246
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
45187
45247
|
readonly name: "tokens";
|
|
@@ -45643,6 +45703,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
45643
45703
|
readonly internalType: "bool";
|
|
45644
45704
|
readonly name: "isFrozen";
|
|
45645
45705
|
readonly type: "bool";
|
|
45706
|
+
}, {
|
|
45707
|
+
readonly internalType: "address";
|
|
45708
|
+
readonly name: "debtTokenAddress";
|
|
45709
|
+
readonly type: "address";
|
|
45646
45710
|
}];
|
|
45647
45711
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
45648
45712
|
readonly name: "_tokenInfo";
|
|
@@ -46116,6 +46180,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
46116
46180
|
readonly internalType: "bool";
|
|
46117
46181
|
readonly name: "isFrozen";
|
|
46118
46182
|
readonly type: "bool";
|
|
46183
|
+
}, {
|
|
46184
|
+
readonly internalType: "address";
|
|
46185
|
+
readonly name: "debtTokenAddress";
|
|
46186
|
+
readonly type: "address";
|
|
46119
46187
|
}];
|
|
46120
46188
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
46121
46189
|
readonly name: "tokens";
|
|
@@ -46577,6 +46645,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
46577
46645
|
readonly internalType: "bool";
|
|
46578
46646
|
readonly name: "isFrozen";
|
|
46579
46647
|
readonly type: "bool";
|
|
46648
|
+
}, {
|
|
46649
|
+
readonly internalType: "address";
|
|
46650
|
+
readonly name: "debtTokenAddress";
|
|
46651
|
+
readonly type: "address";
|
|
46580
46652
|
}];
|
|
46581
46653
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
46582
46654
|
readonly name: "_tokenInfo";
|
|
@@ -46668,6 +46740,7 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
46668
46740
|
isActive: boolean;
|
|
46669
46741
|
isPaused: boolean;
|
|
46670
46742
|
isFrozen: boolean;
|
|
46743
|
+
debtTokenAddress: `0x${string}`;
|
|
46671
46744
|
}[]>;
|
|
46672
46745
|
getHealthFactor: (args: readonly [`0x${string}`, `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
46673
46746
|
readonly inputs: readonly [];
|
|
@@ -47078,6 +47151,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
47078
47151
|
readonly internalType: "bool";
|
|
47079
47152
|
readonly name: "isFrozen";
|
|
47080
47153
|
readonly type: "bool";
|
|
47154
|
+
}, {
|
|
47155
|
+
readonly internalType: "address";
|
|
47156
|
+
readonly name: "debtTokenAddress";
|
|
47157
|
+
readonly type: "address";
|
|
47081
47158
|
}];
|
|
47082
47159
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
47083
47160
|
readonly name: "tokens";
|
|
@@ -47539,6 +47616,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
47539
47616
|
readonly internalType: "bool";
|
|
47540
47617
|
readonly name: "isFrozen";
|
|
47541
47618
|
readonly type: "bool";
|
|
47619
|
+
}, {
|
|
47620
|
+
readonly internalType: "address";
|
|
47621
|
+
readonly name: "debtTokenAddress";
|
|
47622
|
+
readonly type: "address";
|
|
47542
47623
|
}];
|
|
47543
47624
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
47544
47625
|
readonly name: "_tokenInfo";
|
|
@@ -48005,6 +48086,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
48005
48086
|
readonly internalType: "bool";
|
|
48006
48087
|
readonly name: "isFrozen";
|
|
48007
48088
|
readonly type: "bool";
|
|
48089
|
+
}, {
|
|
48090
|
+
readonly internalType: "address";
|
|
48091
|
+
readonly name: "debtTokenAddress";
|
|
48092
|
+
readonly type: "address";
|
|
48008
48093
|
}];
|
|
48009
48094
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
48010
48095
|
readonly name: "tokens";
|
|
@@ -48466,6 +48551,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
48466
48551
|
readonly internalType: "bool";
|
|
48467
48552
|
readonly name: "isFrozen";
|
|
48468
48553
|
readonly type: "bool";
|
|
48554
|
+
}, {
|
|
48555
|
+
readonly internalType: "address";
|
|
48556
|
+
readonly name: "debtTokenAddress";
|
|
48557
|
+
readonly type: "address";
|
|
48469
48558
|
}];
|
|
48470
48559
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
48471
48560
|
readonly name: "_tokenInfo";
|
|
@@ -48947,6 +49036,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
48947
49036
|
readonly internalType: "bool";
|
|
48948
49037
|
readonly name: "isFrozen";
|
|
48949
49038
|
readonly type: "bool";
|
|
49039
|
+
}, {
|
|
49040
|
+
readonly internalType: "address";
|
|
49041
|
+
readonly name: "debtTokenAddress";
|
|
49042
|
+
readonly type: "address";
|
|
48950
49043
|
}];
|
|
48951
49044
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
48952
49045
|
readonly name: "tokens";
|
|
@@ -49408,6 +49501,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
49408
49501
|
readonly internalType: "bool";
|
|
49409
49502
|
readonly name: "isFrozen";
|
|
49410
49503
|
readonly type: "bool";
|
|
49504
|
+
}, {
|
|
49505
|
+
readonly internalType: "address";
|
|
49506
|
+
readonly name: "debtTokenAddress";
|
|
49507
|
+
readonly type: "address";
|
|
49411
49508
|
}];
|
|
49412
49509
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
49413
49510
|
readonly name: "_tokenInfo";
|
|
@@ -49891,6 +49988,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
49891
49988
|
readonly internalType: "bool";
|
|
49892
49989
|
readonly name: "isFrozen";
|
|
49893
49990
|
readonly type: "bool";
|
|
49991
|
+
}, {
|
|
49992
|
+
readonly internalType: "address";
|
|
49993
|
+
readonly name: "debtTokenAddress";
|
|
49994
|
+
readonly type: "address";
|
|
49894
49995
|
}];
|
|
49895
49996
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
49896
49997
|
readonly name: "tokens";
|
|
@@ -50352,6 +50453,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
50352
50453
|
readonly internalType: "bool";
|
|
50353
50454
|
readonly name: "isFrozen";
|
|
50354
50455
|
readonly type: "bool";
|
|
50456
|
+
}, {
|
|
50457
|
+
readonly internalType: "address";
|
|
50458
|
+
readonly name: "debtTokenAddress";
|
|
50459
|
+
readonly type: "address";
|
|
50355
50460
|
}];
|
|
50356
50461
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
50357
50462
|
readonly name: "_tokenInfo";
|
|
@@ -50820,6 +50925,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
50820
50925
|
readonly internalType: "bool";
|
|
50821
50926
|
readonly name: "isFrozen";
|
|
50822
50927
|
readonly type: "bool";
|
|
50928
|
+
}, {
|
|
50929
|
+
readonly internalType: "address";
|
|
50930
|
+
readonly name: "debtTokenAddress";
|
|
50931
|
+
readonly type: "address";
|
|
50823
50932
|
}];
|
|
50824
50933
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
50825
50934
|
readonly name: "tokens";
|
|
@@ -51281,6 +51390,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
51281
51390
|
readonly internalType: "bool";
|
|
51282
51391
|
readonly name: "isFrozen";
|
|
51283
51392
|
readonly type: "bool";
|
|
51393
|
+
}, {
|
|
51394
|
+
readonly internalType: "address";
|
|
51395
|
+
readonly name: "debtTokenAddress";
|
|
51396
|
+
readonly type: "address";
|
|
51284
51397
|
}];
|
|
51285
51398
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
51286
51399
|
readonly name: "_tokenInfo";
|
|
@@ -51747,6 +51860,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
51747
51860
|
readonly internalType: "bool";
|
|
51748
51861
|
readonly name: "isFrozen";
|
|
51749
51862
|
readonly type: "bool";
|
|
51863
|
+
}, {
|
|
51864
|
+
readonly internalType: "address";
|
|
51865
|
+
readonly name: "debtTokenAddress";
|
|
51866
|
+
readonly type: "address";
|
|
51750
51867
|
}];
|
|
51751
51868
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
51752
51869
|
readonly name: "tokens";
|
|
@@ -52208,6 +52325,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
52208
52325
|
readonly internalType: "bool";
|
|
52209
52326
|
readonly name: "isFrozen";
|
|
52210
52327
|
readonly type: "bool";
|
|
52328
|
+
}, {
|
|
52329
|
+
readonly internalType: "address";
|
|
52330
|
+
readonly name: "debtTokenAddress";
|
|
52331
|
+
readonly type: "address";
|
|
52211
52332
|
}];
|
|
52212
52333
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
52213
52334
|
readonly name: "_tokenInfo";
|
|
@@ -52674,6 +52795,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
52674
52795
|
readonly internalType: "bool";
|
|
52675
52796
|
readonly name: "isFrozen";
|
|
52676
52797
|
readonly type: "bool";
|
|
52798
|
+
}, {
|
|
52799
|
+
readonly internalType: "address";
|
|
52800
|
+
readonly name: "debtTokenAddress";
|
|
52801
|
+
readonly type: "address";
|
|
52677
52802
|
}];
|
|
52678
52803
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
52679
52804
|
readonly name: "tokens";
|
|
@@ -53135,6 +53260,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
53135
53260
|
readonly internalType: "bool";
|
|
53136
53261
|
readonly name: "isFrozen";
|
|
53137
53262
|
readonly type: "bool";
|
|
53263
|
+
}, {
|
|
53264
|
+
readonly internalType: "address";
|
|
53265
|
+
readonly name: "debtTokenAddress";
|
|
53266
|
+
readonly type: "address";
|
|
53138
53267
|
}];
|
|
53139
53268
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
53140
53269
|
readonly name: "_tokenInfo";
|
|
@@ -53601,6 +53730,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
53601
53730
|
readonly internalType: "bool";
|
|
53602
53731
|
readonly name: "isFrozen";
|
|
53603
53732
|
readonly type: "bool";
|
|
53733
|
+
}, {
|
|
53734
|
+
readonly internalType: "address";
|
|
53735
|
+
readonly name: "debtTokenAddress";
|
|
53736
|
+
readonly type: "address";
|
|
53604
53737
|
}];
|
|
53605
53738
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
53606
53739
|
readonly name: "tokens";
|
|
@@ -54062,6 +54195,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
54062
54195
|
readonly internalType: "bool";
|
|
54063
54196
|
readonly name: "isFrozen";
|
|
54064
54197
|
readonly type: "bool";
|
|
54198
|
+
}, {
|
|
54199
|
+
readonly internalType: "address";
|
|
54200
|
+
readonly name: "debtTokenAddress";
|
|
54201
|
+
readonly type: "address";
|
|
54065
54202
|
}];
|
|
54066
54203
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
54067
54204
|
readonly name: "_tokenInfo";
|
|
@@ -54528,6 +54665,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
54528
54665
|
readonly internalType: "bool";
|
|
54529
54666
|
readonly name: "isFrozen";
|
|
54530
54667
|
readonly type: "bool";
|
|
54668
|
+
}, {
|
|
54669
|
+
readonly internalType: "address";
|
|
54670
|
+
readonly name: "debtTokenAddress";
|
|
54671
|
+
readonly type: "address";
|
|
54531
54672
|
}];
|
|
54532
54673
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
54533
54674
|
readonly name: "tokens";
|
|
@@ -54989,6 +55130,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
54989
55130
|
readonly internalType: "bool";
|
|
54990
55131
|
readonly name: "isFrozen";
|
|
54991
55132
|
readonly type: "bool";
|
|
55133
|
+
}, {
|
|
55134
|
+
readonly internalType: "address";
|
|
55135
|
+
readonly name: "debtTokenAddress";
|
|
55136
|
+
readonly type: "address";
|
|
54992
55137
|
}];
|
|
54993
55138
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
54994
55139
|
readonly name: "_tokenInfo";
|
|
@@ -55462,6 +55607,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
55462
55607
|
readonly internalType: "bool";
|
|
55463
55608
|
readonly name: "isFrozen";
|
|
55464
55609
|
readonly type: "bool";
|
|
55610
|
+
}, {
|
|
55611
|
+
readonly internalType: "address";
|
|
55612
|
+
readonly name: "debtTokenAddress";
|
|
55613
|
+
readonly type: "address";
|
|
55465
55614
|
}];
|
|
55466
55615
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
55467
55616
|
readonly name: "tokens";
|
|
@@ -55923,6 +56072,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
55923
56072
|
readonly internalType: "bool";
|
|
55924
56073
|
readonly name: "isFrozen";
|
|
55925
56074
|
readonly type: "bool";
|
|
56075
|
+
}, {
|
|
56076
|
+
readonly internalType: "address";
|
|
56077
|
+
readonly name: "debtTokenAddress";
|
|
56078
|
+
readonly type: "address";
|
|
55926
56079
|
}];
|
|
55927
56080
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
55928
56081
|
readonly name: "_tokenInfo";
|
|
@@ -56014,6 +56167,7 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
56014
56167
|
isActive: boolean;
|
|
56015
56168
|
isPaused: boolean;
|
|
56016
56169
|
isFrozen: boolean;
|
|
56170
|
+
debtTokenAddress: `0x${string}`;
|
|
56017
56171
|
}>;
|
|
56018
56172
|
getTokensInfo: (args: readonly [`0x${string}`, readonly `0x${string}`[]], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
56019
56173
|
readonly inputs: readonly [];
|
|
@@ -56424,6 +56578,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
56424
56578
|
readonly internalType: "bool";
|
|
56425
56579
|
readonly name: "isFrozen";
|
|
56426
56580
|
readonly type: "bool";
|
|
56581
|
+
}, {
|
|
56582
|
+
readonly internalType: "address";
|
|
56583
|
+
readonly name: "debtTokenAddress";
|
|
56584
|
+
readonly type: "address";
|
|
56427
56585
|
}];
|
|
56428
56586
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
56429
56587
|
readonly name: "tokens";
|
|
@@ -56885,6 +57043,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
56885
57043
|
readonly internalType: "bool";
|
|
56886
57044
|
readonly name: "isFrozen";
|
|
56887
57045
|
readonly type: "bool";
|
|
57046
|
+
}, {
|
|
57047
|
+
readonly internalType: "address";
|
|
57048
|
+
readonly name: "debtTokenAddress";
|
|
57049
|
+
readonly type: "address";
|
|
56888
57050
|
}];
|
|
56889
57051
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
56890
57052
|
readonly name: "_tokenInfo";
|
|
@@ -57356,6 +57518,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
57356
57518
|
readonly internalType: "bool";
|
|
57357
57519
|
readonly name: "isFrozen";
|
|
57358
57520
|
readonly type: "bool";
|
|
57521
|
+
}, {
|
|
57522
|
+
readonly internalType: "address";
|
|
57523
|
+
readonly name: "debtTokenAddress";
|
|
57524
|
+
readonly type: "address";
|
|
57359
57525
|
}];
|
|
57360
57526
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
57361
57527
|
readonly name: "tokens";
|
|
@@ -57817,6 +57983,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
57817
57983
|
readonly internalType: "bool";
|
|
57818
57984
|
readonly name: "isFrozen";
|
|
57819
57985
|
readonly type: "bool";
|
|
57986
|
+
}, {
|
|
57987
|
+
readonly internalType: "address";
|
|
57988
|
+
readonly name: "debtTokenAddress";
|
|
57989
|
+
readonly type: "address";
|
|
57820
57990
|
}];
|
|
57821
57991
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
57822
57992
|
readonly name: "_tokenInfo";
|
|
@@ -58285,6 +58455,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
58285
58455
|
readonly internalType: "bool";
|
|
58286
58456
|
readonly name: "isFrozen";
|
|
58287
58457
|
readonly type: "bool";
|
|
58458
|
+
}, {
|
|
58459
|
+
readonly internalType: "address";
|
|
58460
|
+
readonly name: "debtTokenAddress";
|
|
58461
|
+
readonly type: "address";
|
|
58288
58462
|
}];
|
|
58289
58463
|
readonly internalType: "struct AaveV3View.TokenInfoFull[]";
|
|
58290
58464
|
readonly name: "tokens";
|
|
@@ -58746,6 +58920,10 @@ export declare const AaveV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
58746
58920
|
readonly internalType: "bool";
|
|
58747
58921
|
readonly name: "isFrozen";
|
|
58748
58922
|
readonly type: "bool";
|
|
58923
|
+
}, {
|
|
58924
|
+
readonly internalType: "address";
|
|
58925
|
+
readonly name: "debtTokenAddress";
|
|
58926
|
+
readonly type: "address";
|
|
58749
58927
|
}];
|
|
58750
58928
|
readonly internalType: "struct AaveV3View.TokenInfoFull";
|
|
58751
58929
|
readonly name: "_tokenInfo";
|
package/esm/eulerV2/index.js
CHANGED
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import Dec from 'decimal.js';
|
|
11
11
|
import { assetAmountInEth, getAssetInfoByAddress } from '@defisaver/tokens';
|
|
12
|
+
import { IncentiveKind, } from '../types/common';
|
|
12
13
|
import { getStakingApy, STAKING_ASSETS } from '../staking';
|
|
13
14
|
import { compareAddresses, getEthAmountForDecimals, isMaxuint, wethToEth, wethToEthByAddress, } from '../services/utils';
|
|
14
15
|
import { EulerV2VaultType, } from '../types';
|
|
@@ -67,12 +68,18 @@ export const _getEulerV2MarketsData = (provider, network, selectedMarket) => __a
|
|
|
67
68
|
supplyRate,
|
|
68
69
|
utilization: new Dec(utilizationRate).mul(100).toString(),
|
|
69
70
|
governorAdmin: collateral.governorAdmin,
|
|
71
|
+
supplyIncentives: [],
|
|
72
|
+
borrowIncentives: [],
|
|
70
73
|
});
|
|
71
74
|
});
|
|
72
75
|
for (const coll of colls) {
|
|
73
76
|
if (STAKING_ASSETS.includes(coll.symbol)) {
|
|
74
|
-
coll.
|
|
75
|
-
|
|
77
|
+
coll.supplyIncentives.push({
|
|
78
|
+
apy: yield getStakingApy(coll.symbol),
|
|
79
|
+
token: coll.symbol,
|
|
80
|
+
incentiveKind: IncentiveKind.Staking,
|
|
81
|
+
description: `Native ${coll.symbol} yield.`,
|
|
82
|
+
});
|
|
76
83
|
}
|
|
77
84
|
}
|
|
78
85
|
const isEscrow = data.collaterals.length === 0;
|
|
@@ -106,6 +113,8 @@ export const _getEulerV2MarketsData = (provider, network, selectedMarket) => __a
|
|
|
106
113
|
governorAdmin: data.governorAdmin,
|
|
107
114
|
vaultType,
|
|
108
115
|
name: data.name,
|
|
116
|
+
supplyIncentives: [],
|
|
117
|
+
borrowIncentives: [],
|
|
109
118
|
};
|
|
110
119
|
const assetsData = {
|
|
111
120
|
[data.vaultAddr.toLowerCase()]: marketAsset,
|