mirror of
				https://github.com/Instadapp/aave-protocol-v2.git
				synced 2024-07-29 21:47:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| // SPDX-License-Identifier: agpl-3.0
 | |
| pragma solidity 0.6.12;
 | |
| 
 | |
| /**
 | |
|  * @title IReserveInterestRateStrategyInterface interface
 | |
|  * @dev Interface for the calculation of the interest rates
 | |
|  * @author Aave
 | |
|  */
 | |
| interface IReserveInterestRateStrategy {
 | |
|   function baseVariableBorrowRate() external view returns (uint256);
 | |
| 
 | |
|   function getMaxVariableBorrowRate() external view returns (uint256);
 | |
| 
 | |
|   function calculateInterestRates(
 | |
|     address reserve,
 | |
|     uint256 availableLiquidity,
 | |
|     uint256 totalStableDebt,
 | |
|     uint256 totalVariableDebt,
 | |
|     uint256 averageStableBorrowRate,
 | |
|     uint256 reserveFactor
 | |
|   )
 | |
|     external
 | |
|     view
 | |
|     returns (
 | |
|       uint256,
 | |
|       uint256,
 | |
|       uint256
 | |
|     );
 | |
| 
 | |
|   function calculateInterestRates(
 | |
|     address reserve,
 | |
|     address aToken,
 | |
|     uint256 liquidityAdded,
 | |
|     uint256 liquidityTaken,
 | |
|     uint256 totalStableDebt,
 | |
|     uint256 totalVariableDebt,
 | |
|     uint256 averageStableBorrowRate,
 | |
|     uint256 reserveFactor
 | |
|   )
 | |
|     external
 | |
|     view
 | |
|     returns (
 | |
|       uint256 liquidityRate,
 | |
|       uint256 stableBorrowRate,
 | |
|       uint256 variableBorrowRate
 | |
|     );
 | |
| }
 | 
