assembly/abis/read/aaveV2.json
Georges KABBOUCHI f7c28366de fix
2021-11-04 01:48:11 +02:00

196 lines
5.5 KiB
JSON

[
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "tuple[]",
"name": "",
"internalType": "struct AaveHelpers.AaveUserTokenData[]",
"components": [
{
"type": "uint256",
"name": "tokenPriceInEth",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "tokenPriceInUsd",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "supplyBalance",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "stableBorrowBalance",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "variableBorrowBalance",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "supplyRate",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "stableBorrowRate",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "userStableBorrowRate",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "variableBorrowRate",
"internalType": "uint256"
},
{ "type": "bool", "name": "isCollateral", "internalType": "bool" },
{
"type": "tuple",
"name": "aaveTokenData",
"internalType": "struct AaveHelpers.AaveTokenData",
"components": [
{ "type": "uint256", "name": "ltv", "internalType": "uint256" },
{
"type": "uint256",
"name": "threshold",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "reserveFactor",
"internalType": "uint256"
},
{
"type": "bool",
"name": "usageAsCollEnabled",
"internalType": "bool"
},
{
"type": "bool",
"name": "borrowEnabled",
"internalType": "bool"
},
{
"type": "bool",
"name": "stableBorrowEnabled",
"internalType": "bool"
},
{ "type": "bool", "name": "isActive", "internalType": "bool" },
{ "type": "bool", "name": "isFrozen", "internalType": "bool" },
{
"type": "uint256",
"name": "totalSupply",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "availableLiquidity",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "totalStableDebt",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "totalVariableDebt",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "collateralEmission",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "debtEmission",
"internalType": "uint256"
},
{
"type": "address",
"name": "aTokenAddress",
"internalType": "address"
},
{
"type": "address",
"name": "stableDebtTokenAddress",
"internalType": "address"
},
{
"type": "address",
"name": "variableDebtTokenAddress",
"internalType": "address"
}
]
}
]
},
{
"type": "tuple",
"name": "",
"internalType": "struct AaveHelpers.AaveUserData",
"components": [
{
"type": "uint256",
"name": "totalCollateralETH",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "totalBorrowsETH",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "availableBorrowsETH",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "currentLiquidationThreshold",
"internalType": "uint256"
},
{ "type": "uint256", "name": "ltv", "internalType": "uint256" },
{
"type": "uint256",
"name": "healthFactor",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "ethPriceInUsd",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "pendingRewards",
"internalType": "uint256"
}
]
}
],
"name": "getPosition",
"inputs": [
{ "type": "address", "name": "user", "internalType": "address" },
{ "type": "address[]", "name": "tokens", "internalType": "address[]" }
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [{ "type": "string", "name": "", "internalType": "string" }],
"name": "name",
"inputs": []
}
]