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