21 lines
772 B
Solidity
21 lines
772 B
Solidity
pragma solidity >=0.6.0;
|
|
|
|
interface ILendingPool {
|
|
|
|
function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;
|
|
|
|
function borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf) external;
|
|
|
|
function repay(address asset, uint256 amount, uint256 rateMode, address onBehalfOf) external returns (uint256);
|
|
|
|
function withdraw(address asset, uint256 amount, address to) external returns (uint256);
|
|
|
|
function getUserAccountData(address user) external view returns (
|
|
uint256 totalCollateralETH,
|
|
uint256 totalDebtETH,
|
|
uint256 availableBorrowsETH,
|
|
uint256 currentLiquidationThreshold,
|
|
uint256 ltv,
|
|
uint256 healthFactor
|
|
);
|
|
} |