dsa-connectors/contracts/mainnet/connectors/morpho-aave/interface.sol

55 lines
1.1 KiB
Solidity
Raw Normal View History

2022-10-12 02:27:45 +00:00
//SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
interface IMorphoCore {
function supply(
address _poolTokenAddress,
address _onBehalf,
uint256 _amount
) external;
function supply(
address _poolToken,
address _onBehalf,
uint256 _amount,
uint256 _maxGasForMatching
) external;
2022-10-12 02:27:45 +00:00
function borrow(address _poolTokenAddress, uint256 _amount) external;
function borrow(
address _poolToken,
uint256 _amount,
uint256 _maxGasForMatching
) external;
2022-10-12 02:27:45 +00:00
function withdraw(address _poolTokenAddress, uint256 _amount) external;
function repay(
address _poolTokenAddress,
address _onBehalf,
uint256 _amount
) external;
}
interface IMorphoAaveLens {
2022-10-15 04:17:36 +00:00
function getCurrentBorrowBalanceInOf(address _poolToken, address _user)
2022-10-12 02:27:45 +00:00
external
view
returns (
uint256 balanceInP2P,
uint256 balanceOnPool,
uint256 totalBalance
);
2022-10-15 04:17:36 +00:00
function getCurrentSupplyBalanceInOf(address _poolToken, address _user)
2022-10-12 02:27:45 +00:00
external
view
returns (
uint256 balanceInP2P,
uint256 balanceOnPool,
uint256 totalBalance
);
}