2020-06-30 12:09:28 +00:00
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
|
|
|
|
|
2020-07-09 09:59:49 +00:00
|
|
|
/**
|
|
|
|
* @title interface IVariableDebtToken
|
|
|
|
* @author Aave
|
|
|
|
* @notice defines the basic interface for a variable debt token.
|
|
|
|
* @dev does not inherit from IERC20 to save in contract size
|
|
|
|
**/
|
2020-06-30 12:09:28 +00:00
|
|
|
interface IVariableDebtToken {
|
|
|
|
|
2020-07-09 09:59:49 +00:00
|
|
|
/**
|
|
|
|
* @dev mints new variable debt
|
|
|
|
* @param _user the user receiving the debt
|
|
|
|
* @param _amount the amount of debt being minted
|
|
|
|
**/
|
|
|
|
function mint(address _user, uint256 _amount) external virtual;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
2020-07-09 09:59:49 +00:00
|
|
|
/**
|
|
|
|
* @dev burns user variable debt
|
|
|
|
* @param _user the user which debt is burnt
|
|
|
|
* @param _amount the amount of debt being burned
|
|
|
|
**/
|
|
|
|
function burn(address _user, uint256 _amount) external virtual;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @dev returns the last index of the user
|
|
|
|
* @return the index of the user
|
|
|
|
**/
|
|
|
|
function getUserIndex(address _user) external virtual view returns(uint256);
|
2020-06-30 12:09:28 +00:00
|
|
|
|
|
|
|
}
|