2022-04-01 17:03:30 +00:00
|
|
|
//SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.7.0;
|
|
|
|
|
2022-04-02 18:32:38 +00:00
|
|
|
interface IInstaLite {
|
2022-04-01 17:03:30 +00:00
|
|
|
function supplyEth(address to_) external payable returns (uint256);
|
|
|
|
|
|
|
|
function supply(
|
|
|
|
address token_,
|
|
|
|
uint256 amount_,
|
|
|
|
address to_
|
|
|
|
) external returns (uint256);
|
|
|
|
|
|
|
|
function withdraw(uint256 amount_, address to_) external returns (uint256);
|
2022-04-06 02:27:57 +00:00
|
|
|
|
2022-06-10 21:44:59 +00:00
|
|
|
function deleverage(uint256 amt_) external;
|
|
|
|
|
2022-06-10 12:46:45 +00:00
|
|
|
function deleverageAndWithdraw(
|
2022-06-10 21:44:59 +00:00
|
|
|
uint256 deleverageAmt_,
|
|
|
|
uint256 withdrawAmount_,
|
|
|
|
address to_
|
|
|
|
) external;
|
2022-04-06 02:27:57 +00:00
|
|
|
|
2022-06-10 21:55:02 +00:00
|
|
|
function token() external view returns (address);
|
2022-04-01 17:03:30 +00:00
|
|
|
}
|