mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
update interface
This commit is contained in:
parent
c89f153822
commit
b713ac9d81
|
@ -3,36 +3,14 @@ pragma solidity ^0.7.0;
|
||||||
pragma experimental ABIEncoderV2;
|
pragma experimental ABIEncoderV2;
|
||||||
|
|
||||||
interface IMorphoCore {
|
interface IMorphoCore {
|
||||||
struct Signature {
|
|
||||||
uint8 v;
|
|
||||||
bytes32 r;
|
|
||||||
bytes32 s;
|
|
||||||
}
|
|
||||||
|
|
||||||
function supply(address underlying, uint256 amount, address onBehalf, uint256 maxIterations)
|
function supply(address underlying, uint256 amount, address onBehalf, uint256 maxIterations)
|
||||||
external
|
external
|
||||||
returns (uint256 supplied);
|
returns (uint256 supplied);
|
||||||
|
|
||||||
function supplyWithPermit(
|
|
||||||
address underlying,
|
|
||||||
uint256 amount,
|
|
||||||
address onBehalf,
|
|
||||||
uint256 maxIterations,
|
|
||||||
uint256 deadline,
|
|
||||||
Signature calldata signature
|
|
||||||
) external returns (uint256 supplied);
|
|
||||||
|
|
||||||
function supplyCollateral(address underlying, uint256 amount, address onBehalf)
|
function supplyCollateral(address underlying, uint256 amount, address onBehalf)
|
||||||
external
|
external
|
||||||
returns (uint256 supplied);
|
returns (uint256 supplied);
|
||||||
|
|
||||||
function supplyCollateralWithPermit(
|
|
||||||
address underlying,
|
|
||||||
uint256 amount,
|
|
||||||
address onBehalf,
|
|
||||||
uint256 deadline,
|
|
||||||
Signature calldata signature
|
|
||||||
) external returns (uint256 supplied);
|
|
||||||
|
|
||||||
function borrow(address underlying, uint256 amount, address onBehalf, address receiver, uint256 maxIterations)
|
function borrow(address underlying, uint256 amount, address onBehalf, address receiver, uint256 maxIterations)
|
||||||
external
|
external
|
||||||
|
@ -40,14 +18,6 @@ interface IMorphoCore {
|
||||||
|
|
||||||
function repay(address underlying, uint256 amount, address onBehalf) external returns (uint256 repaid);
|
function repay(address underlying, uint256 amount, address onBehalf) external returns (uint256 repaid);
|
||||||
|
|
||||||
function repayWithPermit(
|
|
||||||
address underlying,
|
|
||||||
uint256 amount,
|
|
||||||
address onBehalf,
|
|
||||||
uint256 deadline,
|
|
||||||
Signature calldata signature
|
|
||||||
) external returns (uint256 repaid);
|
|
||||||
|
|
||||||
function withdraw(address underlying, uint256 amount, address onBehalf, address receiver, uint256 maxIterations)
|
function withdraw(address underlying, uint256 amount, address onBehalf, address receiver, uint256 maxIterations)
|
||||||
external
|
external
|
||||||
returns (uint256 withdrawn);
|
returns (uint256 withdrawn);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user