mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
compound interface for write functions
This commit is contained in:
parent
f8d71bd403
commit
fa2fb6ee1a
15
contracts/ProxyLogics/InstaCompound.sol
Normal file
15
contracts/ProxyLogics/InstaCompound.sol
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
pragma solidity ^0.5.0;
|
||||||
|
|
||||||
|
interface CTokenInterface {
|
||||||
|
function mint(uint mintAmount) external returns (uint); // For ERC20
|
||||||
|
function mint() external payable; // For ETH
|
||||||
|
function redeem(uint redeemTokens) external returns (uint);
|
||||||
|
function redeemUnderlying(uint redeemAmount) external returns (uint);
|
||||||
|
function borrow(uint borrowAmount) external returns (uint);
|
||||||
|
function repayBorrow(uint repayAmount) external returns (uint); // For ERC20
|
||||||
|
function repayBorrow() external payable; // For ETH
|
||||||
|
function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint); // For ERC20
|
||||||
|
function repayBorrowBehalf(address borrower) external payable; // For ETH
|
||||||
|
function liquidateBorrow(address borrower, uint repayAmount, address cTokenCollateral) external returns (uint);
|
||||||
|
function liquidateBorrow(address borrower, address cTokenCollateral) external payable;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user