assembly/constant/abi/read/aave.json

67 lines
3.0 KiB
JSON
Raw Normal View History

2021-07-21 20:53:46 +00:00
[
{
"inputs": [
{ "internalType": "address", "name": "user", "type": "address" },
{ "internalType": "address[]", "name": "tokens", "type": "address[]" }
],
"name": "getPosition",
"outputs": [
{
"components": [
{ "internalType": "uint256", "name": "tokenPriceInEth", "type": "uint256" },
{ "internalType": "uint256", "name": "tokenPriceInUsd", "type": "uint256" },
{ "internalType": "uint256", "name": "supplyBalance", "type": "uint256" },
{ "internalType": "uint256", "name": "borrowBalance", "type": "uint256" },
{ "internalType": "uint256", "name": "borrowFee", "type": "uint256" },
{ "internalType": "uint256", "name": "supplyRate", "type": "uint256" },
{ "internalType": "uint256", "name": "borrowRate", "type": "uint256" },
{ "internalType": "uint256", "name": "borrowModal", "type": "uint256" },
{ "internalType": "bool", "name": "isCollateral", "type": "bool" },
{
"components": [
{ "internalType": "uint256", "name": "ltv", "type": "uint256" },
{ "internalType": "uint256", "name": "threshold", "type": "uint256" },
{ "internalType": "bool", "name": "usageAsCollEnabled", "type": "bool" },
{ "internalType": "bool", "name": "borrowEnabled", "type": "bool" },
{ "internalType": "bool", "name": "stableBorrowEnabled", "type": "bool" },
{ "internalType": "bool", "name": "isActive", "type": "bool" },
{ "internalType": "uint256", "name": "availableLiquidity", "type": "uint256" }
],
"internalType": "struct AaveHelpers.AaveTokenData",
"name": "aaveTokenData",
"type": "tuple"
}
],
"internalType": "struct AaveHelpers.AaveUserTokenData[]",
"name": "",
"type": "tuple[]"
},
{
"components": [
{ "internalType": "uint256", "name": "totalSupplyETH", "type": "uint256" },
{ "internalType": "uint256", "name": "totalCollateralETH", "type": "uint256" },
{ "internalType": "uint256", "name": "totalBorrowsETH", "type": "uint256" },
{ "internalType": "uint256", "name": "totalFeesETH", "type": "uint256" },
{ "internalType": "uint256", "name": "availableBorrowsETH", "type": "uint256" },
{ "internalType": "uint256", "name": "currentLiquidationThreshold", "type": "uint256" },
{ "internalType": "uint256", "name": "ltv", "type": "uint256" },
{ "internalType": "uint256", "name": "healthFactor", "type": "uint256" },
{ "internalType": "uint256", "name": "ethPriceInUsd", "type": "uint256" }
],
"internalType": "struct AaveHelpers.AaveUserData",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [{ "internalType": "string", "name": "", "type": "string" }],
"stateMutability": "view",
"type": "function"
}
]