@defisaver/positions-sdk 2.1.78-aave-v4-dev → 2.1.79-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.
@@ -61,7 +61,7 @@ const fetchSparkAirdropRewards = (provider, network, walletAddresses) => __await
61
61
  continue;
62
62
  }
63
63
  // Filter out IGNITION_REWARDS since they are no longer active
64
- const filteredData = data.filter((rewardInfo) => rewardInfo.type !== claiming_1.SparkAirdropType.SPARK_IGNITION);
64
+ const filteredData = data.filter((rewardInfo) => rewardInfo.type !== claiming_1.SparkAirdropType.SPARK_IGNITION && rewardInfo.type !== claiming_1.SparkAirdropType.PRE_FARMING_AND_SOCIAL);
65
65
  allClaimData.push({ walletAddress, data: filteredData });
66
66
  // Collect contract call data
67
67
  filteredData.forEach((airdropInfo) => {
@@ -92844,7 +92844,7 @@ export declare const AaveV4View: {
92844
92844
  }];
92845
92845
  readonly networks: {
92846
92846
  readonly "1": {
92847
- readonly address: "0x34b6B5A3e8fB9135EbB47ACE4242b47E51064f5D";
92847
+ readonly address: "0x10B748Dc504C2515Bb6A9e23CB2F686090b6c584";
92848
92848
  };
92849
92849
  };
92850
92850
  };
@@ -1330,7 +1330,7 @@ exports.AaveV4View = {
1330
1330
  "abi": [{ "inputs": [{ "internalType": "address", "name": "_eoa", "type": "address" }, { "internalType": "address", "name": "_proxy", "type": "address" }, { "internalType": "address", "name": "_spoke", "type": "address" }], "name": "getEOAApprovalsAndBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "eoa", "type": "address" }, { "internalType": "address", "name": "proxy", "type": "address" }, { "internalType": "address", "name": "spoke", "type": "address" }, { "internalType": "bool", "name": "giverPositionManagerEnabled", "type": "bool" }, { "internalType": "bool", "name": "takerPositionManagerEnabled", "type": "bool" }, { "internalType": "bool", "name": "configPositionManagerEnabled", "type": "bool" }, { "internalType": "bool", "name": "canSetUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "canUpdateUserRiskPremium", "type": "bool" }, { "internalType": "bool", "name": "canUpdateUserDynamicConfig", "type": "bool" }, { "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "delegateeBorrowApproval", "type": "uint256" }, { "internalType": "uint256", "name": "delegateeWithdrawApproval", "type": "uint256" }, { "internalType": "uint256", "name": "eoaReserveBalance", "type": "uint256" }], "internalType": "struct AaveV4View.EOAReserveApprovalData[]", "name": "reserveApprovals", "type": "tuple[]" }], "internalType": "struct AaveV4View.EOAApprovalData", "name": "data", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getHealthFactor", "outputs": [{ "internalType": "uint256", "name": "healthFactor", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_hub", "type": "address" }], "name": "getHubAllAssetsData", "outputs": [{ "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawnShares", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremiumShares", "type": "uint256" }, { "internalType": "uint256", "name": "swept", "type": "uint256" }, { "internalType": "uint16", "name": "liquidityFee", "type": "uint16" }, { "internalType": "uint120", "name": "drawnIndex", "type": "uint120" }, { "internalType": "uint96", "name": "drawnRate", "type": "uint96" }, { "internalType": "uint40", "name": "lastUpdateTimestamp", "type": "uint40" }, { "internalType": "address", "name": "irStrategy", "type": "address" }, { "internalType": "address", "name": "reinvestmentController", "type": "address" }, { "internalType": "address", "name": "feeReceiver", "type": "address" }, { "internalType": "uint256", "name": "deficitRay", "type": "uint256" }], "internalType": "struct AaveV4View.HubAssetData[]", "name": "hubAssetData", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_hub", "type": "address" }, { "internalType": "uint256", "name": "_assetId", "type": "uint256" }], "name": "getHubAssetData", "outputs": [{ "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawnShares", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremiumShares", "type": "uint256" }, { "internalType": "uint256", "name": "swept", "type": "uint256" }, { "internalType": "uint16", "name": "liquidityFee", "type": "uint16" }, { "internalType": "uint120", "name": "drawnIndex", "type": "uint120" }, { "internalType": "uint96", "name": "drawnRate", "type": "uint96" }, { "internalType": "uint40", "name": "lastUpdateTimestamp", "type": "uint40" }, { "internalType": "address", "name": "irStrategy", "type": "address" }, { "internalType": "address", "name": "reinvestmentController", "type": "address" }, { "internalType": "address", "name": "feeReceiver", "type": "address" }, { "internalType": "uint256", "name": "deficitRay", "type": "uint256" }], "internalType": "struct AaveV4View.HubAssetData", "name": "hubAssetData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getLoanData", "outputs": [{ "components": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "riskPremium", "type": "uint256" }, { "internalType": "uint256", "name": "avgCollateralFactor", "type": "uint256" }, { "internalType": "uint256", "name": "healthFactor", "type": "uint256" }, { "internalType": "uint256", "name": "totalCollateralInUsd", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebtInUsdRay", "type": "uint256" }, { "internalType": "uint256", "name": "activeCollateralCount", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCount", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "supplied", "type": "uint256" }, { "internalType": "uint256", "name": "drawn", "type": "uint256" }, { "internalType": "uint256", "name": "premium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "bool", "name": "isUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "isBorrowing", "type": "bool" }], "internalType": "struct AaveV4View.UserReserveData[]", "name": "reserves", "type": "tuple[]" }], "internalType": "struct AaveV4View.LoanData", "name": "loanData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_spokes", "type": "address[]" }], "name": "getLoanDataForMultipleSpokes", "outputs": [{ "components": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "riskPremium", "type": "uint256" }, { "internalType": "uint256", "name": "avgCollateralFactor", "type": "uint256" }, { "internalType": "uint256", "name": "healthFactor", "type": "uint256" }, { "internalType": "uint256", "name": "totalCollateralInUsd", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebtInUsdRay", "type": "uint256" }, { "internalType": "uint256", "name": "activeCollateralCount", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCount", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "supplied", "type": "uint256" }, { "internalType": "uint256", "name": "drawn", "type": "uint256" }, { "internalType": "uint256", "name": "premium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "bool", "name": "isUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "isBorrowing", "type": "bool" }], "internalType": "struct AaveV4View.UserReserveData[]", "name": "reserves", "type": "tuple[]" }], "internalType": "struct AaveV4View.LoanData[]", "name": "loans", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address[]", "name": "_users", "type": "address[]" }], "name": "getLoanDataForMultipleUsers", "outputs": [{ "components": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "riskPremium", "type": "uint256" }, { "internalType": "uint256", "name": "avgCollateralFactor", "type": "uint256" }, { "internalType": "uint256", "name": "healthFactor", "type": "uint256" }, { "internalType": "uint256", "name": "totalCollateralInUsd", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebtInUsdRay", "type": "uint256" }, { "internalType": "uint256", "name": "activeCollateralCount", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCount", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "supplied", "type": "uint256" }, { "internalType": "uint256", "name": "drawn", "type": "uint256" }, { "internalType": "uint256", "name": "premium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "bool", "name": "isUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "isBorrowing", "type": "bool" }], "internalType": "struct AaveV4View.UserReserveData[]", "name": "reserves", "type": "tuple[]" }], "internalType": "struct AaveV4View.LoanData[]", "name": "loans", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getLoanDataFull", "outputs": [{ "components": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "riskPremium", "type": "uint256" }, { "internalType": "uint256", "name": "avgCollateralFactor", "type": "uint256" }, { "internalType": "uint256", "name": "healthFactor", "type": "uint256" }, { "internalType": "uint256", "name": "totalCollateralInUsd", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebtInUsdRay", "type": "uint256" }, { "internalType": "uint256", "name": "activeCollateralCount", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCount", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "bool", "name": "isUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "isBorrowing", "type": "bool" }, { "internalType": "bool", "name": "reservePaused", "type": "bool" }, { "internalType": "bool", "name": "reserveFrozen", "type": "bool" }, { "internalType": "bool", "name": "borrowable", "type": "bool" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }, { "internalType": "uint256", "name": "userSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "userDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "userPremium", "type": "uint256" }, { "internalType": "uint256", "name": "userTotalDebt", "type": "uint256" }, { "internalType": "uint24", "name": "collateralRisk", "type": "uint24" }, { "internalType": "uint16", "name": "userCollateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "userMaxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "userLiquidationFee", "type": "uint16" }, { "internalType": "uint16", "name": "latestCollateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "latestMaxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "latestLiquidationFee", "type": "uint16" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint16", "name": "hubAssetId", "type": "uint16" }, { "internalType": "uint256", "name": "hubLiquidity", "type": "uint256" }, { "internalType": "uint96", "name": "drawnRate", "type": "uint96" }, { "internalType": "uint120", "name": "drawnIndex", "type": "uint120" }, { "internalType": "uint256", "name": "spokeTotalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "spokeSupplyCap", "type": "uint256" }, { "internalType": "uint256", "name": "spokeBorrowCap", "type": "uint256" }, { "internalType": "uint256", "name": "spokeDeficitRay", "type": "uint256" }], "internalType": "struct AaveV4View.UserReserveDataFull[]", "name": "reserves", "type": "tuple[]" }], "internalType": "struct AaveV4View.LoanDataWithFullReserves", "name": "loanData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256", "name": "_reserveId", "type": "uint256" }], "name": "getReserveData", "outputs": [{ "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "internalType": "struct AaveV4View.ReserveData", "name": "reserveData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256", "name": "_reserveId", "type": "uint256" }], "name": "getReserveDataFull", "outputs": [{ "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "bool", "name": "paused", "type": "bool" }, { "internalType": "bool", "name": "frozen", "type": "bool" }, { "internalType": "bool", "name": "borrowable", "type": "bool" }, { "internalType": "uint24", "name": "collateralRisk", "type": "uint24" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "supplyCap", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCap", "type": "uint256" }, { "internalType": "uint256", "name": "deficitRay", "type": "uint256" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }], "internalType": "struct AaveV4View.ReserveDataFull", "name": "reserveData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256", "name": "_reserveId", "type": "uint256" }], "name": "getReservePrice", "outputs": [{ "internalType": "uint256", "name": "price", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256[]", "name": "_reserveIds", "type": "uint256[]" }], "name": "getReservePrices", "outputs": [{ "internalType": "uint256[]", "name": "prices", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256[]", "name": "_reserveIds", "type": "uint256[]" }], "name": "getReservesData", "outputs": [{ "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "internalType": "struct AaveV4View.ReserveData[]", "name": "reserveData", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256[]", "name": "_reserveIds", "type": "uint256[]" }], "name": "getReservesDataFull", "outputs": [{ "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "bool", "name": "paused", "type": "bool" }, { "internalType": "bool", "name": "frozen", "type": "bool" }, { "internalType": "bool", "name": "borrowable", "type": "bool" }, { "internalType": "uint24", "name": "collateralRisk", "type": "uint24" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "supplyCap", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCap", "type": "uint256" }, { "internalType": "uint256", "name": "deficitRay", "type": "uint256" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }], "internalType": "struct AaveV4View.ReserveDataFull[]", "name": "reserveData", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }], "name": "getSpokeData", "outputs": [{ "components": [{ "internalType": "uint128", "name": "targetHealthFactor", "type": "uint128" }, { "internalType": "uint64", "name": "healthFactorForMaxBonus", "type": "uint64" }, { "internalType": "uint16", "name": "liquidationBonusFactor", "type": "uint16" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "uint256", "name": "oracleDecimals", "type": "uint256" }, { "internalType": "uint256", "name": "reserveCount", "type": "uint256" }], "internalType": "struct AaveV4View.SpokeData", "name": "spokeData", "type": "tuple" }, { "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "internalType": "struct AaveV4View.ReserveData[]", "name": "reserves", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }], "name": "getSpokeDataFull", "outputs": [{ "components": [{ "internalType": "uint128", "name": "targetHealthFactor", "type": "uint128" }, { "internalType": "uint64", "name": "healthFactorForMaxBonus", "type": "uint64" }, { "internalType": "uint16", "name": "liquidationBonusFactor", "type": "uint16" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "uint256", "name": "oracleDecimals", "type": "uint256" }, { "internalType": "uint256", "name": "reserveCount", "type": "uint256" }], "internalType": "struct AaveV4View.SpokeData", "name": "spokeData", "type": "tuple" }, { "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "bool", "name": "paused", "type": "bool" }, { "internalType": "bool", "name": "frozen", "type": "bool" }, { "internalType": "bool", "name": "borrowable", "type": "bool" }, { "internalType": "uint24", "name": "collateralRisk", "type": "uint24" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "supplyCap", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCap", "type": "uint256" }, { "internalType": "uint256", "name": "deficitRay", "type": "uint256" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }], "internalType": "struct AaveV4View.ReserveDataFull[]", "name": "reserves", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_hub", "type": "address" }, { "internalType": "uint256", "name": "_assetId", "type": "uint256" }], "name": "getSpokesForAsset", "outputs": [{ "internalType": "address[]", "name": "spokes", "type": "address[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getTokenizationSpokeData", "outputs": [{ "components": [{ "internalType": "address", "name": "underlyingAsset", "type": "address" }, { "internalType": "uint256", "name": "assetId", "type": "uint256" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "spoke", "type": "address" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }, { "internalType": "uint256", "name": "spokeDepositCap", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalAssets", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalShares", "type": "uint256" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint256", "name": "hubLiquidity", "type": "uint256" }, { "internalType": "uint96", "name": "hubDrawnRate", "type": "uint96" }, { "internalType": "uint256", "name": "convertToShares", "type": "uint256" }, { "internalType": "uint256", "name": "convertToAssets", "type": "uint256" }, { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "userSuppliedAssets", "type": "uint256" }, { "internalType": "uint256", "name": "userSuppliedShares", "type": "uint256" }], "internalType": "struct AaveV4View.TokenizationSpokeData", "name": "spokeData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_spokes", "type": "address[]" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getTokenizationSpokesData", "outputs": [{ "components": [{ "internalType": "address", "name": "underlyingAsset", "type": "address" }, { "internalType": "uint256", "name": "assetId", "type": "uint256" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "spoke", "type": "address" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }, { "internalType": "uint256", "name": "spokeDepositCap", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalAssets", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalShares", "type": "uint256" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint256", "name": "hubLiquidity", "type": "uint256" }, { "internalType": "uint96", "name": "hubDrawnRate", "type": "uint96" }, { "internalType": "uint256", "name": "convertToShares", "type": "uint256" }, { "internalType": "uint256", "name": "convertToAssets", "type": "uint256" }, { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "userSuppliedAssets", "type": "uint256" }, { "internalType": "uint256", "name": "userSuppliedShares", "type": "uint256" }], "internalType": "struct AaveV4View.TokenizationSpokeData[]", "name": "spokeData", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "uint256[]", "name": "_reserveIds", "type": "uint256[]" }], "name": "getUserReserveData", "outputs": [{ "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "supplied", "type": "uint256" }, { "internalType": "uint256", "name": "drawn", "type": "uint256" }, { "internalType": "uint256", "name": "premium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "bool", "name": "isUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "isBorrowing", "type": "bool" }], "internalType": "struct AaveV4View.UserReserveData[]", "name": "_userReserves", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
1331
1331
  "networks": {
1332
1332
  "1": {
1333
- "address": "0x34b6B5A3e8fB9135EbB47ACE4242b47E51064f5D",
1333
+ "address": "0x10B748Dc504C2515Bb6A9e23CB2F686090b6c584",
1334
1334
  }
1335
1335
  }
1336
1336
  };
@@ -10,19 +10,25 @@ export declare const AaveV4Hubs: (networkId: NetworkNumber) => {
10
10
  export declare const getAaveV4HubTypeInfo: (type: AaveV4HubsType, network?: NetworkNumber) => AaveV4HubInfo;
11
11
  export declare const getAaveV4HubByAddress: (networkId: NetworkNumber, address: string) => AaveV4HubInfo | undefined;
12
12
  export declare const AAVE_V4_BLUECHIP_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
13
- export declare const AAVE_V4_ETHENA_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
13
+ export declare const AAVE_V4_ETHENA_CORRELATED_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
14
+ export declare const AAVE_V4_ETHENA_ECOSYSTEM_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
14
15
  export declare const AAVE_V4_ETHERFI_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
16
+ export declare const AAVE_V4_FOREX_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
15
17
  export declare const AAVE_V4_GOLD_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
16
18
  export declare const AAVE_V4_KELP_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
17
19
  export declare const AAVE_V4_LIDO_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
20
+ export declare const AAVE_V4_LOMBARD_BTC_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
18
21
  export declare const AAVE_V4_MAIN_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
19
22
  export declare const AaveV4Spokes: (networkId: NetworkNumber) => {
20
23
  readonly aave_v4_bluechip_spoke: AaveV4SpokeInfo;
21
- readonly aave_v4_ethena_spoke: AaveV4SpokeInfo;
24
+ readonly aave_v4_ethena_correlated_spoke: AaveV4SpokeInfo;
25
+ readonly aave_v4_ethena_ecosystem_spoke: AaveV4SpokeInfo;
22
26
  readonly aave_v4_etherfi_spoke: AaveV4SpokeInfo;
27
+ readonly aave_v4_forex_spoke: AaveV4SpokeInfo;
23
28
  readonly aave_v4_gold_spoke: AaveV4SpokeInfo;
24
29
  readonly aave_v4_kelp_spoke: AaveV4SpokeInfo;
25
30
  readonly aave_v4_lido_spoke: AaveV4SpokeInfo;
31
+ readonly aave_v4_lombard_btc_spoke: AaveV4SpokeInfo;
26
32
  readonly aave_v4_main_spoke: AaveV4SpokeInfo;
27
33
  };
28
34
  export declare const getAaveV4SpokeTypeInfo: (type: AaveV4SpokesType, network?: NetworkNumber) => AaveV4SpokeInfo;
@@ -1,27 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAaveV4SpokeTypeInfo = exports.AaveV4Spokes = exports.AAVE_V4_MAIN_SPOKE = exports.AAVE_V4_LIDO_SPOKE = exports.AAVE_V4_KELP_SPOKE = exports.AAVE_V4_GOLD_SPOKE = exports.AAVE_V4_ETHERFI_SPOKE = exports.AAVE_V4_ETHENA_SPOKE = exports.AAVE_V4_BLUECHIP_SPOKE = exports.getAaveV4HubByAddress = exports.getAaveV4HubTypeInfo = exports.AaveV4Hubs = exports.AAVE_V4_PRIME_HUB = exports.AAVE_V4_PLUS_HUB = exports.AAVE_V4_CORE_HUB = void 0;
3
+ exports.getAaveV4SpokeTypeInfo = exports.AaveV4Spokes = exports.AAVE_V4_MAIN_SPOKE = exports.AAVE_V4_LOMBARD_BTC_SPOKE = exports.AAVE_V4_LIDO_SPOKE = exports.AAVE_V4_KELP_SPOKE = exports.AAVE_V4_GOLD_SPOKE = exports.AAVE_V4_FOREX_SPOKE = exports.AAVE_V4_ETHERFI_SPOKE = exports.AAVE_V4_ETHENA_ECOSYSTEM_SPOKE = exports.AAVE_V4_ETHENA_CORRELATED_SPOKE = exports.AAVE_V4_BLUECHIP_SPOKE = exports.getAaveV4HubByAddress = exports.getAaveV4HubTypeInfo = exports.AaveV4Hubs = exports.AAVE_V4_PRIME_HUB = exports.AAVE_V4_PLUS_HUB = exports.AAVE_V4_CORE_HUB = void 0;
4
4
  const types_1 = require("../../types");
5
5
  // HUBS
6
6
  const AAVE_V4_CORE_HUB = (networkId) => ({
7
7
  chainIds: [types_1.NetworkNumber.Eth],
8
8
  label: 'Core Hub',
9
9
  value: types_1.AaveV4HubsType.AaveV4CoreHub,
10
- address: '0x3Ed2C9829FBCab6015E331a0352F8ae148217D70',
10
+ address: '0x630c2cFF89cb11E62dE047EaeD8C4B396906bD7D',
11
11
  });
12
12
  exports.AAVE_V4_CORE_HUB = AAVE_V4_CORE_HUB;
13
13
  const AAVE_V4_PLUS_HUB = (networkId) => ({
14
14
  chainIds: [types_1.NetworkNumber.Eth],
15
15
  label: 'Plus Hub',
16
16
  value: types_1.AaveV4HubsType.AaveV4PlusHub,
17
- address: '0xcb8C80026248f92c6DE735264c23c8e22922C562',
17
+ address: '0x903395aEF788bD0A3a4c7a08651a9115add7c36b',
18
18
  });
19
19
  exports.AAVE_V4_PLUS_HUB = AAVE_V4_PLUS_HUB;
20
20
  const AAVE_V4_PRIME_HUB = (networkId) => ({
21
21
  chainIds: [types_1.NetworkNumber.Eth],
22
22
  label: 'Prime Hub',
23
23
  value: types_1.AaveV4HubsType.AaveV4PrimeHub,
24
- address: '0xea40581231Ca775e6A3d7c129cF231D292B85f20',
24
+ address: '0xf64d97bd0454DF721d0edB468265f204D3A3421D',
25
25
  });
26
26
  exports.AAVE_V4_PRIME_HUB = AAVE_V4_PRIME_HUB;
27
27
  const AaveV4Hubs = (networkId) => ({
@@ -40,7 +40,7 @@ const AAVE_V4_BLUECHIP_SPOKE = (networkId) => ({
40
40
  label: 'Bluechip Spoke',
41
41
  value: types_1.AaveV4SpokesType.AaveV4BluechipSpoke,
42
42
  url: 'bluechip',
43
- address: '0x637F9E189332a2821e5B046E2d7EEFae2405d6c5',
43
+ address: '0xF1Fa1042474dC8bd4Ef830Fe70aE22C85A326729',
44
44
  hubs: [
45
45
  (0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
46
46
  (0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
@@ -48,25 +48,38 @@ const AAVE_V4_BLUECHIP_SPOKE = (networkId) => ({
48
48
  ],
49
49
  });
50
50
  exports.AAVE_V4_BLUECHIP_SPOKE = AAVE_V4_BLUECHIP_SPOKE;
51
- const AAVE_V4_ETHENA_SPOKE = (networkId) => ({
51
+ const AAVE_V4_ETHENA_CORRELATED_SPOKE = (networkId) => ({
52
52
  chainIds: [types_1.NetworkNumber.Eth],
53
- label: 'Ethena Spoke',
54
- value: types_1.AaveV4SpokesType.AaveV4EthenaSpoke,
55
- url: 'ethena',
56
- address: '0xf3b207c235f6154120F41eB63D5ACCBAfD4086D1',
53
+ label: 'Ethena Correlated Spoke',
54
+ value: types_1.AaveV4SpokesType.AaveV4EthenaCorrelatedSpoke,
55
+ url: 'ethena-correlated',
56
+ address: '0xa1A984B65b661599a61680f56a6c864ECED96CA6',
57
57
  hubs: [
58
58
  (0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
59
59
  (0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
60
60
  (0, exports.AAVE_V4_PRIME_HUB)(types_1.NetworkNumber.Eth).address,
61
61
  ],
62
62
  });
63
- exports.AAVE_V4_ETHENA_SPOKE = AAVE_V4_ETHENA_SPOKE;
63
+ exports.AAVE_V4_ETHENA_CORRELATED_SPOKE = AAVE_V4_ETHENA_CORRELATED_SPOKE;
64
+ const AAVE_V4_ETHENA_ECOSYSTEM_SPOKE = (networkId) => ({
65
+ chainIds: [types_1.NetworkNumber.Eth],
66
+ label: 'Ethena Ecosystem Spoke',
67
+ value: types_1.AaveV4SpokesType.AaveV4EthenaEcosystemSpoke,
68
+ url: 'ethena-ecosystem',
69
+ address: '0x417Fae379865b8E298332e2F6fdcc2526D55a090',
70
+ hubs: [
71
+ (0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
72
+ (0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
73
+ (0, exports.AAVE_V4_PRIME_HUB)(types_1.NetworkNumber.Eth).address,
74
+ ],
75
+ });
76
+ exports.AAVE_V4_ETHENA_ECOSYSTEM_SPOKE = AAVE_V4_ETHENA_ECOSYSTEM_SPOKE;
64
77
  const AAVE_V4_ETHERFI_SPOKE = (networkId) => ({
65
78
  chainIds: [types_1.NetworkNumber.Eth],
66
79
  label: 'Etherfi Spoke',
67
80
  value: types_1.AaveV4SpokesType.AaveV4EtherfiSpoke,
68
81
  url: 'etherfi',
69
- address: '0x4054a9EbfcdB692599a8dF61eb0b3484F2d279D4',
82
+ address: '0x7ED7431793eCbe5d42D64CA9b2593d026beB051B',
70
83
  hubs: [
71
84
  (0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
72
85
  (0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
@@ -74,12 +87,25 @@ const AAVE_V4_ETHERFI_SPOKE = (networkId) => ({
74
87
  ],
75
88
  });
76
89
  exports.AAVE_V4_ETHERFI_SPOKE = AAVE_V4_ETHERFI_SPOKE;
90
+ const AAVE_V4_FOREX_SPOKE = (networkId) => ({
91
+ chainIds: [types_1.NetworkNumber.Eth],
92
+ label: 'Forex Spoke',
93
+ value: types_1.AaveV4SpokesType.AaveV4ForexSpoke,
94
+ url: 'forex',
95
+ address: '0x37b36B7dfaBB69B12519B7Faaf019a6C0B261264',
96
+ hubs: [
97
+ (0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
98
+ (0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
99
+ (0, exports.AAVE_V4_PRIME_HUB)(types_1.NetworkNumber.Eth).address,
100
+ ],
101
+ });
102
+ exports.AAVE_V4_FOREX_SPOKE = AAVE_V4_FOREX_SPOKE;
77
103
  const AAVE_V4_GOLD_SPOKE = (networkId) => ({
78
104
  chainIds: [types_1.NetworkNumber.Eth],
79
105
  label: 'Gold Spoke',
80
106
  value: types_1.AaveV4SpokesType.AaveV4GoldSpoke,
81
107
  url: 'gold',
82
- address: '0x0DC7ccE912Afab8B49031A0A95DB74531741C2c4',
108
+ address: '0x332EFa0E2121091Ae94f44F8c2C383B061ae2Ea7',
83
109
  hubs: [
84
110
  (0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
85
111
  (0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
@@ -92,7 +118,7 @@ const AAVE_V4_KELP_SPOKE = (networkId) => ({
92
118
  label: 'Kelp Spoke',
93
119
  value: types_1.AaveV4SpokesType.AaveV4KelpSpoke,
94
120
  url: 'kelp',
95
- address: '0x8aC76d950a3D03F9E1d857b5AAFFdA3f86C1e9AA',
121
+ address: '0xC8FA3983843E7a978244e34c0e2562159A3D0783',
96
122
  hubs: [
97
123
  (0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
98
124
  (0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
@@ -105,7 +131,7 @@ const AAVE_V4_LIDO_SPOKE = (networkId) => ({
105
131
  label: 'Lido Spoke',
106
132
  value: types_1.AaveV4SpokesType.AaveV4LidoSpoke,
107
133
  url: 'lido',
108
- address: '0x4D4a7b3Ce709b4362D7095a4A0105bDFDb5dA2a7',
134
+ address: '0xa9Dd188591A6F0C92bD1dC3A461a64c188694FB3',
109
135
  hubs: [
110
136
  (0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
111
137
  (0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
@@ -113,12 +139,25 @@ const AAVE_V4_LIDO_SPOKE = (networkId) => ({
113
139
  ],
114
140
  });
115
141
  exports.AAVE_V4_LIDO_SPOKE = AAVE_V4_LIDO_SPOKE;
142
+ const AAVE_V4_LOMBARD_BTC_SPOKE = (networkId) => ({
143
+ chainIds: [types_1.NetworkNumber.Eth],
144
+ label: 'Lombard BTC Spoke',
145
+ value: types_1.AaveV4SpokesType.AaveV4LombardBtcSpoke,
146
+ url: 'lombard-btc',
147
+ address: '0xc78F5e5566C9Bde0C531fC8c7F5dC5954daFcA9e',
148
+ hubs: [
149
+ (0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
150
+ (0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
151
+ (0, exports.AAVE_V4_PRIME_HUB)(types_1.NetworkNumber.Eth).address,
152
+ ],
153
+ });
154
+ exports.AAVE_V4_LOMBARD_BTC_SPOKE = AAVE_V4_LOMBARD_BTC_SPOKE;
116
155
  const AAVE_V4_MAIN_SPOKE = (networkId) => ({
117
156
  chainIds: [types_1.NetworkNumber.Eth],
118
157
  label: 'Main Spoke',
119
158
  value: types_1.AaveV4SpokesType.AaveV4MainSpoke,
120
159
  url: 'main',
121
- address: '0x46539e9123A18c427e6b4DFF114c28CF405Cb023',
160
+ address: '0x6488A415e9eA693EC7Ef32579507e1907c0AC798',
122
161
  hubs: [
123
162
  (0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
124
163
  (0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
@@ -128,11 +167,14 @@ const AAVE_V4_MAIN_SPOKE = (networkId) => ({
128
167
  exports.AAVE_V4_MAIN_SPOKE = AAVE_V4_MAIN_SPOKE;
129
168
  const AaveV4Spokes = (networkId) => ({
130
169
  [types_1.AaveV4SpokesType.AaveV4BluechipSpoke]: (0, exports.AAVE_V4_BLUECHIP_SPOKE)(networkId),
131
- [types_1.AaveV4SpokesType.AaveV4EthenaSpoke]: (0, exports.AAVE_V4_ETHENA_SPOKE)(networkId),
170
+ [types_1.AaveV4SpokesType.AaveV4EthenaCorrelatedSpoke]: (0, exports.AAVE_V4_ETHENA_CORRELATED_SPOKE)(networkId),
171
+ [types_1.AaveV4SpokesType.AaveV4EthenaEcosystemSpoke]: (0, exports.AAVE_V4_ETHENA_ECOSYSTEM_SPOKE)(networkId),
132
172
  [types_1.AaveV4SpokesType.AaveV4EtherfiSpoke]: (0, exports.AAVE_V4_ETHERFI_SPOKE)(networkId),
173
+ [types_1.AaveV4SpokesType.AaveV4ForexSpoke]: (0, exports.AAVE_V4_FOREX_SPOKE)(networkId),
133
174
  [types_1.AaveV4SpokesType.AaveV4GoldSpoke]: (0, exports.AAVE_V4_GOLD_SPOKE)(networkId),
134
175
  [types_1.AaveV4SpokesType.AaveV4KelpSpoke]: (0, exports.AAVE_V4_KELP_SPOKE)(networkId),
135
176
  [types_1.AaveV4SpokesType.AaveV4LidoSpoke]: (0, exports.AAVE_V4_LIDO_SPOKE)(networkId),
177
+ [types_1.AaveV4SpokesType.AaveV4LombardBtcSpoke]: (0, exports.AAVE_V4_LOMBARD_BTC_SPOKE)(networkId),
136
178
  [types_1.AaveV4SpokesType.AaveV4MainSpoke]: (0, exports.AAVE_V4_MAIN_SPOKE)(networkId),
137
179
  });
138
180
  exports.AaveV4Spokes = AaveV4Spokes;
@@ -6,11 +6,14 @@ export declare enum AaveV4HubsType {
6
6
  }
7
7
  export declare enum AaveV4SpokesType {
8
8
  AaveV4BluechipSpoke = "aave_v4_bluechip_spoke",
9
- AaveV4EthenaSpoke = "aave_v4_ethena_spoke",
9
+ AaveV4EthenaCorrelatedSpoke = "aave_v4_ethena_correlated_spoke",
10
+ AaveV4EthenaEcosystemSpoke = "aave_v4_ethena_ecosystem_spoke",
10
11
  AaveV4EtherfiSpoke = "aave_v4_etherfi_spoke",
12
+ AaveV4ForexSpoke = "aave_v4_forex_spoke",
11
13
  AaveV4GoldSpoke = "aave_v4_gold_spoke",
12
14
  AaveV4KelpSpoke = "aave_v4_kelp_spoke",
13
15
  AaveV4LidoSpoke = "aave_v4_lido_spoke",
16
+ AaveV4LombardBtcSpoke = "aave_v4_lombard_btc_spoke",
14
17
  AaveV4MainSpoke = "aave_v4_main_spoke"
15
18
  }
16
19
  export interface AaveV4HubInfo {
@@ -10,10 +10,13 @@ var AaveV4HubsType;
10
10
  var AaveV4SpokesType;
11
11
  (function (AaveV4SpokesType) {
12
12
  AaveV4SpokesType["AaveV4BluechipSpoke"] = "aave_v4_bluechip_spoke";
13
- AaveV4SpokesType["AaveV4EthenaSpoke"] = "aave_v4_ethena_spoke";
13
+ AaveV4SpokesType["AaveV4EthenaCorrelatedSpoke"] = "aave_v4_ethena_correlated_spoke";
14
+ AaveV4SpokesType["AaveV4EthenaEcosystemSpoke"] = "aave_v4_ethena_ecosystem_spoke";
14
15
  AaveV4SpokesType["AaveV4EtherfiSpoke"] = "aave_v4_etherfi_spoke";
16
+ AaveV4SpokesType["AaveV4ForexSpoke"] = "aave_v4_forex_spoke";
15
17
  AaveV4SpokesType["AaveV4GoldSpoke"] = "aave_v4_gold_spoke";
16
18
  AaveV4SpokesType["AaveV4KelpSpoke"] = "aave_v4_kelp_spoke";
17
19
  AaveV4SpokesType["AaveV4LidoSpoke"] = "aave_v4_lido_spoke";
20
+ AaveV4SpokesType["AaveV4LombardBtcSpoke"] = "aave_v4_lombard_btc_spoke";
18
21
  AaveV4SpokesType["AaveV4MainSpoke"] = "aave_v4_main_spoke";
19
22
  })(AaveV4SpokesType || (exports.AaveV4SpokesType = AaveV4SpokesType = {}));
@@ -54,7 +54,7 @@ export const fetchSparkAirdropRewards = (provider, network, walletAddresses) =>
54
54
  continue;
55
55
  }
56
56
  // Filter out IGNITION_REWARDS since they are no longer active
57
- const filteredData = data.filter((rewardInfo) => rewardInfo.type !== SparkAirdropType.SPARK_IGNITION);
57
+ const filteredData = data.filter((rewardInfo) => rewardInfo.type !== SparkAirdropType.SPARK_IGNITION && rewardInfo.type !== SparkAirdropType.PRE_FARMING_AND_SOCIAL);
58
58
  allClaimData.push({ walletAddress, data: filteredData });
59
59
  // Collect contract call data
60
60
  filteredData.forEach((airdropInfo) => {
@@ -92844,7 +92844,7 @@ export declare const AaveV4View: {
92844
92844
  }];
92845
92845
  readonly networks: {
92846
92846
  readonly "1": {
92847
- readonly address: "0x34b6B5A3e8fB9135EbB47ACE4242b47E51064f5D";
92847
+ readonly address: "0x10B748Dc504C2515Bb6A9e23CB2F686090b6c584";
92848
92848
  };
92849
92849
  };
92850
92850
  };
@@ -1325,7 +1325,7 @@ export const AaveV4View = {
1325
1325
  "abi": [{ "inputs": [{ "internalType": "address", "name": "_eoa", "type": "address" }, { "internalType": "address", "name": "_proxy", "type": "address" }, { "internalType": "address", "name": "_spoke", "type": "address" }], "name": "getEOAApprovalsAndBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "eoa", "type": "address" }, { "internalType": "address", "name": "proxy", "type": "address" }, { "internalType": "address", "name": "spoke", "type": "address" }, { "internalType": "bool", "name": "giverPositionManagerEnabled", "type": "bool" }, { "internalType": "bool", "name": "takerPositionManagerEnabled", "type": "bool" }, { "internalType": "bool", "name": "configPositionManagerEnabled", "type": "bool" }, { "internalType": "bool", "name": "canSetUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "canUpdateUserRiskPremium", "type": "bool" }, { "internalType": "bool", "name": "canUpdateUserDynamicConfig", "type": "bool" }, { "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "delegateeBorrowApproval", "type": "uint256" }, { "internalType": "uint256", "name": "delegateeWithdrawApproval", "type": "uint256" }, { "internalType": "uint256", "name": "eoaReserveBalance", "type": "uint256" }], "internalType": "struct AaveV4View.EOAReserveApprovalData[]", "name": "reserveApprovals", "type": "tuple[]" }], "internalType": "struct AaveV4View.EOAApprovalData", "name": "data", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getHealthFactor", "outputs": [{ "internalType": "uint256", "name": "healthFactor", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_hub", "type": "address" }], "name": "getHubAllAssetsData", "outputs": [{ "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawnShares", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremiumShares", "type": "uint256" }, { "internalType": "uint256", "name": "swept", "type": "uint256" }, { "internalType": "uint16", "name": "liquidityFee", "type": "uint16" }, { "internalType": "uint120", "name": "drawnIndex", "type": "uint120" }, { "internalType": "uint96", "name": "drawnRate", "type": "uint96" }, { "internalType": "uint40", "name": "lastUpdateTimestamp", "type": "uint40" }, { "internalType": "address", "name": "irStrategy", "type": "address" }, { "internalType": "address", "name": "reinvestmentController", "type": "address" }, { "internalType": "address", "name": "feeReceiver", "type": "address" }, { "internalType": "uint256", "name": "deficitRay", "type": "uint256" }], "internalType": "struct AaveV4View.HubAssetData[]", "name": "hubAssetData", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_hub", "type": "address" }, { "internalType": "uint256", "name": "_assetId", "type": "uint256" }], "name": "getHubAssetData", "outputs": [{ "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawnShares", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremiumShares", "type": "uint256" }, { "internalType": "uint256", "name": "swept", "type": "uint256" }, { "internalType": "uint16", "name": "liquidityFee", "type": "uint16" }, { "internalType": "uint120", "name": "drawnIndex", "type": "uint120" }, { "internalType": "uint96", "name": "drawnRate", "type": "uint96" }, { "internalType": "uint40", "name": "lastUpdateTimestamp", "type": "uint40" }, { "internalType": "address", "name": "irStrategy", "type": "address" }, { "internalType": "address", "name": "reinvestmentController", "type": "address" }, { "internalType": "address", "name": "feeReceiver", "type": "address" }, { "internalType": "uint256", "name": "deficitRay", "type": "uint256" }], "internalType": "struct AaveV4View.HubAssetData", "name": "hubAssetData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getLoanData", "outputs": [{ "components": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "riskPremium", "type": "uint256" }, { "internalType": "uint256", "name": "avgCollateralFactor", "type": "uint256" }, { "internalType": "uint256", "name": "healthFactor", "type": "uint256" }, { "internalType": "uint256", "name": "totalCollateralInUsd", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebtInUsdRay", "type": "uint256" }, { "internalType": "uint256", "name": "activeCollateralCount", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCount", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "supplied", "type": "uint256" }, { "internalType": "uint256", "name": "drawn", "type": "uint256" }, { "internalType": "uint256", "name": "premium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "bool", "name": "isUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "isBorrowing", "type": "bool" }], "internalType": "struct AaveV4View.UserReserveData[]", "name": "reserves", "type": "tuple[]" }], "internalType": "struct AaveV4View.LoanData", "name": "loanData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_spokes", "type": "address[]" }], "name": "getLoanDataForMultipleSpokes", "outputs": [{ "components": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "riskPremium", "type": "uint256" }, { "internalType": "uint256", "name": "avgCollateralFactor", "type": "uint256" }, { "internalType": "uint256", "name": "healthFactor", "type": "uint256" }, { "internalType": "uint256", "name": "totalCollateralInUsd", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebtInUsdRay", "type": "uint256" }, { "internalType": "uint256", "name": "activeCollateralCount", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCount", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "supplied", "type": "uint256" }, { "internalType": "uint256", "name": "drawn", "type": "uint256" }, { "internalType": "uint256", "name": "premium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "bool", "name": "isUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "isBorrowing", "type": "bool" }], "internalType": "struct AaveV4View.UserReserveData[]", "name": "reserves", "type": "tuple[]" }], "internalType": "struct AaveV4View.LoanData[]", "name": "loans", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address[]", "name": "_users", "type": "address[]" }], "name": "getLoanDataForMultipleUsers", "outputs": [{ "components": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "riskPremium", "type": "uint256" }, { "internalType": "uint256", "name": "avgCollateralFactor", "type": "uint256" }, { "internalType": "uint256", "name": "healthFactor", "type": "uint256" }, { "internalType": "uint256", "name": "totalCollateralInUsd", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebtInUsdRay", "type": "uint256" }, { "internalType": "uint256", "name": "activeCollateralCount", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCount", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "supplied", "type": "uint256" }, { "internalType": "uint256", "name": "drawn", "type": "uint256" }, { "internalType": "uint256", "name": "premium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "bool", "name": "isUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "isBorrowing", "type": "bool" }], "internalType": "struct AaveV4View.UserReserveData[]", "name": "reserves", "type": "tuple[]" }], "internalType": "struct AaveV4View.LoanData[]", "name": "loans", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getLoanDataFull", "outputs": [{ "components": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "riskPremium", "type": "uint256" }, { "internalType": "uint256", "name": "avgCollateralFactor", "type": "uint256" }, { "internalType": "uint256", "name": "healthFactor", "type": "uint256" }, { "internalType": "uint256", "name": "totalCollateralInUsd", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebtInUsdRay", "type": "uint256" }, { "internalType": "uint256", "name": "activeCollateralCount", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCount", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "bool", "name": "isUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "isBorrowing", "type": "bool" }, { "internalType": "bool", "name": "reservePaused", "type": "bool" }, { "internalType": "bool", "name": "reserveFrozen", "type": "bool" }, { "internalType": "bool", "name": "borrowable", "type": "bool" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }, { "internalType": "uint256", "name": "userSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "userDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "userPremium", "type": "uint256" }, { "internalType": "uint256", "name": "userTotalDebt", "type": "uint256" }, { "internalType": "uint24", "name": "collateralRisk", "type": "uint24" }, { "internalType": "uint16", "name": "userCollateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "userMaxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "userLiquidationFee", "type": "uint16" }, { "internalType": "uint16", "name": "latestCollateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "latestMaxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "latestLiquidationFee", "type": "uint16" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint16", "name": "hubAssetId", "type": "uint16" }, { "internalType": "uint256", "name": "hubLiquidity", "type": "uint256" }, { "internalType": "uint96", "name": "drawnRate", "type": "uint96" }, { "internalType": "uint120", "name": "drawnIndex", "type": "uint120" }, { "internalType": "uint256", "name": "spokeTotalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "spokeSupplyCap", "type": "uint256" }, { "internalType": "uint256", "name": "spokeBorrowCap", "type": "uint256" }, { "internalType": "uint256", "name": "spokeDeficitRay", "type": "uint256" }], "internalType": "struct AaveV4View.UserReserveDataFull[]", "name": "reserves", "type": "tuple[]" }], "internalType": "struct AaveV4View.LoanDataWithFullReserves", "name": "loanData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256", "name": "_reserveId", "type": "uint256" }], "name": "getReserveData", "outputs": [{ "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "internalType": "struct AaveV4View.ReserveData", "name": "reserveData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256", "name": "_reserveId", "type": "uint256" }], "name": "getReserveDataFull", "outputs": [{ "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "bool", "name": "paused", "type": "bool" }, { "internalType": "bool", "name": "frozen", "type": "bool" }, { "internalType": "bool", "name": "borrowable", "type": "bool" }, { "internalType": "uint24", "name": "collateralRisk", "type": "uint24" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "supplyCap", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCap", "type": "uint256" }, { "internalType": "uint256", "name": "deficitRay", "type": "uint256" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }], "internalType": "struct AaveV4View.ReserveDataFull", "name": "reserveData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256", "name": "_reserveId", "type": "uint256" }], "name": "getReservePrice", "outputs": [{ "internalType": "uint256", "name": "price", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256[]", "name": "_reserveIds", "type": "uint256[]" }], "name": "getReservePrices", "outputs": [{ "internalType": "uint256[]", "name": "prices", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256[]", "name": "_reserveIds", "type": "uint256[]" }], "name": "getReservesData", "outputs": [{ "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "internalType": "struct AaveV4View.ReserveData[]", "name": "reserveData", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "uint256[]", "name": "_reserveIds", "type": "uint256[]" }], "name": "getReservesDataFull", "outputs": [{ "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "bool", "name": "paused", "type": "bool" }, { "internalType": "bool", "name": "frozen", "type": "bool" }, { "internalType": "bool", "name": "borrowable", "type": "bool" }, { "internalType": "uint24", "name": "collateralRisk", "type": "uint24" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "supplyCap", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCap", "type": "uint256" }, { "internalType": "uint256", "name": "deficitRay", "type": "uint256" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }], "internalType": "struct AaveV4View.ReserveDataFull[]", "name": "reserveData", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }], "name": "getSpokeData", "outputs": [{ "components": [{ "internalType": "uint128", "name": "targetHealthFactor", "type": "uint128" }, { "internalType": "uint64", "name": "healthFactorForMaxBonus", "type": "uint64" }, { "internalType": "uint16", "name": "liquidationBonusFactor", "type": "uint16" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "uint256", "name": "oracleDecimals", "type": "uint256" }, { "internalType": "uint256", "name": "reserveCount", "type": "uint256" }], "internalType": "struct AaveV4View.SpokeData", "name": "spokeData", "type": "tuple" }, { "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "internalType": "struct AaveV4View.ReserveData[]", "name": "reserves", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }], "name": "getSpokeDataFull", "outputs": [{ "components": [{ "internalType": "uint128", "name": "targetHealthFactor", "type": "uint128" }, { "internalType": "uint64", "name": "healthFactorForMaxBonus", "type": "uint64" }, { "internalType": "uint16", "name": "liquidationBonusFactor", "type": "uint16" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "uint256", "name": "oracleDecimals", "type": "uint256" }, { "internalType": "uint256", "name": "reserveCount", "type": "uint256" }], "internalType": "struct AaveV4View.SpokeData", "name": "spokeData", "type": "tuple" }, { "components": [{ "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "bool", "name": "paused", "type": "bool" }, { "internalType": "bool", "name": "frozen", "type": "bool" }, { "internalType": "bool", "name": "borrowable", "type": "bool" }, { "internalType": "uint24", "name": "collateralRisk", "type": "uint24" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "totalDrawn", "type": "uint256" }, { "internalType": "uint256", "name": "totalPremium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "supplyCap", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCap", "type": "uint256" }, { "internalType": "uint256", "name": "deficitRay", "type": "uint256" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }], "internalType": "struct AaveV4View.ReserveDataFull[]", "name": "reserves", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_hub", "type": "address" }, { "internalType": "uint256", "name": "_assetId", "type": "uint256" }], "name": "getSpokesForAsset", "outputs": [{ "internalType": "address[]", "name": "spokes", "type": "address[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getTokenizationSpokeData", "outputs": [{ "components": [{ "internalType": "address", "name": "underlyingAsset", "type": "address" }, { "internalType": "uint256", "name": "assetId", "type": "uint256" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "spoke", "type": "address" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }, { "internalType": "uint256", "name": "spokeDepositCap", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalAssets", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalShares", "type": "uint256" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint256", "name": "hubLiquidity", "type": "uint256" }, { "internalType": "uint96", "name": "hubDrawnRate", "type": "uint96" }, { "internalType": "uint256", "name": "convertToShares", "type": "uint256" }, { "internalType": "uint256", "name": "convertToAssets", "type": "uint256" }, { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "userSuppliedAssets", "type": "uint256" }, { "internalType": "uint256", "name": "userSuppliedShares", "type": "uint256" }], "internalType": "struct AaveV4View.TokenizationSpokeData", "name": "spokeData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_spokes", "type": "address[]" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getTokenizationSpokesData", "outputs": [{ "components": [{ "internalType": "address", "name": "underlyingAsset", "type": "address" }, { "internalType": "uint256", "name": "assetId", "type": "uint256" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "spoke", "type": "address" }, { "internalType": "bool", "name": "spokeActive", "type": "bool" }, { "internalType": "bool", "name": "spokeHalted", "type": "bool" }, { "internalType": "uint256", "name": "spokeDepositCap", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalAssets", "type": "uint256" }, { "internalType": "uint256", "name": "spokeTotalShares", "type": "uint256" }, { "internalType": "address", "name": "hub", "type": "address" }, { "internalType": "uint256", "name": "hubLiquidity", "type": "uint256" }, { "internalType": "uint96", "name": "hubDrawnRate", "type": "uint96" }, { "internalType": "uint256", "name": "convertToShares", "type": "uint256" }, { "internalType": "uint256", "name": "convertToAssets", "type": "uint256" }, { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "userSuppliedAssets", "type": "uint256" }, { "internalType": "uint256", "name": "userSuppliedShares", "type": "uint256" }], "internalType": "struct AaveV4View.TokenizationSpokeData[]", "name": "spokeData", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_spoke", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "uint256[]", "name": "_reserveIds", "type": "uint256[]" }], "name": "getUserReserveData", "outputs": [{ "components": [{ "internalType": "uint256", "name": "reserveId", "type": "uint256" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "supplied", "type": "uint256" }, { "internalType": "uint256", "name": "drawn", "type": "uint256" }, { "internalType": "uint256", "name": "premium", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint32", "name": "maxLiquidationBonus", "type": "uint32" }, { "internalType": "uint16", "name": "liquidationFee", "type": "uint16" }, { "internalType": "bool", "name": "isUsingAsCollateral", "type": "bool" }, { "internalType": "bool", "name": "isBorrowing", "type": "bool" }], "internalType": "struct AaveV4View.UserReserveData[]", "name": "_userReserves", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
1326
1326
  "networks": {
1327
1327
  "1": {
1328
- "address": "0x34b6B5A3e8fB9135EbB47ACE4242b47E51064f5D",
1328
+ "address": "0x10B748Dc504C2515Bb6A9e23CB2F686090b6c584",
1329
1329
  }
1330
1330
  }
1331
1331
  };
@@ -10,19 +10,25 @@ export declare const AaveV4Hubs: (networkId: NetworkNumber) => {
10
10
  export declare const getAaveV4HubTypeInfo: (type: AaveV4HubsType, network?: NetworkNumber) => AaveV4HubInfo;
11
11
  export declare const getAaveV4HubByAddress: (networkId: NetworkNumber, address: string) => AaveV4HubInfo | undefined;
12
12
  export declare const AAVE_V4_BLUECHIP_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
13
- export declare const AAVE_V4_ETHENA_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
13
+ export declare const AAVE_V4_ETHENA_CORRELATED_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
14
+ export declare const AAVE_V4_ETHENA_ECOSYSTEM_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
14
15
  export declare const AAVE_V4_ETHERFI_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
16
+ export declare const AAVE_V4_FOREX_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
15
17
  export declare const AAVE_V4_GOLD_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
16
18
  export declare const AAVE_V4_KELP_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
17
19
  export declare const AAVE_V4_LIDO_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
20
+ export declare const AAVE_V4_LOMBARD_BTC_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
18
21
  export declare const AAVE_V4_MAIN_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
19
22
  export declare const AaveV4Spokes: (networkId: NetworkNumber) => {
20
23
  readonly aave_v4_bluechip_spoke: AaveV4SpokeInfo;
21
- readonly aave_v4_ethena_spoke: AaveV4SpokeInfo;
24
+ readonly aave_v4_ethena_correlated_spoke: AaveV4SpokeInfo;
25
+ readonly aave_v4_ethena_ecosystem_spoke: AaveV4SpokeInfo;
22
26
  readonly aave_v4_etherfi_spoke: AaveV4SpokeInfo;
27
+ readonly aave_v4_forex_spoke: AaveV4SpokeInfo;
23
28
  readonly aave_v4_gold_spoke: AaveV4SpokeInfo;
24
29
  readonly aave_v4_kelp_spoke: AaveV4SpokeInfo;
25
30
  readonly aave_v4_lido_spoke: AaveV4SpokeInfo;
31
+ readonly aave_v4_lombard_btc_spoke: AaveV4SpokeInfo;
26
32
  readonly aave_v4_main_spoke: AaveV4SpokeInfo;
27
33
  };
28
34
  export declare const getAaveV4SpokeTypeInfo: (type: AaveV4SpokesType, network?: NetworkNumber) => AaveV4SpokeInfo;
@@ -4,19 +4,19 @@ export const AAVE_V4_CORE_HUB = (networkId) => ({
4
4
  chainIds: [NetworkNumber.Eth],
5
5
  label: 'Core Hub',
6
6
  value: AaveV4HubsType.AaveV4CoreHub,
7
- address: '0x3Ed2C9829FBCab6015E331a0352F8ae148217D70',
7
+ address: '0x630c2cFF89cb11E62dE047EaeD8C4B396906bD7D',
8
8
  });
9
9
  export const AAVE_V4_PLUS_HUB = (networkId) => ({
10
10
  chainIds: [NetworkNumber.Eth],
11
11
  label: 'Plus Hub',
12
12
  value: AaveV4HubsType.AaveV4PlusHub,
13
- address: '0xcb8C80026248f92c6DE735264c23c8e22922C562',
13
+ address: '0x903395aEF788bD0A3a4c7a08651a9115add7c36b',
14
14
  });
15
15
  export const AAVE_V4_PRIME_HUB = (networkId) => ({
16
16
  chainIds: [NetworkNumber.Eth],
17
17
  label: 'Prime Hub',
18
18
  value: AaveV4HubsType.AaveV4PrimeHub,
19
- address: '0xea40581231Ca775e6A3d7c129cF231D292B85f20',
19
+ address: '0xf64d97bd0454DF721d0edB468265f204D3A3421D',
20
20
  });
21
21
  export const AaveV4Hubs = (networkId) => ({
22
22
  [AaveV4HubsType.AaveV4CoreHub]: AAVE_V4_CORE_HUB(networkId),
@@ -31,19 +31,31 @@ export const AAVE_V4_BLUECHIP_SPOKE = (networkId) => ({
31
31
  label: 'Bluechip Spoke',
32
32
  value: AaveV4SpokesType.AaveV4BluechipSpoke,
33
33
  url: 'bluechip',
34
- address: '0x637F9E189332a2821e5B046E2d7EEFae2405d6c5',
34
+ address: '0xF1Fa1042474dC8bd4Ef830Fe70aE22C85A326729',
35
35
  hubs: [
36
36
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
37
37
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
38
38
  AAVE_V4_PRIME_HUB(NetworkNumber.Eth).address,
39
39
  ],
40
40
  });
41
- export const AAVE_V4_ETHENA_SPOKE = (networkId) => ({
41
+ export const AAVE_V4_ETHENA_CORRELATED_SPOKE = (networkId) => ({
42
42
  chainIds: [NetworkNumber.Eth],
43
- label: 'Ethena Spoke',
44
- value: AaveV4SpokesType.AaveV4EthenaSpoke,
45
- url: 'ethena',
46
- address: '0xf3b207c235f6154120F41eB63D5ACCBAfD4086D1',
43
+ label: 'Ethena Correlated Spoke',
44
+ value: AaveV4SpokesType.AaveV4EthenaCorrelatedSpoke,
45
+ url: 'ethena-correlated',
46
+ address: '0xa1A984B65b661599a61680f56a6c864ECED96CA6',
47
+ hubs: [
48
+ AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
49
+ AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
50
+ AAVE_V4_PRIME_HUB(NetworkNumber.Eth).address,
51
+ ],
52
+ });
53
+ export const AAVE_V4_ETHENA_ECOSYSTEM_SPOKE = (networkId) => ({
54
+ chainIds: [NetworkNumber.Eth],
55
+ label: 'Ethena Ecosystem Spoke',
56
+ value: AaveV4SpokesType.AaveV4EthenaEcosystemSpoke,
57
+ url: 'ethena-ecosystem',
58
+ address: '0x417Fae379865b8E298332e2F6fdcc2526D55a090',
47
59
  hubs: [
48
60
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
49
61
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -55,7 +67,19 @@ export const AAVE_V4_ETHERFI_SPOKE = (networkId) => ({
55
67
  label: 'Etherfi Spoke',
56
68
  value: AaveV4SpokesType.AaveV4EtherfiSpoke,
57
69
  url: 'etherfi',
58
- address: '0x4054a9EbfcdB692599a8dF61eb0b3484F2d279D4',
70
+ address: '0x7ED7431793eCbe5d42D64CA9b2593d026beB051B',
71
+ hubs: [
72
+ AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
73
+ AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
74
+ AAVE_V4_PRIME_HUB(NetworkNumber.Eth).address,
75
+ ],
76
+ });
77
+ export const AAVE_V4_FOREX_SPOKE = (networkId) => ({
78
+ chainIds: [NetworkNumber.Eth],
79
+ label: 'Forex Spoke',
80
+ value: AaveV4SpokesType.AaveV4ForexSpoke,
81
+ url: 'forex',
82
+ address: '0x37b36B7dfaBB69B12519B7Faaf019a6C0B261264',
59
83
  hubs: [
60
84
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
61
85
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -67,7 +91,7 @@ export const AAVE_V4_GOLD_SPOKE = (networkId) => ({
67
91
  label: 'Gold Spoke',
68
92
  value: AaveV4SpokesType.AaveV4GoldSpoke,
69
93
  url: 'gold',
70
- address: '0x0DC7ccE912Afab8B49031A0A95DB74531741C2c4',
94
+ address: '0x332EFa0E2121091Ae94f44F8c2C383B061ae2Ea7',
71
95
  hubs: [
72
96
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
73
97
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -79,7 +103,7 @@ export const AAVE_V4_KELP_SPOKE = (networkId) => ({
79
103
  label: 'Kelp Spoke',
80
104
  value: AaveV4SpokesType.AaveV4KelpSpoke,
81
105
  url: 'kelp',
82
- address: '0x8aC76d950a3D03F9E1d857b5AAFFdA3f86C1e9AA',
106
+ address: '0xC8FA3983843E7a978244e34c0e2562159A3D0783',
83
107
  hubs: [
84
108
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
85
109
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -91,7 +115,19 @@ export const AAVE_V4_LIDO_SPOKE = (networkId) => ({
91
115
  label: 'Lido Spoke',
92
116
  value: AaveV4SpokesType.AaveV4LidoSpoke,
93
117
  url: 'lido',
94
- address: '0x4D4a7b3Ce709b4362D7095a4A0105bDFDb5dA2a7',
118
+ address: '0xa9Dd188591A6F0C92bD1dC3A461a64c188694FB3',
119
+ hubs: [
120
+ AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
121
+ AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
122
+ AAVE_V4_PRIME_HUB(NetworkNumber.Eth).address,
123
+ ],
124
+ });
125
+ export const AAVE_V4_LOMBARD_BTC_SPOKE = (networkId) => ({
126
+ chainIds: [NetworkNumber.Eth],
127
+ label: 'Lombard BTC Spoke',
128
+ value: AaveV4SpokesType.AaveV4LombardBtcSpoke,
129
+ url: 'lombard-btc',
130
+ address: '0xc78F5e5566C9Bde0C531fC8c7F5dC5954daFcA9e',
95
131
  hubs: [
96
132
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
97
133
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -103,7 +139,7 @@ export const AAVE_V4_MAIN_SPOKE = (networkId) => ({
103
139
  label: 'Main Spoke',
104
140
  value: AaveV4SpokesType.AaveV4MainSpoke,
105
141
  url: 'main',
106
- address: '0x46539e9123A18c427e6b4DFF114c28CF405Cb023',
142
+ address: '0x6488A415e9eA693EC7Ef32579507e1907c0AC798',
107
143
  hubs: [
108
144
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
109
145
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -112,11 +148,14 @@ export const AAVE_V4_MAIN_SPOKE = (networkId) => ({
112
148
  });
113
149
  export const AaveV4Spokes = (networkId) => ({
114
150
  [AaveV4SpokesType.AaveV4BluechipSpoke]: AAVE_V4_BLUECHIP_SPOKE(networkId),
115
- [AaveV4SpokesType.AaveV4EthenaSpoke]: AAVE_V4_ETHENA_SPOKE(networkId),
151
+ [AaveV4SpokesType.AaveV4EthenaCorrelatedSpoke]: AAVE_V4_ETHENA_CORRELATED_SPOKE(networkId),
152
+ [AaveV4SpokesType.AaveV4EthenaEcosystemSpoke]: AAVE_V4_ETHENA_ECOSYSTEM_SPOKE(networkId),
116
153
  [AaveV4SpokesType.AaveV4EtherfiSpoke]: AAVE_V4_ETHERFI_SPOKE(networkId),
154
+ [AaveV4SpokesType.AaveV4ForexSpoke]: AAVE_V4_FOREX_SPOKE(networkId),
117
155
  [AaveV4SpokesType.AaveV4GoldSpoke]: AAVE_V4_GOLD_SPOKE(networkId),
118
156
  [AaveV4SpokesType.AaveV4KelpSpoke]: AAVE_V4_KELP_SPOKE(networkId),
119
157
  [AaveV4SpokesType.AaveV4LidoSpoke]: AAVE_V4_LIDO_SPOKE(networkId),
158
+ [AaveV4SpokesType.AaveV4LombardBtcSpoke]: AAVE_V4_LOMBARD_BTC_SPOKE(networkId),
120
159
  [AaveV4SpokesType.AaveV4MainSpoke]: AAVE_V4_MAIN_SPOKE(networkId),
121
160
  });
122
161
  export const getAaveV4SpokeTypeInfo = (type, network) => (Object.assign({}, AaveV4Spokes(network !== null && network !== void 0 ? network : NetworkNumber.Eth))[type]);
@@ -6,11 +6,14 @@ export declare enum AaveV4HubsType {
6
6
  }
7
7
  export declare enum AaveV4SpokesType {
8
8
  AaveV4BluechipSpoke = "aave_v4_bluechip_spoke",
9
- AaveV4EthenaSpoke = "aave_v4_ethena_spoke",
9
+ AaveV4EthenaCorrelatedSpoke = "aave_v4_ethena_correlated_spoke",
10
+ AaveV4EthenaEcosystemSpoke = "aave_v4_ethena_ecosystem_spoke",
10
11
  AaveV4EtherfiSpoke = "aave_v4_etherfi_spoke",
12
+ AaveV4ForexSpoke = "aave_v4_forex_spoke",
11
13
  AaveV4GoldSpoke = "aave_v4_gold_spoke",
12
14
  AaveV4KelpSpoke = "aave_v4_kelp_spoke",
13
15
  AaveV4LidoSpoke = "aave_v4_lido_spoke",
16
+ AaveV4LombardBtcSpoke = "aave_v4_lombard_btc_spoke",
14
17
  AaveV4MainSpoke = "aave_v4_main_spoke"
15
18
  }
16
19
  export interface AaveV4HubInfo {
@@ -7,10 +7,13 @@ export var AaveV4HubsType;
7
7
  export var AaveV4SpokesType;
8
8
  (function (AaveV4SpokesType) {
9
9
  AaveV4SpokesType["AaveV4BluechipSpoke"] = "aave_v4_bluechip_spoke";
10
- AaveV4SpokesType["AaveV4EthenaSpoke"] = "aave_v4_ethena_spoke";
10
+ AaveV4SpokesType["AaveV4EthenaCorrelatedSpoke"] = "aave_v4_ethena_correlated_spoke";
11
+ AaveV4SpokesType["AaveV4EthenaEcosystemSpoke"] = "aave_v4_ethena_ecosystem_spoke";
11
12
  AaveV4SpokesType["AaveV4EtherfiSpoke"] = "aave_v4_etherfi_spoke";
13
+ AaveV4SpokesType["AaveV4ForexSpoke"] = "aave_v4_forex_spoke";
12
14
  AaveV4SpokesType["AaveV4GoldSpoke"] = "aave_v4_gold_spoke";
13
15
  AaveV4SpokesType["AaveV4KelpSpoke"] = "aave_v4_kelp_spoke";
14
16
  AaveV4SpokesType["AaveV4LidoSpoke"] = "aave_v4_lido_spoke";
17
+ AaveV4SpokesType["AaveV4LombardBtcSpoke"] = "aave_v4_lombard_btc_spoke";
15
18
  AaveV4SpokesType["AaveV4MainSpoke"] = "aave_v4_main_spoke";
16
19
  })(AaveV4SpokesType || (AaveV4SpokesType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "2.1.78-aave-v4-dev",
3
+ "version": "2.1.79-aave-v4-dev",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -73,7 +73,7 @@ export const fetchSparkAirdropRewards = async (
73
73
  }
74
74
 
75
75
  // Filter out IGNITION_REWARDS since they are no longer active
76
- const filteredData = data.filter((rewardInfo: { type: SparkAirdropType; }) => rewardInfo.type !== SparkAirdropType.SPARK_IGNITION);
76
+ const filteredData = data.filter((rewardInfo: { type: SparkAirdropType; }) => rewardInfo.type !== SparkAirdropType.SPARK_IGNITION && rewardInfo.type !== SparkAirdropType.PRE_FARMING_AND_SOCIAL);
77
77
 
78
78
  allClaimData.push({ walletAddress, data: filteredData });
79
79
 
@@ -1327,7 +1327,7 @@ export const AaveV4View = {
1327
1327
  "abi": [{"inputs":[{"internalType":"address","name":"_eoa","type":"address"},{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"address","name":"_spoke","type":"address"}],"name":"getEOAApprovalsAndBalances","outputs":[{"components":[{"internalType":"address","name":"eoa","type":"address"},{"internalType":"address","name":"proxy","type":"address"},{"internalType":"address","name":"spoke","type":"address"},{"internalType":"bool","name":"giverPositionManagerEnabled","type":"bool"},{"internalType":"bool","name":"takerPositionManagerEnabled","type":"bool"},{"internalType":"bool","name":"configPositionManagerEnabled","type":"bool"},{"internalType":"bool","name":"canSetUsingAsCollateral","type":"bool"},{"internalType":"bool","name":"canUpdateUserRiskPremium","type":"bool"},{"internalType":"bool","name":"canUpdateUserDynamicConfig","type":"bool"},{"components":[{"internalType":"uint256","name":"reserveId","type":"uint256"},{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"delegateeBorrowApproval","type":"uint256"},{"internalType":"uint256","name":"delegateeWithdrawApproval","type":"uint256"},{"internalType":"uint256","name":"eoaReserveBalance","type":"uint256"}],"internalType":"struct AaveV4View.EOAReserveApprovalData[]","name":"reserveApprovals","type":"tuple[]"}],"internalType":"struct AaveV4View.EOAApprovalData","name":"data","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getHealthFactor","outputs":[{"internalType":"uint256","name":"healthFactor","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_hub","type":"address"}],"name":"getHubAllAssetsData","outputs":[{"components":[{"internalType":"uint16","name":"assetId","type":"uint16"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"totalSupplied","type":"uint256"},{"internalType":"uint256","name":"totalDrawn","type":"uint256"},{"internalType":"uint256","name":"totalPremium","type":"uint256"},{"internalType":"uint256","name":"totalDebt","type":"uint256"},{"internalType":"uint256","name":"totalDrawnShares","type":"uint256"},{"internalType":"uint256","name":"totalPremiumShares","type":"uint256"},{"internalType":"uint256","name":"swept","type":"uint256"},{"internalType":"uint16","name":"liquidityFee","type":"uint16"},{"internalType":"uint120","name":"drawnIndex","type":"uint120"},{"internalType":"uint96","name":"drawnRate","type":"uint96"},{"internalType":"uint40","name":"lastUpdateTimestamp","type":"uint40"},{"internalType":"address","name":"irStrategy","type":"address"},{"internalType":"address","name":"reinvestmentController","type":"address"},{"internalType":"address","name":"feeReceiver","type":"address"},{"internalType":"uint256","name":"deficitRay","type":"uint256"}],"internalType":"struct AaveV4View.HubAssetData[]","name":"hubAssetData","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_hub","type":"address"},{"internalType":"uint256","name":"_assetId","type":"uint256"}],"name":"getHubAssetData","outputs":[{"components":[{"internalType":"uint16","name":"assetId","type":"uint16"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"totalSupplied","type":"uint256"},{"internalType":"uint256","name":"totalDrawn","type":"uint256"},{"internalType":"uint256","name":"totalPremium","type":"uint256"},{"internalType":"uint256","name":"totalDebt","type":"uint256"},{"internalType":"uint256","name":"totalDrawnShares","type":"uint256"},{"internalType":"uint256","name":"totalPremiumShares","type":"uint256"},{"internalType":"uint256","name":"swept","type":"uint256"},{"internalType":"uint16","name":"liquidityFee","type":"uint16"},{"internalType":"uint120","name":"drawnIndex","type":"uint120"},{"internalType":"uint96","name":"drawnRate","type":"uint96"},{"internalType":"uint40","name":"lastUpdateTimestamp","type":"uint40"},{"internalType":"address","name":"irStrategy","type":"address"},{"internalType":"address","name":"reinvestmentController","type":"address"},{"internalType":"address","name":"feeReceiver","type":"address"},{"internalType":"uint256","name":"deficitRay","type":"uint256"}],"internalType":"struct AaveV4View.HubAssetData","name":"hubAssetData","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getLoanData","outputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"riskPremium","type":"uint256"},{"internalType":"uint256","name":"avgCollateralFactor","type":"uint256"},{"internalType":"uint256","name":"healthFactor","type":"uint256"},{"internalType":"uint256","name":"totalCollateralInUsd","type":"uint256"},{"internalType":"uint256","name":"totalDebtInUsdRay","type":"uint256"},{"internalType":"uint256","name":"activeCollateralCount","type":"uint256"},{"internalType":"uint256","name":"borrowCount","type":"uint256"},{"components":[{"internalType":"uint256","name":"reserveId","type":"uint256"},{"internalType":"uint16","name":"assetId","type":"uint16"},{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"supplied","type":"uint256"},{"internalType":"uint256","name":"drawn","type":"uint256"},{"internalType":"uint256","name":"premium","type":"uint256"},{"internalType":"uint256","name":"totalDebt","type":"uint256"},{"internalType":"uint16","name":"collateralFactor","type":"uint16"},{"internalType":"uint32","name":"maxLiquidationBonus","type":"uint32"},{"internalType":"uint16","name":"liquidationFee","type":"uint16"},{"internalType":"bool","name":"isUsingAsCollateral","type":"bool"},{"internalType":"bool","name":"isBorrowing","type":"bool"}],"internalType":"struct AaveV4View.UserReserveData[]","name":"reserves","type":"tuple[]"}],"internalType":"struct AaveV4View.LoanData","name":"loanData","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address[]","name":"_spokes","type":"address[]"}],"name":"getLoanDataForMultipleSpokes","outputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"riskPremium","type":"uint256"},{"internalType":"uint256","name":"avgCollateralFactor","type":"uint256"},{"internalType":"uint256","name":"healthFactor","type":"uint256"},{"internalType":"uint256","name":"totalCollateralInUsd","type":"uint256"},{"internalType":"uint256","name":"totalDebtInUsdRay","type":"uint256"},{"internalType":"uint256","name":"activeCollateralCount","type":"uint256"},{"internalType":"uint256","name":"borrowCount","type":"uint256"},{"components":[{"internalType":"uint256","name":"reserveId","type":"uint256"},{"internalType":"uint16","name":"assetId","type":"uint16"},{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"supplied","type":"uint256"},{"internalType":"uint256","name":"drawn","type":"uint256"},{"internalType":"uint256","name":"premium","type":"uint256"},{"internalType":"uint256","name":"totalDebt","type":"uint256"},{"internalType":"uint16","name":"collateralFactor","type":"uint16"},{"internalType":"uint32","name":"maxLiquidationBonus","type":"uint32"},{"internalType":"uint16","name":"liquidationFee","type":"uint16"},{"internalType":"bool","name":"isUsingAsCollateral","type":"bool"},{"internalType":"bool","name":"isBorrowing","type":"bool"}],"internalType":"struct AaveV4View.UserReserveData[]","name":"reserves","type":"tuple[]"}],"internalType":"struct AaveV4View.LoanData[]","name":"loans","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"getLoanDataForMultipleUsers","outputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"riskPremium","type":"uint256"},{"internalType":"uint256","name":"avgCollateralFactor","type":"uint256"},{"internalType":"uint256","name":"healthFactor","type":"uint256"},{"internalType":"uint256","name":"totalCollateralInUsd","type":"uint256"},{"internalType":"uint256","name":"totalDebtInUsdRay","type":"uint256"},{"internalType":"uint256","name":"activeCollateralCount","type":"uint256"},{"internalType":"uint256","name":"borrowCount","type":"uint256"},{"components":[{"internalType":"uint256","name":"reserveId","type":"uint256"},{"internalType":"uint16","name":"assetId","type":"uint16"},{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"supplied","type":"uint256"},{"internalType":"uint256","name":"drawn","type":"uint256"},{"internalType":"uint256","name":"premium","type":"uint256"},{"internalType":"uint256","name":"totalDebt","type":"uint256"},{"internalType":"uint16","name":"collateralFactor","type":"uint16"},{"internalType":"uint32","name":"maxLiquidationBonus","type":"uint32"},{"internalType":"uint16","name":"liquidationFee","type":"uint16"},{"internalType":"bool","name":"isUsingAsCollateral","type":"bool"},{"internalType":"bool","name":"isBorrowing","type":"bool"}],"internalType":"struct AaveV4View.UserReserveData[]","name":"reserves","type":"tuple[]"}],"internalType":"struct AaveV4View.LoanData[]","name":"loans","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getLoanDataFull","outputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"riskPremium","type":"uint256"},{"internalType":"uint256","name":"avgCollateralFactor","type":"uint256"},{"internalType":"uint256","name":"healthFactor","type":"uint256"},{"internalType":"uint256","name":"totalCollateralInUsd","type":"uint256"},{"internalType":"uint256","name":"totalDebtInUsdRay","type":"uint256"},{"internalType":"uint256","name":"activeCollateralCount","type":"uint256"},{"internalType":"uint256","name":"borrowCount","type":"uint256"},{"components":[{"internalType":"uint256","name":"reserveId","type":"uint256"},{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"bool","name":"isUsingAsCollateral","type":"bool"},{"internalType":"bool","name":"isBorrowing","type":"bool"},{"internalType":"bool","name":"reservePaused","type":"bool"},{"internalType":"bool","name":"reserveFrozen","type":"bool"},{"internalType":"bool","name":"borrowable","type":"bool"},{"internalType":"bool","name":"spokeActive","type":"bool"},{"internalType":"bool","name":"spokeHalted","type":"bool"},{"internalType":"uint256","name":"userSupplied","type":"uint256"},{"internalType":"uint256","name":"userDrawn","type":"uint256"},{"internalType":"uint256","name":"userPremium","type":"uint256"},{"internalType":"uint256","name":"userTotalDebt","type":"uint256"},{"internalType":"uint24","name":"collateralRisk","type":"uint24"},{"internalType":"uint16","name":"userCollateralFactor","type":"uint16"},{"internalType":"uint32","name":"userMaxLiquidationBonus","type":"uint32"},{"internalType":"uint16","name":"userLiquidationFee","type":"uint16"},{"internalType":"uint16","name":"latestCollateralFactor","type":"uint16"},{"internalType":"uint32","name":"latestMaxLiquidationBonus","type":"uint32"},{"internalType":"uint16","name":"latestLiquidationFee","type":"uint16"},{"internalType":"address","name":"hub","type":"address"},{"internalType":"uint16","name":"hubAssetId","type":"uint16"},{"internalType":"uint256","name":"hubLiquidity","type":"uint256"},{"internalType":"uint96","name":"drawnRate","type":"uint96"},{"internalType":"uint120","name":"drawnIndex","type":"uint120"},{"internalType":"uint256","name":"spokeTotalSupplied","type":"uint256"},{"internalType":"uint256","name":"spokeTotalDrawn","type":"uint256"},{"internalType":"uint256","name":"spokeTotalPremium","type":"uint256"},{"internalType":"uint256","name":"spokeTotalDebt","type":"uint256"},{"internalType":"uint256","name":"spokeSupplyCap","type":"uint256"},{"internalType":"uint256","name":"spokeBorrowCap","type":"uint256"},{"internalType":"uint256","name":"spokeDeficitRay","type":"uint256"}],"internalType":"struct AaveV4View.UserReserveDataFull[]","name":"reserves","type":"tuple[]"}],"internalType":"struct AaveV4View.LoanDataWithFullReserves","name":"loanData","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"uint256","name":"_reserveId","type":"uint256"}],"name":"getReserveData","outputs":[{"components":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint16","name":"collateralFactor","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct AaveV4View.ReserveData","name":"reserveData","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"uint256","name":"_reserveId","type":"uint256"}],"name":"getReserveDataFull","outputs":[{"components":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"address","name":"hub","type":"address"},{"internalType":"uint16","name":"assetId","type":"uint16"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"frozen","type":"bool"},{"internalType":"bool","name":"borrowable","type":"bool"},{"internalType":"uint24","name":"collateralRisk","type":"uint24"},{"internalType":"uint16","name":"collateralFactor","type":"uint16"},{"internalType":"uint32","name":"maxLiquidationBonus","type":"uint32"},{"internalType":"uint16","name":"liquidationFee","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"totalSupplied","type":"uint256"},{"internalType":"uint256","name":"totalDrawn","type":"uint256"},{"internalType":"uint256","name":"totalPremium","type":"uint256"},{"internalType":"uint256","name":"totalDebt","type":"uint256"},{"internalType":"uint256","name":"supplyCap","type":"uint256"},{"internalType":"uint256","name":"borrowCap","type":"uint256"},{"internalType":"uint256","name":"deficitRay","type":"uint256"},{"internalType":"bool","name":"spokeActive","type":"bool"},{"internalType":"bool","name":"spokeHalted","type":"bool"}],"internalType":"struct AaveV4View.ReserveDataFull","name":"reserveData","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"uint256","name":"_reserveId","type":"uint256"}],"name":"getReservePrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"uint256[]","name":"_reserveIds","type":"uint256[]"}],"name":"getReservePrices","outputs":[{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"uint256[]","name":"_reserveIds","type":"uint256[]"}],"name":"getReservesData","outputs":[{"components":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint16","name":"collateralFactor","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct AaveV4View.ReserveData[]","name":"reserveData","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"uint256[]","name":"_reserveIds","type":"uint256[]"}],"name":"getReservesDataFull","outputs":[{"components":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"address","name":"hub","type":"address"},{"internalType":"uint16","name":"assetId","type":"uint16"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"frozen","type":"bool"},{"internalType":"bool","name":"borrowable","type":"bool"},{"internalType":"uint24","name":"collateralRisk","type":"uint24"},{"internalType":"uint16","name":"collateralFactor","type":"uint16"},{"internalType":"uint32","name":"maxLiquidationBonus","type":"uint32"},{"internalType":"uint16","name":"liquidationFee","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"totalSupplied","type":"uint256"},{"internalType":"uint256","name":"totalDrawn","type":"uint256"},{"internalType":"uint256","name":"totalPremium","type":"uint256"},{"internalType":"uint256","name":"totalDebt","type":"uint256"},{"internalType":"uint256","name":"supplyCap","type":"uint256"},{"internalType":"uint256","name":"borrowCap","type":"uint256"},{"internalType":"uint256","name":"deficitRay","type":"uint256"},{"internalType":"bool","name":"spokeActive","type":"bool"},{"internalType":"bool","name":"spokeHalted","type":"bool"}],"internalType":"struct AaveV4View.ReserveDataFull[]","name":"reserveData","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"}],"name":"getSpokeData","outputs":[{"components":[{"internalType":"uint128","name":"targetHealthFactor","type":"uint128"},{"internalType":"uint64","name":"healthFactorForMaxBonus","type":"uint64"},{"internalType":"uint16","name":"liquidationBonusFactor","type":"uint16"},{"internalType":"address","name":"oracle","type":"address"},{"internalType":"uint256","name":"oracleDecimals","type":"uint256"},{"internalType":"uint256","name":"reserveCount","type":"uint256"}],"internalType":"struct AaveV4View.SpokeData","name":"spokeData","type":"tuple"},{"components":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint16","name":"collateralFactor","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct AaveV4View.ReserveData[]","name":"reserves","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"}],"name":"getSpokeDataFull","outputs":[{"components":[{"internalType":"uint128","name":"targetHealthFactor","type":"uint128"},{"internalType":"uint64","name":"healthFactorForMaxBonus","type":"uint64"},{"internalType":"uint16","name":"liquidationBonusFactor","type":"uint16"},{"internalType":"address","name":"oracle","type":"address"},{"internalType":"uint256","name":"oracleDecimals","type":"uint256"},{"internalType":"uint256","name":"reserveCount","type":"uint256"}],"internalType":"struct AaveV4View.SpokeData","name":"spokeData","type":"tuple"},{"components":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"address","name":"hub","type":"address"},{"internalType":"uint16","name":"assetId","type":"uint16"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"frozen","type":"bool"},{"internalType":"bool","name":"borrowable","type":"bool"},{"internalType":"uint24","name":"collateralRisk","type":"uint24"},{"internalType":"uint16","name":"collateralFactor","type":"uint16"},{"internalType":"uint32","name":"maxLiquidationBonus","type":"uint32"},{"internalType":"uint16","name":"liquidationFee","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"totalSupplied","type":"uint256"},{"internalType":"uint256","name":"totalDrawn","type":"uint256"},{"internalType":"uint256","name":"totalPremium","type":"uint256"},{"internalType":"uint256","name":"totalDebt","type":"uint256"},{"internalType":"uint256","name":"supplyCap","type":"uint256"},{"internalType":"uint256","name":"borrowCap","type":"uint256"},{"internalType":"uint256","name":"deficitRay","type":"uint256"},{"internalType":"bool","name":"spokeActive","type":"bool"},{"internalType":"bool","name":"spokeHalted","type":"bool"}],"internalType":"struct AaveV4View.ReserveDataFull[]","name":"reserves","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_hub","type":"address"},{"internalType":"uint256","name":"_assetId","type":"uint256"}],"name":"getSpokesForAsset","outputs":[{"internalType":"address[]","name":"spokes","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getTokenizationSpokeData","outputs":[{"components":[{"internalType":"address","name":"underlyingAsset","type":"address"},{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"spoke","type":"address"},{"internalType":"bool","name":"spokeActive","type":"bool"},{"internalType":"bool","name":"spokeHalted","type":"bool"},{"internalType":"uint256","name":"spokeDepositCap","type":"uint256"},{"internalType":"uint256","name":"spokeTotalAssets","type":"uint256"},{"internalType":"uint256","name":"spokeTotalShares","type":"uint256"},{"internalType":"address","name":"hub","type":"address"},{"internalType":"uint256","name":"hubLiquidity","type":"uint256"},{"internalType":"uint96","name":"hubDrawnRate","type":"uint96"},{"internalType":"uint256","name":"convertToShares","type":"uint256"},{"internalType":"uint256","name":"convertToAssets","type":"uint256"},{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"userSuppliedAssets","type":"uint256"},{"internalType":"uint256","name":"userSuppliedShares","type":"uint256"}],"internalType":"struct AaveV4View.TokenizationSpokeData","name":"spokeData","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_spokes","type":"address[]"},{"internalType":"address","name":"_user","type":"address"}],"name":"getTokenizationSpokesData","outputs":[{"components":[{"internalType":"address","name":"underlyingAsset","type":"address"},{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"spoke","type":"address"},{"internalType":"bool","name":"spokeActive","type":"bool"},{"internalType":"bool","name":"spokeHalted","type":"bool"},{"internalType":"uint256","name":"spokeDepositCap","type":"uint256"},{"internalType":"uint256","name":"spokeTotalAssets","type":"uint256"},{"internalType":"uint256","name":"spokeTotalShares","type":"uint256"},{"internalType":"address","name":"hub","type":"address"},{"internalType":"uint256","name":"hubLiquidity","type":"uint256"},{"internalType":"uint96","name":"hubDrawnRate","type":"uint96"},{"internalType":"uint256","name":"convertToShares","type":"uint256"},{"internalType":"uint256","name":"convertToAssets","type":"uint256"},{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"userSuppliedAssets","type":"uint256"},{"internalType":"uint256","name":"userSuppliedShares","type":"uint256"}],"internalType":"struct AaveV4View.TokenizationSpokeData[]","name":"spokeData","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spoke","type":"address"},{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256[]","name":"_reserveIds","type":"uint256[]"}],"name":"getUserReserveData","outputs":[{"components":[{"internalType":"uint256","name":"reserveId","type":"uint256"},{"internalType":"uint16","name":"assetId","type":"uint16"},{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"supplied","type":"uint256"},{"internalType":"uint256","name":"drawn","type":"uint256"},{"internalType":"uint256","name":"premium","type":"uint256"},{"internalType":"uint256","name":"totalDebt","type":"uint256"},{"internalType":"uint16","name":"collateralFactor","type":"uint16"},{"internalType":"uint32","name":"maxLiquidationBonus","type":"uint32"},{"internalType":"uint16","name":"liquidationFee","type":"uint16"},{"internalType":"bool","name":"isUsingAsCollateral","type":"bool"},{"internalType":"bool","name":"isBorrowing","type":"bool"}],"internalType":"struct AaveV4View.UserReserveData[]","name":"_userReserves","type":"tuple[]"}],"stateMutability":"view","type":"function"}],
1328
1328
  "networks": {
1329
1329
  "1": {
1330
- "address": "0x34b6B5A3e8fB9135EbB47ACE4242b47E51064f5D",
1330
+ "address": "0x10B748Dc504C2515Bb6A9e23CB2F686090b6c584",
1331
1331
  }
1332
1332
  }
1333
1333
  } as const;
@@ -12,21 +12,21 @@ export const AAVE_V4_CORE_HUB = (networkId: NetworkNumber): AaveV4HubInfo => ({
12
12
  chainIds: [NetworkNumber.Eth],
13
13
  label: 'Core Hub',
14
14
  value: AaveV4HubsType.AaveV4CoreHub,
15
- address: '0x3Ed2C9829FBCab6015E331a0352F8ae148217D70',
15
+ address: '0x630c2cFF89cb11E62dE047EaeD8C4B396906bD7D',
16
16
  });
17
17
 
18
18
  export const AAVE_V4_PLUS_HUB = (networkId: NetworkNumber): AaveV4HubInfo => ({
19
19
  chainIds: [NetworkNumber.Eth],
20
20
  label: 'Plus Hub',
21
21
  value: AaveV4HubsType.AaveV4PlusHub,
22
- address: '0xcb8C80026248f92c6DE735264c23c8e22922C562',
22
+ address: '0x903395aEF788bD0A3a4c7a08651a9115add7c36b',
23
23
  });
24
24
 
25
25
  export const AAVE_V4_PRIME_HUB = (networkId: NetworkNumber): AaveV4HubInfo => ({
26
26
  chainIds: [NetworkNumber.Eth],
27
27
  label: 'Prime Hub',
28
28
  value: AaveV4HubsType.AaveV4PrimeHub,
29
- address: '0xea40581231Ca775e6A3d7c129cF231D292B85f20',
29
+ address: '0xf64d97bd0454DF721d0edB468265f204D3A3421D',
30
30
  });
31
31
 
32
32
  export const AaveV4Hubs = (networkId: NetworkNumber) => ({
@@ -48,7 +48,7 @@ export const AAVE_V4_BLUECHIP_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInf
48
48
  label: 'Bluechip Spoke',
49
49
  value: AaveV4SpokesType.AaveV4BluechipSpoke,
50
50
  url: 'bluechip',
51
- address: '0x637F9E189332a2821e5B046E2d7EEFae2405d6c5',
51
+ address: '0xF1Fa1042474dC8bd4Ef830Fe70aE22C85A326729',
52
52
  hubs: [
53
53
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
54
54
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -56,12 +56,25 @@ export const AAVE_V4_BLUECHIP_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInf
56
56
  ],
57
57
  });
58
58
 
59
- export const AAVE_V4_ETHENA_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo => ({
59
+ export const AAVE_V4_ETHENA_CORRELATED_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo => ({
60
60
  chainIds: [NetworkNumber.Eth],
61
- label: 'Ethena Spoke',
62
- value: AaveV4SpokesType.AaveV4EthenaSpoke,
63
- url: 'ethena',
64
- address: '0xf3b207c235f6154120F41eB63D5ACCBAfD4086D1',
61
+ label: 'Ethena Correlated Spoke',
62
+ value: AaveV4SpokesType.AaveV4EthenaCorrelatedSpoke,
63
+ url: 'ethena-correlated',
64
+ address: '0xa1A984B65b661599a61680f56a6c864ECED96CA6',
65
+ hubs: [
66
+ AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
67
+ AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
68
+ AAVE_V4_PRIME_HUB(NetworkNumber.Eth).address,
69
+ ],
70
+ });
71
+
72
+ export const AAVE_V4_ETHENA_ECOSYSTEM_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo => ({
73
+ chainIds: [NetworkNumber.Eth],
74
+ label: 'Ethena Ecosystem Spoke',
75
+ value: AaveV4SpokesType.AaveV4EthenaEcosystemSpoke,
76
+ url: 'ethena-ecosystem',
77
+ address: '0x417Fae379865b8E298332e2F6fdcc2526D55a090',
65
78
  hubs: [
66
79
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
67
80
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -74,7 +87,20 @@ export const AAVE_V4_ETHERFI_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo
74
87
  label: 'Etherfi Spoke',
75
88
  value: AaveV4SpokesType.AaveV4EtherfiSpoke,
76
89
  url: 'etherfi',
77
- address: '0x4054a9EbfcdB692599a8dF61eb0b3484F2d279D4',
90
+ address: '0x7ED7431793eCbe5d42D64CA9b2593d026beB051B',
91
+ hubs: [
92
+ AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
93
+ AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
94
+ AAVE_V4_PRIME_HUB(NetworkNumber.Eth).address,
95
+ ],
96
+ });
97
+
98
+ export const AAVE_V4_FOREX_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo => ({
99
+ chainIds: [NetworkNumber.Eth],
100
+ label: 'Forex Spoke',
101
+ value: AaveV4SpokesType.AaveV4ForexSpoke,
102
+ url: 'forex',
103
+ address: '0x37b36B7dfaBB69B12519B7Faaf019a6C0B261264',
78
104
  hubs: [
79
105
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
80
106
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -87,7 +113,7 @@ export const AAVE_V4_GOLD_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo =>
87
113
  label: 'Gold Spoke',
88
114
  value: AaveV4SpokesType.AaveV4GoldSpoke,
89
115
  url: 'gold',
90
- address: '0x0DC7ccE912Afab8B49031A0A95DB74531741C2c4',
116
+ address: '0x332EFa0E2121091Ae94f44F8c2C383B061ae2Ea7',
91
117
  hubs: [
92
118
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
93
119
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -100,7 +126,7 @@ export const AAVE_V4_KELP_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo =>
100
126
  label: 'Kelp Spoke',
101
127
  value: AaveV4SpokesType.AaveV4KelpSpoke,
102
128
  url: 'kelp',
103
- address: '0x8aC76d950a3D03F9E1d857b5AAFFdA3f86C1e9AA',
129
+ address: '0xC8FA3983843E7a978244e34c0e2562159A3D0783',
104
130
  hubs: [
105
131
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
106
132
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -113,7 +139,20 @@ export const AAVE_V4_LIDO_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo =>
113
139
  label: 'Lido Spoke',
114
140
  value: AaveV4SpokesType.AaveV4LidoSpoke,
115
141
  url: 'lido',
116
- address: '0x4D4a7b3Ce709b4362D7095a4A0105bDFDb5dA2a7',
142
+ address: '0xa9Dd188591A6F0C92bD1dC3A461a64c188694FB3',
143
+ hubs: [
144
+ AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
145
+ AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
146
+ AAVE_V4_PRIME_HUB(NetworkNumber.Eth).address,
147
+ ],
148
+ });
149
+
150
+ export const AAVE_V4_LOMBARD_BTC_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo => ({
151
+ chainIds: [NetworkNumber.Eth],
152
+ label: 'Lombard BTC Spoke',
153
+ value: AaveV4SpokesType.AaveV4LombardBtcSpoke,
154
+ url: 'lombard-btc',
155
+ address: '0xc78F5e5566C9Bde0C531fC8c7F5dC5954daFcA9e',
117
156
  hubs: [
118
157
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
119
158
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -126,7 +165,7 @@ export const AAVE_V4_MAIN_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo =>
126
165
  label: 'Main Spoke',
127
166
  value: AaveV4SpokesType.AaveV4MainSpoke,
128
167
  url: 'main',
129
- address: '0x46539e9123A18c427e6b4DFF114c28CF405Cb023',
168
+ address: '0x6488A415e9eA693EC7Ef32579507e1907c0AC798',
130
169
  hubs: [
131
170
  AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
132
171
  AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
@@ -136,11 +175,14 @@ export const AAVE_V4_MAIN_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo =>
136
175
 
137
176
  export const AaveV4Spokes = (networkId: NetworkNumber) => ({
138
177
  [AaveV4SpokesType.AaveV4BluechipSpoke]: AAVE_V4_BLUECHIP_SPOKE(networkId),
139
- [AaveV4SpokesType.AaveV4EthenaSpoke]: AAVE_V4_ETHENA_SPOKE(networkId),
178
+ [AaveV4SpokesType.AaveV4EthenaCorrelatedSpoke]: AAVE_V4_ETHENA_CORRELATED_SPOKE(networkId),
179
+ [AaveV4SpokesType.AaveV4EthenaEcosystemSpoke]: AAVE_V4_ETHENA_ECOSYSTEM_SPOKE(networkId),
140
180
  [AaveV4SpokesType.AaveV4EtherfiSpoke]: AAVE_V4_ETHERFI_SPOKE(networkId),
181
+ [AaveV4SpokesType.AaveV4ForexSpoke]: AAVE_V4_FOREX_SPOKE(networkId),
141
182
  [AaveV4SpokesType.AaveV4GoldSpoke]: AAVE_V4_GOLD_SPOKE(networkId),
142
183
  [AaveV4SpokesType.AaveV4KelpSpoke]: AAVE_V4_KELP_SPOKE(networkId),
143
184
  [AaveV4SpokesType.AaveV4LidoSpoke]: AAVE_V4_LIDO_SPOKE(networkId),
185
+ [AaveV4SpokesType.AaveV4LombardBtcSpoke]: AAVE_V4_LOMBARD_BTC_SPOKE(networkId),
144
186
  [AaveV4SpokesType.AaveV4MainSpoke]: AAVE_V4_MAIN_SPOKE(networkId),
145
187
  }) as const;
146
188
 
@@ -10,11 +10,14 @@ export enum AaveV4HubsType {
10
10
 
11
11
  export enum AaveV4SpokesType {
12
12
  AaveV4BluechipSpoke = 'aave_v4_bluechip_spoke',
13
- AaveV4EthenaSpoke = 'aave_v4_ethena_spoke',
13
+ AaveV4EthenaCorrelatedSpoke = 'aave_v4_ethena_correlated_spoke',
14
+ AaveV4EthenaEcosystemSpoke = 'aave_v4_ethena_ecosystem_spoke',
14
15
  AaveV4EtherfiSpoke = 'aave_v4_etherfi_spoke',
16
+ AaveV4ForexSpoke = 'aave_v4_forex_spoke',
15
17
  AaveV4GoldSpoke = 'aave_v4_gold_spoke',
16
18
  AaveV4KelpSpoke = 'aave_v4_kelp_spoke',
17
19
  AaveV4LidoSpoke = 'aave_v4_lido_spoke',
20
+ AaveV4LombardBtcSpoke = 'aave_v4_lombard_btc_spoke',
18
21
  AaveV4MainSpoke = 'aave_v4_main_spoke',
19
22
  }
20
23