@defisaver/positions-sdk 2.1.79-aave-v4-dev → 2.1.79-aave-v4-2-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/aaveV4/index.js +1 -1
- package/cjs/config/contracts.d.ts +1 -1
- package/cjs/config/contracts.js +1 -1
- package/cjs/markets/aaveV4/index.js +13 -13
- package/esm/aaveV4/index.js +1 -1
- package/esm/config/contracts.d.ts +1 -1
- package/esm/config/contracts.js +1 -1
- package/esm/markets/aaveV4/index.js +13 -13
- package/package.json +1 -1
- package/src/aaveV4/index.ts +1 -1
- package/src/config/contracts.ts +1 -1
- package/src/markets/aaveV4/index.ts +13 -13
package/cjs/aaveV4/index.js
CHANGED
|
@@ -212,7 +212,7 @@ const formatReserveAsset = (reserveAsset, hubAsset, reserveId, oracleDecimals, n
|
|
|
212
212
|
supplyRate: (0, moneymarket_1.aprToApy)(supplyApr.toString()),
|
|
213
213
|
supplyIncentives,
|
|
214
214
|
borrowIncentives,
|
|
215
|
-
canBeBorrowed: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused && !reserveAsset.frozen,
|
|
215
|
+
canBeBorrowed: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused && !reserveAsset.frozen && reserveAsset.borrowable,
|
|
216
216
|
canBeSupplied: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused && !reserveAsset.frozen,
|
|
217
217
|
canBeWithdrawn: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused,
|
|
218
218
|
canBePayBacked: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused,
|
|
@@ -92844,7 +92844,7 @@ export declare const AaveV4View: {
|
|
|
92844
92844
|
}];
|
|
92845
92845
|
readonly networks: {
|
|
92846
92846
|
readonly "1": {
|
|
92847
|
-
readonly address: "
|
|
92847
|
+
readonly address: "0x274C0f0164A82B8771145651A8331A909c939e42";
|
|
92848
92848
|
};
|
|
92849
92849
|
};
|
|
92850
92850
|
};
|
package/cjs/config/contracts.js
CHANGED
|
@@ -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": "
|
|
1333
|
+
"address": "0x274C0f0164A82B8771145651A8331A909c939e42",
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
1336
|
};
|
|
@@ -7,21 +7,21 @@ 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: '
|
|
10
|
+
address: '0xCca852Bc40e560adC3b1Cc58CA5b55638ce826c9',
|
|
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: '
|
|
17
|
+
address: '0x06002e9c4412CB7814a791eA3666D905871E536A',
|
|
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: '
|
|
24
|
+
address: '0x943827DCA022D0F354a8a8c332dA1e5Eb9f9F931',
|
|
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: '
|
|
43
|
+
address: '0x973a023A77420ba610f06b3858aD991Df6d85A08',
|
|
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,
|
|
@@ -53,7 +53,7 @@ const AAVE_V4_ETHENA_CORRELATED_SPOKE = (networkId) => ({
|
|
|
53
53
|
label: 'Ethena Correlated Spoke',
|
|
54
54
|
value: types_1.AaveV4SpokesType.AaveV4EthenaCorrelatedSpoke,
|
|
55
55
|
url: 'ethena-correlated',
|
|
56
|
-
address: '
|
|
56
|
+
address: '0x58131E79531caB1d52301228d1f7b842F26B9649',
|
|
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,
|
|
@@ -66,7 +66,7 @@ const AAVE_V4_ETHENA_ECOSYSTEM_SPOKE = (networkId) => ({
|
|
|
66
66
|
label: 'Ethena Ecosystem Spoke',
|
|
67
67
|
value: types_1.AaveV4SpokesType.AaveV4EthenaEcosystemSpoke,
|
|
68
68
|
url: 'ethena-ecosystem',
|
|
69
|
-
address: '
|
|
69
|
+
address: '0xba1B3D55D249692b669A164024A838309B7508AF',
|
|
70
70
|
hubs: [
|
|
71
71
|
(0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
|
|
72
72
|
(0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
|
|
@@ -79,7 +79,7 @@ const AAVE_V4_ETHERFI_SPOKE = (networkId) => ({
|
|
|
79
79
|
label: 'Etherfi Spoke',
|
|
80
80
|
value: types_1.AaveV4SpokesType.AaveV4EtherfiSpoke,
|
|
81
81
|
url: 'etherfi',
|
|
82
|
-
address: '
|
|
82
|
+
address: '0xbF10BDfE177dE0336aFD7fcCF80A904E15386219',
|
|
83
83
|
hubs: [
|
|
84
84
|
(0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
|
|
85
85
|
(0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
|
|
@@ -92,7 +92,7 @@ const AAVE_V4_FOREX_SPOKE = (networkId) => ({
|
|
|
92
92
|
label: 'Forex Spoke',
|
|
93
93
|
value: types_1.AaveV4SpokesType.AaveV4ForexSpoke,
|
|
94
94
|
url: 'forex',
|
|
95
|
-
address: '
|
|
95
|
+
address: '0xD8B93635b8C6d0fF98CbE90b5988E3F2d1Cd9da1',
|
|
96
96
|
hubs: [
|
|
97
97
|
(0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
|
|
98
98
|
(0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
|
|
@@ -105,7 +105,7 @@ const AAVE_V4_GOLD_SPOKE = (networkId) => ({
|
|
|
105
105
|
label: 'Gold Spoke',
|
|
106
106
|
value: types_1.AaveV4SpokesType.AaveV4GoldSpoke,
|
|
107
107
|
url: 'gold',
|
|
108
|
-
address: '
|
|
108
|
+
address: '0x65407b940966954b23dfA3caA5C0702bB42984DC',
|
|
109
109
|
hubs: [
|
|
110
110
|
(0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
|
|
111
111
|
(0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
|
|
@@ -118,7 +118,7 @@ const AAVE_V4_KELP_SPOKE = (networkId) => ({
|
|
|
118
118
|
label: 'Kelp Spoke',
|
|
119
119
|
value: types_1.AaveV4SpokesType.AaveV4KelpSpoke,
|
|
120
120
|
url: 'kelp',
|
|
121
|
-
address: '
|
|
121
|
+
address: '0x3131FE68C4722e726fe6B2819ED68e514395B9a4',
|
|
122
122
|
hubs: [
|
|
123
123
|
(0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
|
|
124
124
|
(0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
|
|
@@ -131,7 +131,7 @@ const AAVE_V4_LIDO_SPOKE = (networkId) => ({
|
|
|
131
131
|
label: 'Lido Spoke',
|
|
132
132
|
value: types_1.AaveV4SpokesType.AaveV4LidoSpoke,
|
|
133
133
|
url: 'lido',
|
|
134
|
-
address: '
|
|
134
|
+
address: '0xe1900480ac69f0B296841Cd01cC37546d92F35Cd',
|
|
135
135
|
hubs: [
|
|
136
136
|
(0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
|
|
137
137
|
(0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
|
|
@@ -144,7 +144,7 @@ const AAVE_V4_LOMBARD_BTC_SPOKE = (networkId) => ({
|
|
|
144
144
|
label: 'Lombard BTC Spoke',
|
|
145
145
|
value: types_1.AaveV4SpokesType.AaveV4LombardBtcSpoke,
|
|
146
146
|
url: 'lombard-btc',
|
|
147
|
-
address: '
|
|
147
|
+
address: '0x7EC68b5695e803e98a21a9A05d744F28b0a7753D',
|
|
148
148
|
hubs: [
|
|
149
149
|
(0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
|
|
150
150
|
(0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
|
|
@@ -157,7 +157,7 @@ const AAVE_V4_MAIN_SPOKE = (networkId) => ({
|
|
|
157
157
|
label: 'Main Spoke',
|
|
158
158
|
value: types_1.AaveV4SpokesType.AaveV4MainSpoke,
|
|
159
159
|
url: 'main',
|
|
160
|
-
address: '
|
|
160
|
+
address: '0x94e7A5dCbE816e498b89aB752661904E2F56c485',
|
|
161
161
|
hubs: [
|
|
162
162
|
(0, exports.AAVE_V4_CORE_HUB)(types_1.NetworkNumber.Eth).address,
|
|
163
163
|
(0, exports.AAVE_V4_PLUS_HUB)(types_1.NetworkNumber.Eth).address,
|
package/esm/aaveV4/index.js
CHANGED
|
@@ -169,7 +169,7 @@ const formatReserveAsset = (reserveAsset, hubAsset, reserveId, oracleDecimals, n
|
|
|
169
169
|
supplyRate: aprToApy(supplyApr.toString()),
|
|
170
170
|
supplyIncentives,
|
|
171
171
|
borrowIncentives,
|
|
172
|
-
canBeBorrowed: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused && !reserveAsset.frozen,
|
|
172
|
+
canBeBorrowed: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused && !reserveAsset.frozen && reserveAsset.borrowable,
|
|
173
173
|
canBeSupplied: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused && !reserveAsset.frozen,
|
|
174
174
|
canBeWithdrawn: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused,
|
|
175
175
|
canBePayBacked: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused,
|
|
@@ -92844,7 +92844,7 @@ export declare const AaveV4View: {
|
|
|
92844
92844
|
}];
|
|
92845
92845
|
readonly networks: {
|
|
92846
92846
|
readonly "1": {
|
|
92847
|
-
readonly address: "
|
|
92847
|
+
readonly address: "0x274C0f0164A82B8771145651A8331A909c939e42";
|
|
92848
92848
|
};
|
|
92849
92849
|
};
|
|
92850
92850
|
};
|
package/esm/config/contracts.js
CHANGED
|
@@ -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": "
|
|
1328
|
+
"address": "0x274C0f0164A82B8771145651A8331A909c939e42",
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
};
|
|
@@ -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: '
|
|
7
|
+
address: '0xCca852Bc40e560adC3b1Cc58CA5b55638ce826c9',
|
|
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: '
|
|
13
|
+
address: '0x06002e9c4412CB7814a791eA3666D905871E536A',
|
|
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: '
|
|
19
|
+
address: '0x943827DCA022D0F354a8a8c332dA1e5Eb9f9F931',
|
|
20
20
|
});
|
|
21
21
|
export const AaveV4Hubs = (networkId) => ({
|
|
22
22
|
[AaveV4HubsType.AaveV4CoreHub]: AAVE_V4_CORE_HUB(networkId),
|
|
@@ -31,7 +31,7 @@ export const AAVE_V4_BLUECHIP_SPOKE = (networkId) => ({
|
|
|
31
31
|
label: 'Bluechip Spoke',
|
|
32
32
|
value: AaveV4SpokesType.AaveV4BluechipSpoke,
|
|
33
33
|
url: 'bluechip',
|
|
34
|
-
address: '
|
|
34
|
+
address: '0x973a023A77420ba610f06b3858aD991Df6d85A08',
|
|
35
35
|
hubs: [
|
|
36
36
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
37
37
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -43,7 +43,7 @@ export const AAVE_V4_ETHENA_CORRELATED_SPOKE = (networkId) => ({
|
|
|
43
43
|
label: 'Ethena Correlated Spoke',
|
|
44
44
|
value: AaveV4SpokesType.AaveV4EthenaCorrelatedSpoke,
|
|
45
45
|
url: 'ethena-correlated',
|
|
46
|
-
address: '
|
|
46
|
+
address: '0x58131E79531caB1d52301228d1f7b842F26B9649',
|
|
47
47
|
hubs: [
|
|
48
48
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
49
49
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -55,7 +55,7 @@ export const AAVE_V4_ETHENA_ECOSYSTEM_SPOKE = (networkId) => ({
|
|
|
55
55
|
label: 'Ethena Ecosystem Spoke',
|
|
56
56
|
value: AaveV4SpokesType.AaveV4EthenaEcosystemSpoke,
|
|
57
57
|
url: 'ethena-ecosystem',
|
|
58
|
-
address: '
|
|
58
|
+
address: '0xba1B3D55D249692b669A164024A838309B7508AF',
|
|
59
59
|
hubs: [
|
|
60
60
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
61
61
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -67,7 +67,7 @@ export const AAVE_V4_ETHERFI_SPOKE = (networkId) => ({
|
|
|
67
67
|
label: 'Etherfi Spoke',
|
|
68
68
|
value: AaveV4SpokesType.AaveV4EtherfiSpoke,
|
|
69
69
|
url: 'etherfi',
|
|
70
|
-
address: '
|
|
70
|
+
address: '0xbF10BDfE177dE0336aFD7fcCF80A904E15386219',
|
|
71
71
|
hubs: [
|
|
72
72
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
73
73
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -79,7 +79,7 @@ export const AAVE_V4_FOREX_SPOKE = (networkId) => ({
|
|
|
79
79
|
label: 'Forex Spoke',
|
|
80
80
|
value: AaveV4SpokesType.AaveV4ForexSpoke,
|
|
81
81
|
url: 'forex',
|
|
82
|
-
address: '
|
|
82
|
+
address: '0xD8B93635b8C6d0fF98CbE90b5988E3F2d1Cd9da1',
|
|
83
83
|
hubs: [
|
|
84
84
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
85
85
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -91,7 +91,7 @@ export const AAVE_V4_GOLD_SPOKE = (networkId) => ({
|
|
|
91
91
|
label: 'Gold Spoke',
|
|
92
92
|
value: AaveV4SpokesType.AaveV4GoldSpoke,
|
|
93
93
|
url: 'gold',
|
|
94
|
-
address: '
|
|
94
|
+
address: '0x65407b940966954b23dfA3caA5C0702bB42984DC',
|
|
95
95
|
hubs: [
|
|
96
96
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
97
97
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -103,7 +103,7 @@ export const AAVE_V4_KELP_SPOKE = (networkId) => ({
|
|
|
103
103
|
label: 'Kelp Spoke',
|
|
104
104
|
value: AaveV4SpokesType.AaveV4KelpSpoke,
|
|
105
105
|
url: 'kelp',
|
|
106
|
-
address: '
|
|
106
|
+
address: '0x3131FE68C4722e726fe6B2819ED68e514395B9a4',
|
|
107
107
|
hubs: [
|
|
108
108
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
109
109
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -115,7 +115,7 @@ export const AAVE_V4_LIDO_SPOKE = (networkId) => ({
|
|
|
115
115
|
label: 'Lido Spoke',
|
|
116
116
|
value: AaveV4SpokesType.AaveV4LidoSpoke,
|
|
117
117
|
url: 'lido',
|
|
118
|
-
address: '
|
|
118
|
+
address: '0xe1900480ac69f0B296841Cd01cC37546d92F35Cd',
|
|
119
119
|
hubs: [
|
|
120
120
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
121
121
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -127,7 +127,7 @@ export const AAVE_V4_LOMBARD_BTC_SPOKE = (networkId) => ({
|
|
|
127
127
|
label: 'Lombard BTC Spoke',
|
|
128
128
|
value: AaveV4SpokesType.AaveV4LombardBtcSpoke,
|
|
129
129
|
url: 'lombard-btc',
|
|
130
|
-
address: '
|
|
130
|
+
address: '0x7EC68b5695e803e98a21a9A05d744F28b0a7753D',
|
|
131
131
|
hubs: [
|
|
132
132
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
133
133
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -139,7 +139,7 @@ export const AAVE_V4_MAIN_SPOKE = (networkId) => ({
|
|
|
139
139
|
label: 'Main Spoke',
|
|
140
140
|
value: AaveV4SpokesType.AaveV4MainSpoke,
|
|
141
141
|
url: 'main',
|
|
142
|
-
address: '
|
|
142
|
+
address: '0x94e7A5dCbE816e498b89aB752661904E2F56c485',
|
|
143
143
|
hubs: [
|
|
144
144
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
145
145
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
package/package.json
CHANGED
package/src/aaveV4/index.ts
CHANGED
|
@@ -198,7 +198,7 @@ const formatReserveAsset = async (reserveAsset: AaveV4ReserveAssetOnChain, hubAs
|
|
|
198
198
|
supplyRate: aprToApy(supplyApr.toString()),
|
|
199
199
|
supplyIncentives,
|
|
200
200
|
borrowIncentives,
|
|
201
|
-
canBeBorrowed: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused && !reserveAsset.frozen,
|
|
201
|
+
canBeBorrowed: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused && !reserveAsset.frozen && reserveAsset.borrowable,
|
|
202
202
|
canBeSupplied: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused && !reserveAsset.frozen,
|
|
203
203
|
canBeWithdrawn: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused,
|
|
204
204
|
canBePayBacked: reserveAsset.spokeActive && !reserveAsset.spokeHalted && !reserveAsset.paused,
|
package/src/config/contracts.ts
CHANGED
|
@@ -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": "
|
|
1330
|
+
"address": "0x274C0f0164A82B8771145651A8331A909c939e42",
|
|
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: '
|
|
15
|
+
address: '0xCca852Bc40e560adC3b1Cc58CA5b55638ce826c9',
|
|
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: '
|
|
22
|
+
address: '0x06002e9c4412CB7814a791eA3666D905871E536A',
|
|
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: '
|
|
29
|
+
address: '0x943827DCA022D0F354a8a8c332dA1e5Eb9f9F931',
|
|
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: '
|
|
51
|
+
address: '0x973a023A77420ba610f06b3858aD991Df6d85A08',
|
|
52
52
|
hubs: [
|
|
53
53
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
54
54
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -61,7 +61,7 @@ export const AAVE_V4_ETHENA_CORRELATED_SPOKE = (networkId: NetworkNumber): AaveV
|
|
|
61
61
|
label: 'Ethena Correlated Spoke',
|
|
62
62
|
value: AaveV4SpokesType.AaveV4EthenaCorrelatedSpoke,
|
|
63
63
|
url: 'ethena-correlated',
|
|
64
|
-
address: '
|
|
64
|
+
address: '0x58131E79531caB1d52301228d1f7b842F26B9649',
|
|
65
65
|
hubs: [
|
|
66
66
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
67
67
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -74,7 +74,7 @@ export const AAVE_V4_ETHENA_ECOSYSTEM_SPOKE = (networkId: NetworkNumber): AaveV4
|
|
|
74
74
|
label: 'Ethena Ecosystem Spoke',
|
|
75
75
|
value: AaveV4SpokesType.AaveV4EthenaEcosystemSpoke,
|
|
76
76
|
url: 'ethena-ecosystem',
|
|
77
|
-
address: '
|
|
77
|
+
address: '0xba1B3D55D249692b669A164024A838309B7508AF',
|
|
78
78
|
hubs: [
|
|
79
79
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
80
80
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -87,7 +87,7 @@ export const AAVE_V4_ETHERFI_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo
|
|
|
87
87
|
label: 'Etherfi Spoke',
|
|
88
88
|
value: AaveV4SpokesType.AaveV4EtherfiSpoke,
|
|
89
89
|
url: 'etherfi',
|
|
90
|
-
address: '
|
|
90
|
+
address: '0xbF10BDfE177dE0336aFD7fcCF80A904E15386219',
|
|
91
91
|
hubs: [
|
|
92
92
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
93
93
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -100,7 +100,7 @@ export const AAVE_V4_FOREX_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo =
|
|
|
100
100
|
label: 'Forex Spoke',
|
|
101
101
|
value: AaveV4SpokesType.AaveV4ForexSpoke,
|
|
102
102
|
url: 'forex',
|
|
103
|
-
address: '
|
|
103
|
+
address: '0xD8B93635b8C6d0fF98CbE90b5988E3F2d1Cd9da1',
|
|
104
104
|
hubs: [
|
|
105
105
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
106
106
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -113,7 +113,7 @@ export const AAVE_V4_GOLD_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo =>
|
|
|
113
113
|
label: 'Gold Spoke',
|
|
114
114
|
value: AaveV4SpokesType.AaveV4GoldSpoke,
|
|
115
115
|
url: 'gold',
|
|
116
|
-
address: '
|
|
116
|
+
address: '0x65407b940966954b23dfA3caA5C0702bB42984DC',
|
|
117
117
|
hubs: [
|
|
118
118
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
119
119
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -126,7 +126,7 @@ export const AAVE_V4_KELP_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo =>
|
|
|
126
126
|
label: 'Kelp Spoke',
|
|
127
127
|
value: AaveV4SpokesType.AaveV4KelpSpoke,
|
|
128
128
|
url: 'kelp',
|
|
129
|
-
address: '
|
|
129
|
+
address: '0x3131FE68C4722e726fe6B2819ED68e514395B9a4',
|
|
130
130
|
hubs: [
|
|
131
131
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
132
132
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -139,7 +139,7 @@ export const AAVE_V4_LIDO_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo =>
|
|
|
139
139
|
label: 'Lido Spoke',
|
|
140
140
|
value: AaveV4SpokesType.AaveV4LidoSpoke,
|
|
141
141
|
url: 'lido',
|
|
142
|
-
address: '
|
|
142
|
+
address: '0xe1900480ac69f0B296841Cd01cC37546d92F35Cd',
|
|
143
143
|
hubs: [
|
|
144
144
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
145
145
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -152,7 +152,7 @@ export const AAVE_V4_LOMBARD_BTC_SPOKE = (networkId: NetworkNumber): AaveV4Spoke
|
|
|
152
152
|
label: 'Lombard BTC Spoke',
|
|
153
153
|
value: AaveV4SpokesType.AaveV4LombardBtcSpoke,
|
|
154
154
|
url: 'lombard-btc',
|
|
155
|
-
address: '
|
|
155
|
+
address: '0x7EC68b5695e803e98a21a9A05d744F28b0a7753D',
|
|
156
156
|
hubs: [
|
|
157
157
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
158
158
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|
|
@@ -165,7 +165,7 @@ export const AAVE_V4_MAIN_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo =>
|
|
|
165
165
|
label: 'Main Spoke',
|
|
166
166
|
value: AaveV4SpokesType.AaveV4MainSpoke,
|
|
167
167
|
url: 'main',
|
|
168
|
-
address: '
|
|
168
|
+
address: '0x94e7A5dCbE816e498b89aB752661904E2F56c485',
|
|
169
169
|
hubs: [
|
|
170
170
|
AAVE_V4_CORE_HUB(NetworkNumber.Eth).address,
|
|
171
171
|
AAVE_V4_PLUS_HUB(NetworkNumber.Eth).address,
|