@1delta/margin-fetcher 0.0.55 → 0.0.57
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/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +307 -225
- package/dist/index.js.map +1 -1
- package/dist/lending/aave-v3-type/publicCallBuild.d.ts +1 -1
- package/dist/lending/aave-v3-type/publicCallBuild.d.ts.map +1 -1
- package/dist/lending/compound-v3/publicCallBuild.d.ts +1 -1
- package/dist/lending/compound-v3/publicCallBuild.d.ts.map +1 -1
- package/dist/lending/init/publicCallBuild.d.ts +1 -1
- package/dist/lending/init/publicCallBuild.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export * from './lending';
|
|
|
2
2
|
export * from './lending-pairs';
|
|
3
3
|
export { fetchGeneralYields } from './yields';
|
|
4
4
|
export * from './prices';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export { getLendersForChain, filterLendersByProtocol, getAavesForChain, getLenderAssets, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isAaveV3Type, isAaveV2Type, isYLDR, isAaveV32Type, isAaveType, isMultiMarket, } from './utils';
|
|
6
|
+
export { fetchFlashLiquidityForChain, attachPricesToFlashLiquidity, } from './flash-liquidity';
|
|
7
|
+
export { type GenericCurrency, type GenericTokenList, type ParsedResponse, type ChainLinkResponse, type LenderRewardsMap, type NumberMap, type FullLenderRewardsMap, type AdditionalYields, type TokenList, type LenderUserQuery, type UserLendingPosition, type LenderUserResponse, type AaveV2UserReserveResponse, type AaveV3UserReserveResponse, type MorphoUserReserveResponse, type CompoundV3UserReserveResponse, type AaveV3Public, type LenderPublicBase, type LenderYields, type LenderTotalAmounts, type LenderConfigMap, type LenderConfigData, type ModeBase, type EModeData, type AaveV2Public, type CompoundV3Public, type UserApr, type InitUserReserveResponse, type InitPublic, } from './types';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,cAAc,UAAU,CAAA;AACxB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,cAAc,UAAU,CAAA;AACxB,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,aAAa,EACb,UAAU,EACV,aAAa,GACd,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,uBAAuB,EAC5B,KAAK,UAAU,GAChB,MAAM,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -6240,119 +6240,119 @@ var IrgetterAbi = [
|
|
|
6240
6240
|
}
|
|
6241
6241
|
];
|
|
6242
6242
|
|
|
6243
|
-
// ../../node_modules/.pnpm/@1delta+lender-registry@0.0.
|
|
6244
|
-
var Lender = /* @__PURE__ */ ((
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
return
|
|
6243
|
+
// ../../node_modules/.pnpm/@1delta+lender-registry@0.0.6/node_modules/@1delta/lender-registry/dist/index.mjs
|
|
6244
|
+
var Lender = /* @__PURE__ */ ((Lender22) => {
|
|
6245
|
+
Lender22["AAVE_V3"] = "AAVE_V3";
|
|
6246
|
+
Lender22["AAVE_V3_PRIME"] = "AAVE_V3_PRIME";
|
|
6247
|
+
Lender22["AAVE_V3_ETHER_FI"] = "AAVE_V3_ETHER_FI";
|
|
6248
|
+
Lender22["AAVE_V3_HORIZON"] = "AAVE_V3_HORIZON";
|
|
6249
|
+
Lender22["AAVE_V2"] = "AAVE_V2";
|
|
6250
|
+
Lender22["AURELIUS"] = "AURELIUS";
|
|
6251
|
+
Lender22["LENDLE"] = "LENDLE";
|
|
6252
|
+
Lender22["LENDLE_CMETH"] = "LENDLE_CMETH";
|
|
6253
|
+
Lender22["LENDLE_SUSDE"] = "LENDLE_SUSDE";
|
|
6254
|
+
Lender22["LENDLE_PT_CMETH"] = "LENDLE_PT_CMETH";
|
|
6255
|
+
Lender22["MERIDIAN"] = "MERIDIAN";
|
|
6256
|
+
Lender22["TAKOTAKO"] = "TAKOTAKO";
|
|
6257
|
+
Lender22["TAKOTAKO_ETH"] = "TAKOTAKO_ETH";
|
|
6258
|
+
Lender22["HANA"] = "HANA";
|
|
6259
|
+
Lender22["YLDR"] = "YLDR";
|
|
6260
|
+
Lender22["MAGSIN"] = "MAGSIN";
|
|
6261
|
+
Lender22["SPARK"] = "SPARK";
|
|
6262
|
+
Lender22["NEREUS"] = "NEREUS";
|
|
6263
|
+
Lender22["KINZA"] = "KINZA";
|
|
6264
|
+
Lender22["GRANARY"] = "GRANARY";
|
|
6265
|
+
Lender22["LORE"] = "LORE";
|
|
6266
|
+
Lender22["LENDOS"] = "LENDOS";
|
|
6267
|
+
Lender22["IRONCLAD"] = "IRONCLAD";
|
|
6268
|
+
Lender22["MOLEND"] = "MOLEND";
|
|
6269
|
+
Lender22["SEISMIC"] = "SEISMIC";
|
|
6270
|
+
Lender22["POLTER"] = "POLTER";
|
|
6271
|
+
Lender22["AGAVE"] = "AGAVE";
|
|
6272
|
+
Lender22["MOOLA"] = "MOOLA";
|
|
6273
|
+
Lender22["XLEND"] = "XLEND";
|
|
6274
|
+
Lender22["KLAP"] = "KLAP";
|
|
6275
|
+
Lender22["RHOMBUS"] = "RHOMBUS";
|
|
6276
|
+
Lender22["RMM"] = "RMM";
|
|
6277
|
+
Lender22["KLAYBANK"] = "KLAYBANK";
|
|
6278
|
+
Lender22["SAKE"] = "SAKE";
|
|
6279
|
+
Lender22["SAKE_ASTAR"] = "SAKE_ASTAR";
|
|
6280
|
+
Lender22["LAYERBANK_V3"] = "LAYERBANK_V3";
|
|
6281
|
+
Lender22["COLEND"] = "COLEND";
|
|
6282
|
+
Lender22["COLEND_LSTBTC"] = "COLEND_LSTBTC";
|
|
6283
|
+
Lender22["PAC"] = "PAC";
|
|
6284
|
+
Lender22["VALAS"] = "VALAS";
|
|
6285
|
+
Lender22["HYPERLEND"] = "HYPERLEND";
|
|
6286
|
+
Lender22["HYPURRFI"] = "HYPURRFI";
|
|
6287
|
+
Lender22["HYPERYIELD"] = "HYPERYIELD";
|
|
6288
|
+
Lender22["MOONCAKE"] = "MOONCAKE";
|
|
6289
|
+
Lender22["PHIAT"] = "PHIAT";
|
|
6290
|
+
Lender22["RADIANT_V2"] = "RADIANT_V2";
|
|
6291
|
+
Lender22["FATHOM"] = "FATHOM";
|
|
6292
|
+
Lender22["U235"] = "U235";
|
|
6293
|
+
Lender22["QUOKKA_LEND"] = "QUOKKA_LEND";
|
|
6294
|
+
Lender22["ZEROLEND"] = "ZEROLEND";
|
|
6295
|
+
Lender22["ZEROLEND_STABLECOINS_RWA"] = "ZEROLEND_STABLECOINS_RWA";
|
|
6296
|
+
Lender22["ZEROLEND_ETH_LRTS"] = "ZEROLEND_ETH_LRTS";
|
|
6297
|
+
Lender22["ZEROLEND_BTC_LRTS"] = "ZEROLEND_BTC_LRTS";
|
|
6298
|
+
Lender22["ZEROLEND_CROAK"] = "ZEROLEND_CROAK";
|
|
6299
|
+
Lender22["ZEROLEND_FOXY"] = "ZEROLEND_FOXY";
|
|
6300
|
+
Lender22["AVALON"] = "AVALON";
|
|
6301
|
+
Lender22["AVALON_SOLVBTC"] = "AVALON_SOLVBTC";
|
|
6302
|
+
Lender22["AVALON_SWELLBTC"] = "AVALON_SWELLBTC";
|
|
6303
|
+
Lender22["AVALON_PUMPBTC"] = "AVALON_PUMPBTC";
|
|
6304
|
+
Lender22["AVALON_UNIBTC"] = "AVALON_UNIBTC";
|
|
6305
|
+
Lender22["AVALON_EBTC_LBTC"] = "AVALON_EBTC_LBTC";
|
|
6306
|
+
Lender22["AVALON_USDA"] = "AVALON_USDA";
|
|
6307
|
+
Lender22["AVALON_SKAIA"] = "AVALON_SKAIA";
|
|
6308
|
+
Lender22["AVALON_LORENZO"] = "AVALON_LORENZO";
|
|
6309
|
+
Lender22["AVALON_INNOVATION"] = "AVALON_INNOVATION";
|
|
6310
|
+
Lender22["AVALON_UBTC"] = "AVALON_UBTC";
|
|
6311
|
+
Lender22["AVALON_OBTC"] = "AVALON_OBTC";
|
|
6312
|
+
Lender22["AVALON_BEETS"] = "AVALON_BEETS";
|
|
6313
|
+
Lender22["AVALON_UNIIOTX"] = "AVALON_UNIIOTX";
|
|
6314
|
+
Lender22["AVALON_BOB"] = "AVALON_BOB";
|
|
6315
|
+
Lender22["AVALON_STBTC"] = "AVALON_STBTC";
|
|
6316
|
+
Lender22["AVALON_WBTC"] = "AVALON_WBTC";
|
|
6317
|
+
Lender22["AVALON_LBTC"] = "AVALON_LBTC";
|
|
6318
|
+
Lender22["AVALON_XAUM"] = "AVALON_XAUM";
|
|
6319
|
+
Lender22["AVALON_LISTA"] = "AVALON_LISTA";
|
|
6320
|
+
Lender22["AVALON_USDX"] = "AVALON_USDX";
|
|
6321
|
+
Lender22["COMPOUND_V2"] = "COMPOUND_V2";
|
|
6322
|
+
Lender22["OVIX"] = "OVIX";
|
|
6323
|
+
Lender22["VENUS"] = "VENUS";
|
|
6324
|
+
Lender22["VENUS_ETH"] = "VENUS_ETH";
|
|
6325
|
+
Lender22["VENUS_BNB"] = "VENUS_BNB";
|
|
6326
|
+
Lender22["VENUS_BTC"] = "VENUS_BTC";
|
|
6327
|
+
Lender22["VENUS_MEME"] = "VENUS_MEME";
|
|
6328
|
+
Lender22["VENUS_DEFI"] = "VENUS_DEFI";
|
|
6329
|
+
Lender22["VENUS_GAMEFI"] = "VENUS_GAMEFI";
|
|
6330
|
+
Lender22["VENUS_STABLE"] = "VENUS_STABLE";
|
|
6331
|
+
Lender22["VENUS_TRON"] = "VENUS_TRON";
|
|
6332
|
+
Lender22["VENUS_ETHENA"] = "VENUS_ETHENA";
|
|
6333
|
+
Lender22["VENUS_CURVE"] = "VENUS_CURVE";
|
|
6334
|
+
Lender22["SEGMENT"] = "SEGMENT";
|
|
6335
|
+
Lender22["ENCLABS"] = "ENCLABS";
|
|
6336
|
+
Lender22["ENCLABS_LST"] = "ENCLABS_LST";
|
|
6337
|
+
Lender22["ENCLABS_PT_USD"] = "ENCLABS_PT_USD";
|
|
6338
|
+
Lender22["ENCLABS_PT_ETH"] = "ENCLABS_PT_ETH";
|
|
6339
|
+
Lender22["BENQI"] = "BENQI";
|
|
6340
|
+
Lender22["BENQI_AVALANCE_ECOSYSTEM"] = "BENQI_AVALANCE_ECOSYSTEM";
|
|
6341
|
+
Lender22["COMPOUND_V3_USDC"] = "COMPOUND_V3_USDC";
|
|
6342
|
+
Lender22["COMPOUND_V3_USDT"] = "COMPOUND_V3_USDT";
|
|
6343
|
+
Lender22["COMPOUND_V3_USDE"] = "COMPOUND_V3_USDE";
|
|
6344
|
+
Lender22["COMPOUND_V3_USDBC"] = "COMPOUND_V3_USDBC";
|
|
6345
|
+
Lender22["COMPOUND_V3_USDCE"] = "COMPOUND_V3_USDCE";
|
|
6346
|
+
Lender22["COMPOUND_V3_USDS"] = "COMPOUND_V3_USDS";
|
|
6347
|
+
Lender22["COMPOUND_V3_WETH"] = "COMPOUND_V3_WETH";
|
|
6348
|
+
Lender22["COMPOUND_V3_WRON"] = "COMPOUND_V3_WRON";
|
|
6349
|
+
Lender22["COMPOUND_V3_AERO"] = "COMPOUND_V3_AERO";
|
|
6350
|
+
Lender22["COMPOUND_V3_WSTETH"] = "COMPOUND_V3_WSTETH";
|
|
6351
|
+
Lender22["COMPOUND_V3_WBTC"] = "COMPOUND_V3_WBTC";
|
|
6352
|
+
Lender22["INIT"] = "INIT";
|
|
6353
|
+
Lender22["MORPHO_BLUE"] = "MORPHO_BLUE";
|
|
6354
|
+
Lender22["SWAYLEND_USDC"] = "SWAYLEND_USDC";
|
|
6355
|
+
return Lender22;
|
|
6356
6356
|
})(Lender || {});
|
|
6357
6357
|
var AAVE_V32_LENDERS = [
|
|
6358
6358
|
"AAVE_V3",
|
|
@@ -6386,8 +6386,9 @@ var AAVE_V2_LENDERS = [
|
|
|
6386
6386
|
"KLAYBANK",
|
|
6387
6387
|
"VALAS",
|
|
6388
6388
|
"PHIAT",
|
|
6389
|
-
"RADIANT_V2"
|
|
6390
|
-
|
|
6389
|
+
"RADIANT_V2",
|
|
6390
|
+
"MAGSIN"
|
|
6391
|
+
/* MAGSIN */
|
|
6391
6392
|
];
|
|
6392
6393
|
var AAVE_V3_LENDERS = [
|
|
6393
6394
|
"HANA",
|
|
@@ -6395,7 +6396,6 @@ var AAVE_V3_LENDERS = [
|
|
|
6395
6396
|
"SPARK",
|
|
6396
6397
|
"KINZA",
|
|
6397
6398
|
"LENDOS",
|
|
6398
|
-
"MAGSIN",
|
|
6399
6399
|
"XLEND",
|
|
6400
6400
|
"RHOMBUS",
|
|
6401
6401
|
"RMM",
|
|
@@ -12015,30 +12015,6 @@ function organizeUserQueries(queries) {
|
|
|
12015
12015
|
};
|
|
12016
12016
|
return [...nonMorphos, morphosCollapsed];
|
|
12017
12017
|
}
|
|
12018
|
-
var AaveV2TypeGetUserReserveData = /* @__PURE__ */ ((AaveV2TypeGetUserReserveData2) => {
|
|
12019
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["currentATokenBalance"] = 0] = "currentATokenBalance";
|
|
12020
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["currentStableDebt"] = 1] = "currentStableDebt";
|
|
12021
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["currentVariableDebt"] = 2] = "currentVariableDebt";
|
|
12022
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["principalStableDebt"] = 3] = "principalStableDebt";
|
|
12023
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["scaledVariableDebt"] = 4] = "scaledVariableDebt";
|
|
12024
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["stableBorrowRate"] = 5] = "stableBorrowRate";
|
|
12025
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["liquidityRate"] = 6] = "liquidityRate";
|
|
12026
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["stableRateLastUpdated"] = 7] = "stableRateLastUpdated";
|
|
12027
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["usageAsCollateralEnabled"] = 8] = "usageAsCollateralEnabled";
|
|
12028
|
-
return AaveV2TypeGetUserReserveData2;
|
|
12029
|
-
})(AaveV2TypeGetUserReserveData || {});
|
|
12030
|
-
var AaveV3TypeGetUserReserveData = /* @__PURE__ */ ((AaveV3TypeGetUserReserveData2) => {
|
|
12031
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["currentATokenBalance"] = 0] = "currentATokenBalance";
|
|
12032
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["currentStableDebt"] = 1] = "currentStableDebt";
|
|
12033
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["currentVariableDebt"] = 2] = "currentVariableDebt";
|
|
12034
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["principalStableDebt"] = 3] = "principalStableDebt";
|
|
12035
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["scaledVariableDebt"] = 4] = "scaledVariableDebt";
|
|
12036
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["stableBorrowRate"] = 5] = "stableBorrowRate";
|
|
12037
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["liquidityRate"] = 6] = "liquidityRate";
|
|
12038
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["stableRateLastUpdated"] = 7] = "stableRateLastUpdated";
|
|
12039
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["usageAsCollateralEnabled"] = 8] = "usageAsCollateralEnabled";
|
|
12040
|
-
return AaveV3TypeGetUserReserveData2;
|
|
12041
|
-
})(AaveV3TypeGetUserReserveData || {});
|
|
12042
12018
|
|
|
12043
12019
|
// src/lending/user-data/aave-v2-type/userCallBuild.ts
|
|
12044
12020
|
var getBaseAaveV2Calls = (chainId, account, lender, assetsToQuery) => {
|
|
@@ -20486,6 +20462,7 @@ function getExponentForOracle(chainId, fork) {
|
|
|
20486
20462
|
}
|
|
20487
20463
|
if (chainId === Chain.XDC_NETWORK) return 0n;
|
|
20488
20464
|
if (chainId === Chain.TELOS_EVM_MAINNET) return 10n;
|
|
20465
|
+
if (chainId === Chain.SONIC_MAINNET && fork === Lender.POLTER) return 10n;
|
|
20489
20466
|
return AAVE_V2_LENDERS.includes(fork) ? 0n : 10n;
|
|
20490
20467
|
}
|
|
20491
20468
|
var parseAaveResults = (chainId, data, queries, list = {}) => {
|
|
@@ -20638,6 +20615,121 @@ var parseRWADynamicOracleResults = (chainId, data, assetName) => {
|
|
|
20638
20615
|
}
|
|
20639
20616
|
};
|
|
20640
20617
|
|
|
20618
|
+
// ../../node_modules/.pnpm/@1delta+lender-registry@0.0.5/node_modules/@1delta/lender-registry/dist/index.mjs
|
|
20619
|
+
var Lender2 = /* @__PURE__ */ ((Lender22) => {
|
|
20620
|
+
Lender22["AAVE_V3"] = "AAVE_V3";
|
|
20621
|
+
Lender22["AAVE_V3_PRIME"] = "AAVE_V3_PRIME";
|
|
20622
|
+
Lender22["AAVE_V3_ETHER_FI"] = "AAVE_V3_ETHER_FI";
|
|
20623
|
+
Lender22["AAVE_V3_HORIZON"] = "AAVE_V3_HORIZON";
|
|
20624
|
+
Lender22["AAVE_V2"] = "AAVE_V2";
|
|
20625
|
+
Lender22["AURELIUS"] = "AURELIUS";
|
|
20626
|
+
Lender22["LENDLE"] = "LENDLE";
|
|
20627
|
+
Lender22["LENDLE_CMETH"] = "LENDLE_CMETH";
|
|
20628
|
+
Lender22["LENDLE_SUSDE"] = "LENDLE_SUSDE";
|
|
20629
|
+
Lender22["LENDLE_PT_CMETH"] = "LENDLE_PT_CMETH";
|
|
20630
|
+
Lender22["MERIDIAN"] = "MERIDIAN";
|
|
20631
|
+
Lender22["TAKOTAKO"] = "TAKOTAKO";
|
|
20632
|
+
Lender22["TAKOTAKO_ETH"] = "TAKOTAKO_ETH";
|
|
20633
|
+
Lender22["HANA"] = "HANA";
|
|
20634
|
+
Lender22["YLDR"] = "YLDR";
|
|
20635
|
+
Lender22["MAGSIN"] = "MAGSIN";
|
|
20636
|
+
Lender22["SPARK"] = "SPARK";
|
|
20637
|
+
Lender22["NEREUS"] = "NEREUS";
|
|
20638
|
+
Lender22["KINZA"] = "KINZA";
|
|
20639
|
+
Lender22["GRANARY"] = "GRANARY";
|
|
20640
|
+
Lender22["LORE"] = "LORE";
|
|
20641
|
+
Lender22["LENDOS"] = "LENDOS";
|
|
20642
|
+
Lender22["IRONCLAD"] = "IRONCLAD";
|
|
20643
|
+
Lender22["MOLEND"] = "MOLEND";
|
|
20644
|
+
Lender22["SEISMIC"] = "SEISMIC";
|
|
20645
|
+
Lender22["POLTER"] = "POLTER";
|
|
20646
|
+
Lender22["AGAVE"] = "AGAVE";
|
|
20647
|
+
Lender22["MOOLA"] = "MOOLA";
|
|
20648
|
+
Lender22["XLEND"] = "XLEND";
|
|
20649
|
+
Lender22["KLAP"] = "KLAP";
|
|
20650
|
+
Lender22["RHOMBUS"] = "RHOMBUS";
|
|
20651
|
+
Lender22["RMM"] = "RMM";
|
|
20652
|
+
Lender22["KLAYBANK"] = "KLAYBANK";
|
|
20653
|
+
Lender22["SAKE"] = "SAKE";
|
|
20654
|
+
Lender22["SAKE_ASTAR"] = "SAKE_ASTAR";
|
|
20655
|
+
Lender22["LAYERBANK_V3"] = "LAYERBANK_V3";
|
|
20656
|
+
Lender22["COLEND"] = "COLEND";
|
|
20657
|
+
Lender22["COLEND_LSTBTC"] = "COLEND_LSTBTC";
|
|
20658
|
+
Lender22["PAC"] = "PAC";
|
|
20659
|
+
Lender22["VALAS"] = "VALAS";
|
|
20660
|
+
Lender22["HYPERLEND"] = "HYPERLEND";
|
|
20661
|
+
Lender22["HYPURRFI"] = "HYPURRFI";
|
|
20662
|
+
Lender22["HYPERYIELD"] = "HYPERYIELD";
|
|
20663
|
+
Lender22["MOONCAKE"] = "MOONCAKE";
|
|
20664
|
+
Lender22["PHIAT"] = "PHIAT";
|
|
20665
|
+
Lender22["RADIANT_V2"] = "RADIANT_V2";
|
|
20666
|
+
Lender22["FATHOM"] = "FATHOM";
|
|
20667
|
+
Lender22["U235"] = "U235";
|
|
20668
|
+
Lender22["QUOKKA_LEND"] = "QUOKKA_LEND";
|
|
20669
|
+
Lender22["ZEROLEND"] = "ZEROLEND";
|
|
20670
|
+
Lender22["ZEROLEND_STABLECOINS_RWA"] = "ZEROLEND_STABLECOINS_RWA";
|
|
20671
|
+
Lender22["ZEROLEND_ETH_LRTS"] = "ZEROLEND_ETH_LRTS";
|
|
20672
|
+
Lender22["ZEROLEND_BTC_LRTS"] = "ZEROLEND_BTC_LRTS";
|
|
20673
|
+
Lender22["ZEROLEND_CROAK"] = "ZEROLEND_CROAK";
|
|
20674
|
+
Lender22["ZEROLEND_FOXY"] = "ZEROLEND_FOXY";
|
|
20675
|
+
Lender22["AVALON"] = "AVALON";
|
|
20676
|
+
Lender22["AVALON_SOLVBTC"] = "AVALON_SOLVBTC";
|
|
20677
|
+
Lender22["AVALON_SWELLBTC"] = "AVALON_SWELLBTC";
|
|
20678
|
+
Lender22["AVALON_PUMPBTC"] = "AVALON_PUMPBTC";
|
|
20679
|
+
Lender22["AVALON_UNIBTC"] = "AVALON_UNIBTC";
|
|
20680
|
+
Lender22["AVALON_EBTC_LBTC"] = "AVALON_EBTC_LBTC";
|
|
20681
|
+
Lender22["AVALON_USDA"] = "AVALON_USDA";
|
|
20682
|
+
Lender22["AVALON_SKAIA"] = "AVALON_SKAIA";
|
|
20683
|
+
Lender22["AVALON_LORENZO"] = "AVALON_LORENZO";
|
|
20684
|
+
Lender22["AVALON_INNOVATION"] = "AVALON_INNOVATION";
|
|
20685
|
+
Lender22["AVALON_UBTC"] = "AVALON_UBTC";
|
|
20686
|
+
Lender22["AVALON_OBTC"] = "AVALON_OBTC";
|
|
20687
|
+
Lender22["AVALON_BEETS"] = "AVALON_BEETS";
|
|
20688
|
+
Lender22["AVALON_UNIIOTX"] = "AVALON_UNIIOTX";
|
|
20689
|
+
Lender22["AVALON_BOB"] = "AVALON_BOB";
|
|
20690
|
+
Lender22["AVALON_STBTC"] = "AVALON_STBTC";
|
|
20691
|
+
Lender22["AVALON_WBTC"] = "AVALON_WBTC";
|
|
20692
|
+
Lender22["AVALON_LBTC"] = "AVALON_LBTC";
|
|
20693
|
+
Lender22["AVALON_XAUM"] = "AVALON_XAUM";
|
|
20694
|
+
Lender22["AVALON_LISTA"] = "AVALON_LISTA";
|
|
20695
|
+
Lender22["AVALON_USDX"] = "AVALON_USDX";
|
|
20696
|
+
Lender22["COMPOUND_V2"] = "COMPOUND_V2";
|
|
20697
|
+
Lender22["OVIX"] = "OVIX";
|
|
20698
|
+
Lender22["VENUS"] = "VENUS";
|
|
20699
|
+
Lender22["VENUS_ETH"] = "VENUS_ETH";
|
|
20700
|
+
Lender22["VENUS_BNB"] = "VENUS_BNB";
|
|
20701
|
+
Lender22["VENUS_BTC"] = "VENUS_BTC";
|
|
20702
|
+
Lender22["VENUS_MEME"] = "VENUS_MEME";
|
|
20703
|
+
Lender22["VENUS_DEFI"] = "VENUS_DEFI";
|
|
20704
|
+
Lender22["VENUS_GAMEFI"] = "VENUS_GAMEFI";
|
|
20705
|
+
Lender22["VENUS_STABLE"] = "VENUS_STABLE";
|
|
20706
|
+
Lender22["VENUS_TRON"] = "VENUS_TRON";
|
|
20707
|
+
Lender22["VENUS_ETHENA"] = "VENUS_ETHENA";
|
|
20708
|
+
Lender22["VENUS_CURVE"] = "VENUS_CURVE";
|
|
20709
|
+
Lender22["SEGMENT"] = "SEGMENT";
|
|
20710
|
+
Lender22["ENCLABS"] = "ENCLABS";
|
|
20711
|
+
Lender22["ENCLABS_LST"] = "ENCLABS_LST";
|
|
20712
|
+
Lender22["ENCLABS_PT_USD"] = "ENCLABS_PT_USD";
|
|
20713
|
+
Lender22["ENCLABS_PT_ETH"] = "ENCLABS_PT_ETH";
|
|
20714
|
+
Lender22["BENQI"] = "BENQI";
|
|
20715
|
+
Lender22["BENQI_AVALANCE_ECOSYSTEM"] = "BENQI_AVALANCE_ECOSYSTEM";
|
|
20716
|
+
Lender22["COMPOUND_V3_USDC"] = "COMPOUND_V3_USDC";
|
|
20717
|
+
Lender22["COMPOUND_V3_USDT"] = "COMPOUND_V3_USDT";
|
|
20718
|
+
Lender22["COMPOUND_V3_USDE"] = "COMPOUND_V3_USDE";
|
|
20719
|
+
Lender22["COMPOUND_V3_USDBC"] = "COMPOUND_V3_USDBC";
|
|
20720
|
+
Lender22["COMPOUND_V3_USDCE"] = "COMPOUND_V3_USDCE";
|
|
20721
|
+
Lender22["COMPOUND_V3_USDS"] = "COMPOUND_V3_USDS";
|
|
20722
|
+
Lender22["COMPOUND_V3_WETH"] = "COMPOUND_V3_WETH";
|
|
20723
|
+
Lender22["COMPOUND_V3_WRON"] = "COMPOUND_V3_WRON";
|
|
20724
|
+
Lender22["COMPOUND_V3_AERO"] = "COMPOUND_V3_AERO";
|
|
20725
|
+
Lender22["COMPOUND_V3_WSTETH"] = "COMPOUND_V3_WSTETH";
|
|
20726
|
+
Lender22["COMPOUND_V3_WBTC"] = "COMPOUND_V3_WBTC";
|
|
20727
|
+
Lender22["INIT"] = "INIT";
|
|
20728
|
+
Lender22["MORPHO_BLUE"] = "MORPHO_BLUE";
|
|
20729
|
+
Lender22["SWAYLEND_USDC"] = "SWAYLEND_USDC";
|
|
20730
|
+
return Lender22;
|
|
20731
|
+
})(Lender2 || {});
|
|
20732
|
+
|
|
20641
20733
|
// ../../node_modules/.pnpm/@1delta+dex-registry@0.0.80/node_modules/@1delta/dex-registry/dist/index.mjs
|
|
20642
20734
|
var BALANCER_V2 = {
|
|
20643
20735
|
vault: {
|
|
@@ -23545,92 +23637,92 @@ var zeroAddress2 = "0x0000000000000000000000000000000000000000";
|
|
|
23545
23637
|
});
|
|
23546
23638
|
var FLASH_LOAN_IDS = {
|
|
23547
23639
|
/** Aave V3s */
|
|
23548
|
-
[
|
|
23549
|
-
[
|
|
23550
|
-
[
|
|
23551
|
-
[
|
|
23640
|
+
[Lender2.AAVE_V3]: 0,
|
|
23641
|
+
[Lender2.AAVE_V3_PRIME]: 1,
|
|
23642
|
+
[Lender2.AAVE_V3_ETHER_FI]: 2,
|
|
23643
|
+
[Lender2.AAVE_V3_HORIZON]: 3,
|
|
23552
23644
|
// reserve for more aave V3s
|
|
23553
|
-
[
|
|
23645
|
+
[Lender2.SPARK]: 10,
|
|
23554
23646
|
// xdc network lender
|
|
23555
|
-
[
|
|
23647
|
+
[Lender2.FATHOM]: 15,
|
|
23556
23648
|
// Morph
|
|
23557
23649
|
// [Lender.QUOKKA_LEND]: 15,
|
|
23558
23650
|
// zerolends
|
|
23559
|
-
[
|
|
23560
|
-
[
|
|
23561
|
-
[
|
|
23562
|
-
[
|
|
23563
|
-
[
|
|
23564
|
-
[
|
|
23651
|
+
[Lender2.ZEROLEND]: 20,
|
|
23652
|
+
[Lender2.ZEROLEND_STABLECOINS_RWA]: 21,
|
|
23653
|
+
[Lender2.ZEROLEND_ETH_LRTS]: 22,
|
|
23654
|
+
[Lender2.ZEROLEND_BTC_LRTS]: 23,
|
|
23655
|
+
[Lender2.ZEROLEND_CROAK]: 24,
|
|
23656
|
+
[Lender2.ZEROLEND_FOXY]: 25,
|
|
23565
23657
|
// avalons
|
|
23566
|
-
[
|
|
23567
|
-
[
|
|
23568
|
-
[
|
|
23569
|
-
[
|
|
23570
|
-
[
|
|
23571
|
-
[
|
|
23572
|
-
[
|
|
23573
|
-
[
|
|
23574
|
-
[
|
|
23575
|
-
[
|
|
23576
|
-
[
|
|
23577
|
-
[
|
|
23578
|
-
[
|
|
23579
|
-
[
|
|
23580
|
-
[
|
|
23581
|
-
[
|
|
23582
|
-
[
|
|
23583
|
-
[
|
|
23584
|
-
[
|
|
23585
|
-
[
|
|
23586
|
-
[
|
|
23658
|
+
[Lender2.AVALON]: 50,
|
|
23659
|
+
[Lender2.AVALON_SOLVBTC]: 51,
|
|
23660
|
+
[Lender2.AVALON_SWELLBTC]: 52,
|
|
23661
|
+
[Lender2.AVALON_PUMPBTC]: 53,
|
|
23662
|
+
[Lender2.AVALON_EBTC_LBTC]: 54,
|
|
23663
|
+
[Lender2.AVALON_USDA]: 55,
|
|
23664
|
+
[Lender2.AVALON_SKAIA]: 56,
|
|
23665
|
+
[Lender2.AVALON_LORENZO]: 57,
|
|
23666
|
+
[Lender2.AVALON_INNOVATION]: 58,
|
|
23667
|
+
[Lender2.AVALON_UBTC]: 59,
|
|
23668
|
+
[Lender2.AVALON_OBTC]: 60,
|
|
23669
|
+
[Lender2.AVALON_BEETS]: 61,
|
|
23670
|
+
[Lender2.AVALON_UNIIOTX]: 62,
|
|
23671
|
+
[Lender2.AVALON_BOB]: 63,
|
|
23672
|
+
[Lender2.AVALON_STBTC]: 64,
|
|
23673
|
+
[Lender2.AVALON_WBTC]: 65,
|
|
23674
|
+
[Lender2.AVALON_LBTC]: 66,
|
|
23675
|
+
[Lender2.AVALON_XAUM]: 67,
|
|
23676
|
+
[Lender2.AVALON_LISTA]: 68,
|
|
23677
|
+
[Lender2.AVALON_USDX]: 69,
|
|
23678
|
+
[Lender2.AVALON_UNIBTC]: 70,
|
|
23587
23679
|
// more exotics
|
|
23588
|
-
[
|
|
23589
|
-
[
|
|
23590
|
-
[
|
|
23591
|
-
[
|
|
23592
|
-
[
|
|
23593
|
-
[
|
|
23594
|
-
[
|
|
23595
|
-
[
|
|
23596
|
-
[
|
|
23597
|
-
[
|
|
23598
|
-
[
|
|
23599
|
-
[
|
|
23600
|
-
[
|
|
23601
|
-
[
|
|
23680
|
+
[Lender2.HANA]: 81,
|
|
23681
|
+
[Lender2.PAC]: 81,
|
|
23682
|
+
[Lender2.KINZA]: 82,
|
|
23683
|
+
[Lender2.LENDOS]: 83,
|
|
23684
|
+
[Lender2.MAGSIN]: 84,
|
|
23685
|
+
[Lender2.XLEND]: 85,
|
|
23686
|
+
[Lender2.RHOMBUS]: 86,
|
|
23687
|
+
[Lender2.SAKE]: 87,
|
|
23688
|
+
[Lender2.SAKE_ASTAR]: 88,
|
|
23689
|
+
[Lender2.RMM]: 90,
|
|
23690
|
+
[Lender2.LAYERBANK_V3]: 91,
|
|
23691
|
+
[Lender2.HYPERLEND]: 81,
|
|
23692
|
+
[Lender2.HYPURRFI]: 83,
|
|
23693
|
+
[Lender2.HYPERYIELD]: 63,
|
|
23602
23694
|
// colend
|
|
23603
|
-
[
|
|
23604
|
-
[
|
|
23695
|
+
[Lender2.COLEND]: 102,
|
|
23696
|
+
[Lender2.COLEND_LSTBTC]: 103,
|
|
23605
23697
|
// Lendle isolateds
|
|
23606
|
-
[
|
|
23607
|
-
[
|
|
23608
|
-
[
|
|
23698
|
+
[Lender2.LENDLE_CMETH]: 102,
|
|
23699
|
+
[Lender2.LENDLE_PT_CMETH]: 103,
|
|
23700
|
+
[Lender2.LENDLE_SUSDE]: 104,
|
|
23609
23701
|
// exotic
|
|
23610
|
-
[
|
|
23702
|
+
[Lender2.YLDR]: 100,
|
|
23611
23703
|
/** Aave V2s */
|
|
23612
|
-
[
|
|
23613
|
-
[
|
|
23614
|
-
[
|
|
23615
|
-
[
|
|
23616
|
-
[
|
|
23617
|
-
[
|
|
23618
|
-
[
|
|
23619
|
-
[
|
|
23620
|
-
[
|
|
23621
|
-
[
|
|
23622
|
-
[
|
|
23623
|
-
[
|
|
23624
|
-
[
|
|
23625
|
-
[
|
|
23626
|
-
[
|
|
23627
|
-
[
|
|
23628
|
-
[
|
|
23629
|
-
[
|
|
23630
|
-
[
|
|
23631
|
-
[
|
|
23704
|
+
[Lender2.AAVE_V2]: 0,
|
|
23705
|
+
[Lender2.AURELIUS]: 2,
|
|
23706
|
+
[Lender2.LENDLE]: 1,
|
|
23707
|
+
[Lender2.MERIDIAN]: 3,
|
|
23708
|
+
[Lender2.TAKOTAKO]: 4,
|
|
23709
|
+
[Lender2.TAKOTAKO_ETH]: 5,
|
|
23710
|
+
[Lender2.NEREUS]: 6,
|
|
23711
|
+
[Lender2.GRANARY]: 7,
|
|
23712
|
+
[Lender2.LORE]: 8,
|
|
23713
|
+
[Lender2.IRONCLAD]: 9,
|
|
23714
|
+
[Lender2.MOLEND]: 10,
|
|
23715
|
+
[Lender2.POLTER]: 11,
|
|
23716
|
+
[Lender2.SEISMIC]: 12,
|
|
23717
|
+
[Lender2.AGAVE]: 13,
|
|
23718
|
+
[Lender2.MOOLA]: 14,
|
|
23719
|
+
[Lender2.KLAP]: 15,
|
|
23720
|
+
[Lender2.KLAYBANK]: 16,
|
|
23721
|
+
[Lender2.VALAS]: 16,
|
|
23722
|
+
[Lender2.PHIAT]: 16,
|
|
23723
|
+
[Lender2.RADIANT_V2]: 20,
|
|
23632
23724
|
// Morphos
|
|
23633
|
-
[
|
|
23725
|
+
[Lender2.MORPHO_BLUE]: 0,
|
|
23634
23726
|
/** Balancer V2 */
|
|
23635
23727
|
[
|
|
23636
23728
|
"BALANCER_V2"
|
|
@@ -24143,16 +24235,6 @@ function attachPricesToFlashLiquidity(chainId, liq, prices, list = {}) {
|
|
|
24143
24235
|
return liqCopy;
|
|
24144
24236
|
}
|
|
24145
24237
|
|
|
24146
|
-
|
|
24147
|
-
var ChainlinkAggregatorIndexes2 = /* @__PURE__ */ ((ChainlinkAggregatorIndexes3) => {
|
|
24148
|
-
ChainlinkAggregatorIndexes3[ChainlinkAggregatorIndexes3["roundId"] = 0] = "roundId";
|
|
24149
|
-
ChainlinkAggregatorIndexes3[ChainlinkAggregatorIndexes3["answer"] = 1] = "answer";
|
|
24150
|
-
ChainlinkAggregatorIndexes3[ChainlinkAggregatorIndexes3["startedAt"] = 2] = "startedAt";
|
|
24151
|
-
ChainlinkAggregatorIndexes3[ChainlinkAggregatorIndexes3["updatedAt"] = 3] = "updatedAt";
|
|
24152
|
-
ChainlinkAggregatorIndexes3[ChainlinkAggregatorIndexes3["answeredInRound"] = 4] = "answeredInRound";
|
|
24153
|
-
return ChainlinkAggregatorIndexes3;
|
|
24154
|
-
})(ChainlinkAggregatorIndexes2 || {});
|
|
24155
|
-
|
|
24156
|
-
export { AaveV2TypeGetUserReserveData, AaveV3TypeGetUserReserveData, ChainlinkAggregatorIndexes2 as ChainlinkAggregatorIndexes, attachPricesToFlashLiquidity, convertLenderUserDataResult, fetchDefillamaData, fetchDefillamaHistData, fetchFlashLiquidityForChain, fetchGeneralYields, fetchLenderMetaFromDir, fetchLenderMetaFromDirAndInitialize, fetchMainPrices, fetchPendlePrices, filterLendersByProtocol, generateLendingPairs, getAavesForChain, getDistinctPairsByShortAsset, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataResult, getLendersForChain, getTopPairs, inititalizeAllData, isAaveType, isAaveV2Type, isAaveV32Type, isAaveV3Type, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isMultiMarket, isYLDR, organizeUserQueries };
|
|
24238
|
+
export { attachPricesToFlashLiquidity, convertLenderUserDataResult, fetchDefillamaData, fetchDefillamaHistData, fetchFlashLiquidityForChain, fetchGeneralYields, fetchLenderMetaFromDir, fetchLenderMetaFromDirAndInitialize, fetchMainPrices, fetchPendlePrices, filterLendersByProtocol, generateLendingPairs, getAavesForChain, getDistinctPairsByShortAsset, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataResult, getLendersForChain, getTopPairs, inititalizeAllData, isAaveType, isAaveV2Type, isAaveV32Type, isAaveV3Type, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isMultiMarket, isYLDR };
|
|
24157
24239
|
//# sourceMappingURL=index.js.map
|
|
24158
24240
|
//# sourceMappingURL=index.js.map
|