mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Added natspec comment to mintToTreasury
This commit is contained in:
parent
c45d6c254b
commit
3ad9e7b9e0
|
@ -118,6 +118,7 @@ contract AToken is VersionedInitializable, IncentivizedERC20, IAToken {
|
||||||
* only lending pools can call this function
|
* only lending pools can call this function
|
||||||
* @param user the address receiving the minted tokens
|
* @param user the address receiving the minted tokens
|
||||||
* @param amount the amount of tokens to mint
|
* @param amount the amount of tokens to mint
|
||||||
|
* @param index the the last index of the reserve
|
||||||
*/
|
*/
|
||||||
function mint(
|
function mint(
|
||||||
address user,
|
address user,
|
||||||
|
@ -133,6 +134,13 @@ contract AToken is VersionedInitializable, IncentivizedERC20, IAToken {
|
||||||
emit Mint(user, amount, index);
|
emit Mint(user, amount, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dev mints aTokens to reserve treasury
|
||||||
|
* only lending pools can call this function
|
||||||
|
* @param amount the amount of tokens to mint to the treasury
|
||||||
|
* @param index the the last index of the reserve
|
||||||
|
*/
|
||||||
function mintToTreasury(uint256 amount, uint256 index) external override onlyLendingPool {
|
function mintToTreasury(uint256 amount, uint256 index) external override onlyLendingPool {
|
||||||
|
|
||||||
if(amount == 0){
|
if(amount == 0){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user