mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
31 lines
853 B
Solidity
31 lines
853 B
Solidity
// SPDX-License-Identifier: agpl-3.0
|
|
pragma solidity ^0.6.8;
|
|
|
|
/**
|
|
* @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
|
|
**/
|
|
interface IVariableDebtToken {
|
|
/**
|
|
* @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;
|
|
|
|
/**
|
|
* @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;
|
|
|
|
/**
|
|
* @dev returns the last index of the user
|
|
* @return the index of the user
|
|
**/
|
|
function getUserIndex(address user) external view returns (uint256);
|
|
}
|