mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
168 lines
4.3 KiB
JSON
168 lines
4.3 KiB
JSON
[{
|
|
"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"
|
|
}] |