IMorpho
Inherits: IMorphoGetters, IMorphoSetters
Functions
initialize
function initialize(
address addressesProvider,
uint8 eModeCategoryId,
address newPositionsManager,
Types.Iterations memory newDefaultIterations
) external;
supply
function supply(address underlying, uint256 amount, address onBehalf, uint256 maxIterations)
external
returns (uint256 supplied);
supplyWithPermit
function supplyWithPermit(
address underlying,
uint256 amount,
address onBehalf,
uint256 maxIterations,
uint256 deadline,
Types.Signature calldata signature
) external returns (uint256 supplied);
supplyCollateral
function supplyCollateral(address underlying, uint256 amount, address onBehalf) external returns (uint256 supplied);
supplyCollateralWithPermit
function supplyCollateralWithPermit(
address underlying,
uint256 amount,
address onBehalf,
uint256 deadline,
Types.Signature calldata signature
) external returns (uint256 supplied);
borrow
function borrow(address underlying, uint256 amount, address onBehalf, address receiver, uint256 maxIterations)
external
returns (uint256 borrowed);
repay
function repay(address underlying, uint256 amount, address onBehalf) external returns (uint256 repaid);
repayWithPermit
function repayWithPermit(
address underlying,
uint256 amount,
address onBehalf,
uint256 deadline,
Types.Signature calldata signature
) external returns (uint256 repaid);
withdraw
function withdraw(address underlying, uint256 amount, address onBehalf, address receiver, uint256 maxIterations)
external
returns (uint256 withdrawn);
withdrawCollateral
function withdrawCollateral(address underlying, uint256 amount, address onBehalf, address receiver)
external
returns (uint256 withdrawn);
approveManager
function approveManager(address manager, bool isAllowed) external;
approveManagerWithSig
function approveManagerWithSig(
address delegator,
address manager,
bool isAllowed,
uint256 nonce,
uint256 deadline,
Types.Signature calldata signature
) external;
liquidate
function liquidate(address underlyingBorrowed, address underlyingCollateral, address user, uint256 amount)
external
returns (uint256 repaid, uint256 seized);
claimRewards
function claimRewards(address[] calldata assets, address onBehalf)
external
returns (address[] memory rewardTokens, uint256[] memory claimedAmounts);