mirror of
				https://github.com/Instadapp/aave-protocol-v2.git
				synced 2024-07-29 21:47:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			1015 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			1015 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| // SPDX-License-Identifier: agpl-3.0
 | |
| pragma solidity 0.6.12;
 | |
| 
 | |
| interface IScaledBalanceToken {
 | |
|   /**
 | |
|    * @dev Returns the scaled balance of the user. The scaled balance is the sum of all the
 | |
|    * updated stored balance divided by the reserve's liquidity index at the moment of the update
 | |
|    * @param user The user whose balance is calculated
 | |
|    * @return The scaled balance of the user
 | |
|    **/
 | |
|   function scaledBalanceOf(address user) external view returns (uint256);
 | |
| 
 | |
|   /**
 | |
|    * @dev Returns the scaled balance of the user and the scaled total supply.
 | |
|    * @param user The address of the user
 | |
|    * @return The scaled balance of the user
 | |
|    * @return The scaled balance and the scaled total supply
 | |
|    **/
 | |
|   function getScaledUserBalanceAndSupply(address user) external view returns (uint256, uint256);
 | |
| 
 | |
|   /**
 | |
|    * @dev Returns the scaled total supply of the variable debt token. Represents sum(debt/index)
 | |
|    * @return The scaled total supply
 | |
|    **/
 | |
|   function scaledTotalSupply() external view returns (uint256);
 | |
| }
 | 
