2023-02-23 16:34:03 +00:00
|
|
|
//SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.7.0;
|
|
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
|
|
|
|
interface IMorphoCore {
|
|
|
|
|
|
|
|
function supply(address underlying, uint256 amount, address onBehalf, uint256 maxIterations)
|
|
|
|
external
|
|
|
|
returns (uint256 supplied);
|
|
|
|
|
|
|
|
function supplyCollateral(address underlying, uint256 amount, address onBehalf)
|
|
|
|
external
|
|
|
|
returns (uint256 supplied);
|
|
|
|
|
|
|
|
function borrow(address underlying, uint256 amount, address onBehalf, address receiver, uint256 maxIterations)
|
|
|
|
external
|
|
|
|
returns (uint256 borrowed);
|
|
|
|
|
|
|
|
function repay(address underlying, uint256 amount, address onBehalf) external returns (uint256 repaid);
|
|
|
|
|
|
|
|
function withdraw(address underlying, uint256 amount, address onBehalf, address receiver, uint256 maxIterations)
|
|
|
|
external
|
|
|
|
returns (uint256 withdrawn);
|
|
|
|
|
|
|
|
function withdrawCollateral(address underlying, uint256 amount, address onBehalf, address receiver)
|
|
|
|
external
|
|
|
|
returns (uint256 withdrawn);
|
2023-06-22 16:30:36 +00:00
|
|
|
|
|
|
|
function approveManager(address manager, bool isAllowed) external;
|
2023-02-23 16:34:03 +00:00
|
|
|
}
|