mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
29 lines
1.3 KiB
Solidity
29 lines
1.3 KiB
Solidity
|
//SPDX-License-Identifier: MIT
|
||
|
pragma solidity ^0.7.0;
|
||
|
|
||
|
interface IEulerMarkets {
|
||
|
function enterMarket(uint subAccountId, address newMarket) external;
|
||
|
function getEnteredMarkets(address account) external view returns (address[] memory);
|
||
|
function underlyingToEToken(address underlying) external view returns (address);
|
||
|
function underlyingToDToken(address underlying) external view returns (address);
|
||
|
}
|
||
|
|
||
|
interface IEulerEToken {
|
||
|
function deposit(uint subAccountId, uint amount) external;
|
||
|
function withdraw(uint subAccountId, uint amount) external;
|
||
|
function decimals() external view returns (uint8);
|
||
|
function mint(uint subAccountId, uint amount) external;
|
||
|
function burn(uint subAccountId, uint amount) external;
|
||
|
function balanceOf(address account) external view returns (uint);
|
||
|
function transfer(address to, uint amount) external returns (bool);
|
||
|
}
|
||
|
|
||
|
interface IEulerDToken {
|
||
|
function underlyingToDToken(address underlying) external view returns (address);
|
||
|
function decimals() external view returns (uint8);
|
||
|
function borrow(uint subAccountId, uint amount) external;
|
||
|
function repay(uint subAccountId, uint amount) external;
|
||
|
function balanceOf(address account) external view returns (uint);
|
||
|
function transfer(address to, uint amount) external returns (bool);
|
||
|
}
|