From 3ad9e7b9e01c4d639bc587ff32b8eb6820880cb3 Mon Sep 17 00:00:00 2001 From: The3D Date: Mon, 5 Oct 2020 13:12:58 +0200 Subject: [PATCH] Added natspec comment to mintToTreasury --- contracts/tokenization/AToken.sol | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contracts/tokenization/AToken.sol b/contracts/tokenization/AToken.sol index 4be67c12..016a5601 100644 --- a/contracts/tokenization/AToken.sol +++ b/contracts/tokenization/AToken.sol @@ -118,6 +118,7 @@ contract AToken is VersionedInitializable, IncentivizedERC20, IAToken { * only lending pools can call this function * @param user the address receiving the minted tokens * @param amount the amount of tokens to mint + * @param index the the last index of the reserve */ function mint( address user, @@ -133,6 +134,13 @@ contract AToken is VersionedInitializable, IncentivizedERC20, IAToken { 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 { if(amount == 0){