Created
June 1, 2023 06:36
-
-
Save danielwpz/b8988ee623b3648f2c86e26b5d4532e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "contract IEACAggregatorProxy", | |
"name": "_networkBaseTokenPriceInUsdProxyAggregator", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract IEACAggregatorProxy", | |
"name": "_marketReferenceCurrencyPriceInUsdProxyAggregator", | |
"type": "address" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"inputs": [], | |
"name": "ETH_CURRENCY_UNIT", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "MKR_ADDRESS", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "bytes32", | |
"name": "_bytes32", | |
"type": "bytes32" | |
} | |
], | |
"name": "bytes32ToString", | |
"outputs": [ | |
{ | |
"internalType": "string", | |
"name": "", | |
"type": "string" | |
} | |
], | |
"stateMutability": "pure", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "contract IPoolAddressesProvider", | |
"name": "provider", | |
"type": "address" | |
} | |
], | |
"name": "getReservesData", | |
"outputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "address", | |
"name": "underlyingAsset", | |
"type": "address" | |
}, | |
{ | |
"internalType": "string", | |
"name": "name", | |
"type": "string" | |
}, | |
{ | |
"internalType": "string", | |
"name": "symbol", | |
"type": "string" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "decimals", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "baseLTVasCollateral", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "reserveLiquidationThreshold", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "reserveLiquidationBonus", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "reserveFactor", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "usageAsCollateralEnabled", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "borrowingEnabled", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "stableBorrowRateEnabled", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "isActive", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "isFrozen", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "uint128", | |
"name": "liquidityIndex", | |
"type": "uint128" | |
}, | |
{ | |
"internalType": "uint128", | |
"name": "variableBorrowIndex", | |
"type": "uint128" | |
}, | |
{ | |
"internalType": "uint128", | |
"name": "liquidityRate", | |
"type": "uint128" | |
}, | |
{ | |
"internalType": "uint128", | |
"name": "variableBorrowRate", | |
"type": "uint128" | |
}, | |
{ | |
"internalType": "uint128", | |
"name": "stableBorrowRate", | |
"type": "uint128" | |
}, | |
{ | |
"internalType": "uint40", | |
"name": "lastUpdateTimestamp", | |
"type": "uint40" | |
}, | |
{ | |
"internalType": "address", | |
"name": "aTokenAddress", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "stableDebtTokenAddress", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "variableDebtTokenAddress", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "interestRateStrategyAddress", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "availableLiquidity", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "totalPrincipalStableDebt", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "averageStableRate", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "stableDebtLastUpdateTimestamp", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "totalScaledVariableDebt", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "priceInMarketReferenceCurrency", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "address", | |
"name": "priceOracle", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "variableRateSlope1", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "variableRateSlope2", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "stableRateSlope1", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "stableRateSlope2", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "baseStableBorrowRate", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "baseVariableBorrowRate", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "optimalUsageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "isPaused", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "isSiloedBorrowing", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "uint128", | |
"name": "accruedToTreasury", | |
"type": "uint128" | |
}, | |
{ | |
"internalType": "uint128", | |
"name": "unbacked", | |
"type": "uint128" | |
}, | |
{ | |
"internalType": "uint128", | |
"name": "isolationModeTotalDebt", | |
"type": "uint128" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "flashLoanEnabled", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "debtCeiling", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "debtCeilingDecimals", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint8", | |
"name": "eModeCategoryId", | |
"type": "uint8" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "borrowCap", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "supplyCap", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint16", | |
"name": "eModeLtv", | |
"type": "uint16" | |
}, | |
{ | |
"internalType": "uint16", | |
"name": "eModeLiquidationThreshold", | |
"type": "uint16" | |
}, | |
{ | |
"internalType": "uint16", | |
"name": "eModeLiquidationBonus", | |
"type": "uint16" | |
}, | |
{ | |
"internalType": "address", | |
"name": "eModePriceSource", | |
"type": "address" | |
}, | |
{ | |
"internalType": "string", | |
"name": "eModeLabel", | |
"type": "string" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "borrowableInIsolation", | |
"type": "bool" | |
} | |
], | |
"internalType": "struct IUiPoolDataProviderV3.AggregatedReserveData[]", | |
"name": "", | |
"type": "tuple[]" | |
}, | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "marketReferenceCurrencyUnit", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "int256", | |
"name": "marketReferenceCurrencyPriceInUsd", | |
"type": "int256" | |
}, | |
{ | |
"internalType": "int256", | |
"name": "networkBaseTokenPriceInUsd", | |
"type": "int256" | |
}, | |
{ | |
"internalType": "uint8", | |
"name": "networkBaseTokenPriceDecimals", | |
"type": "uint8" | |
} | |
], | |
"internalType": "struct IUiPoolDataProviderV3.BaseCurrencyInfo", | |
"name": "", | |
"type": "tuple" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "contract IPoolAddressesProvider", | |
"name": "provider", | |
"type": "address" | |
} | |
], | |
"name": "getReservesList", | |
"outputs": [ | |
{ | |
"internalType": "address[]", | |
"name": "", | |
"type": "address[]" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "contract IPoolAddressesProvider", | |
"name": "provider", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "user", | |
"type": "address" | |
} | |
], | |
"name": "getUserReservesData", | |
"outputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "address", | |
"name": "underlyingAsset", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "scaledATokenBalance", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "usageAsCollateralEnabledOnUser", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "stableBorrowRate", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "scaledVariableDebt", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "principalStableDebt", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "stableBorrowLastUpdateTimestamp", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct IUiPoolDataProviderV3.UserReserveData[]", | |
"name": "", | |
"type": "tuple[]" | |
}, | |
{ | |
"internalType": "uint8", | |
"name": "", | |
"type": "uint8" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "marketReferenceCurrencyPriceInUsdProxyAggregator", | |
"outputs": [ | |
{ | |
"internalType": "contract IEACAggregatorProxy", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "networkBaseTokenPriceInUsdProxyAggregator", | |
"outputs": [ | |
{ | |
"internalType": "contract IEACAggregatorProxy", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment