assembly/constant/abi/read/aaveV2.json

168 lines
4.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": "stableBorrowBalance",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "variableBorrowBalance",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "supplyRate",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "stableBorrowRate",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "userStableBorrowRate",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "variableBorrowRate",
"type": "uint256"
}, {
"internalType": "bool",
"name": "isCollateral",
"type": "bool"
}, {
"components": [{
"internalType": "uint256",
"name": "ltv",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "threshold",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "reserveFactor",
"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": "bool",
"name": "isFrozen",
"type": "bool"
}, {
"internalType": "uint256",
"name": "totalSupply",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "availableLiquidity",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "totalStableDebt",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "totalVariableDebt",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "collateralEmission",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "debtEmission",
"type": "uint256"
}],
"internalType": "struct AaveHelpers.AaveTokenData",
"name": "aaveTokenData",
"type": "tuple"
}],
"internalType": "struct AaveHelpers.AaveUserTokenData[]",
"name": "",
"type": "tuple[]"
}, {
"components": [{
"internalType": "uint256",
"name": "totalCollateralETH",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "totalBorrowsETH",
"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": "uint256",
"name": "pendingRewards",
"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"
}]