diff --git a/src/interfaces/IElasticToken.sol b/src/interfaces/IElasticToken.sol index 409b10f..b975108 100644 --- a/src/interfaces/IElasticToken.sol +++ b/src/interfaces/IElasticToken.sol @@ -27,6 +27,14 @@ interface IElasticToken is IERC20 { */ function burnShares(address _account, uint256 _amount) external returns (bool); + /** + * @dev mints @param _amount tokens for @param _account + * @param _account - the address of the account for whom the token have to be minted to + * @param _amount - the amount of tokens to be minted + * @return bool + */ + function mint(address _account, uint256 _amount) external returns (bool); + /** * @dev mints @param _amount of shares for @param _account * @param _account address of the account diff --git a/src/tokens/ElasticGovernanceToken.sol b/src/tokens/ElasticGovernanceToken.sol index e79d7fa..e91722e 100644 --- a/src/tokens/ElasticGovernanceToken.sol +++ b/src/tokens/ElasticGovernanceToken.sol @@ -275,12 +275,13 @@ contract ElasticGovernanceToken is IElasticToken, ReentrancyGuard { /** * @dev mints @param _amount tokens for @param _account - * @param _amount - the amount of tokens to be minted * @param _account - the address of the account for whom the token have to be minted to + * @param _amount - the amount of tokens to be minted * @return bool */ function mint(address _account, uint256 _amount) external + override onlyDAOorMinter nonReentrant returns (bool) diff --git a/test/elasticGovernanceTokenTest.js b/test/elasticGovernanceTokenTest.js index 639f584..17230c0 100644 --- a/test/elasticGovernanceTokenTest.js +++ b/test/elasticGovernanceTokenTest.js @@ -80,8 +80,6 @@ describe('ElasticDAO: Elastic Governance Token', () => { summoner2.address, ); - console.log(newAllowance.toString()); - expect(newAllowance.toString()).to.equal('0'); });