2021-10-17 12:57:51 +00:00
|
|
|
[
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "function",
|
|
|
|
"stateMutability": "view",
|
2021-10-17 12:57:51 +00:00
|
|
|
"outputs": [
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "tuple[]",
|
|
|
|
"name": "",
|
|
|
|
"internalType": "struct AaveHelpers.AaveUserTokenData[]",
|
2021-10-17 12:57:51 +00:00
|
|
|
"components": [
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "tokenPriceInEth",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "tokenPriceInUsd",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "supplyBalance",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "stableBorrowBalance",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "variableBorrowBalance",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "supplyRate",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "stableBorrowRate",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "userStableBorrowRate",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "variableBorrowRate",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
2021-11-03 23:48:11 +00:00
|
|
|
{ "type": "bool", "name": "isCollateral", "internalType": "bool" },
|
2021-10-17 12:57:51 +00:00
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "tuple",
|
|
|
|
"name": "aaveTokenData",
|
|
|
|
"internalType": "struct AaveHelpers.AaveTokenData",
|
2021-10-17 12:57:51 +00:00
|
|
|
"components": [
|
2021-11-03 23:48:11 +00:00
|
|
|
{ "type": "uint256", "name": "ltv", "internalType": "uint256" },
|
2021-10-17 12:57:51 +00:00
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "threshold",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "reserveFactor",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "bool",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "usageAsCollEnabled",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "bool"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "bool",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "borrowEnabled",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "bool"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "bool",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "stableBorrowEnabled",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "bool"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
2021-11-03 23:48:11 +00:00
|
|
|
{ "type": "bool", "name": "isActive", "internalType": "bool" },
|
|
|
|
{ "type": "bool", "name": "isFrozen", "internalType": "bool" },
|
2021-10-17 12:57:51 +00:00
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "totalSupply",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "availableLiquidity",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "totalStableDebt",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "totalVariableDebt",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "collateralEmission",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "debtEmission",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "address",
|
|
|
|
"name": "aTokenAddress",
|
|
|
|
"internalType": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "address",
|
|
|
|
"name": "stableDebtTokenAddress",
|
|
|
|
"internalType": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "address",
|
|
|
|
"name": "variableDebtTokenAddress",
|
|
|
|
"internalType": "address"
|
2021-10-17 12:57:51 +00:00
|
|
|
}
|
2021-11-03 23:48:11 +00:00
|
|
|
]
|
2021-10-17 12:57:51 +00:00
|
|
|
}
|
2021-11-03 23:48:11 +00:00
|
|
|
]
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "tuple",
|
|
|
|
"name": "",
|
|
|
|
"internalType": "struct AaveHelpers.AaveUserData",
|
2021-10-17 12:57:51 +00:00
|
|
|
"components": [
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "totalCollateralETH",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "totalBorrowsETH",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "availableBorrowsETH",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "currentLiquidationThreshold",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
2021-11-03 23:48:11 +00:00
|
|
|
{ "type": "uint256", "name": "ltv", "internalType": "uint256" },
|
2021-10-17 12:57:51 +00:00
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "healthFactor",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "ethPriceInUsd",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "uint256",
|
2021-10-17 12:57:51 +00:00
|
|
|
"name": "pendingRewards",
|
2021-11-03 23:48:11 +00:00
|
|
|
"internalType": "uint256"
|
2021-10-17 12:57:51 +00:00
|
|
|
}
|
2021-11-03 23:48:11 +00:00
|
|
|
]
|
2021-10-17 12:57:51 +00:00
|
|
|
}
|
|
|
|
],
|
2021-11-03 23:48:11 +00:00
|
|
|
"name": "getPosition",
|
|
|
|
"inputs": [
|
|
|
|
{ "type": "address", "name": "user", "internalType": "address" },
|
|
|
|
{ "type": "address[]", "name": "tokens", "internalType": "address[]" }
|
|
|
|
]
|
2021-10-17 12:57:51 +00:00
|
|
|
},
|
|
|
|
{
|
2021-11-03 23:48:11 +00:00
|
|
|
"type": "function",
|
2021-07-21 20:53:46 +00:00
|
|
|
"stateMutability": "view",
|
2021-11-03 23:48:11 +00:00
|
|
|
"outputs": [{ "type": "string", "name": "", "internalType": "string" }],
|
|
|
|
"name": "name",
|
|
|
|
"inputs": []
|
2021-10-17 12:57:51 +00:00
|
|
|
}
|
|
|
|
]
|