Skip to content

Commit d73c12c

Browse files
authored
adds mint to the IElasticToken interface (#83)
1 parent ae4c37a commit d73c12c

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/interfaces/IElasticToken.sol

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ interface IElasticToken is IERC20 {
2727
*/
2828
function burnShares(address _account, uint256 _amount) external returns (bool);
2929

30+
/**
31+
* @dev mints @param _amount tokens for @param _account
32+
* @param _account - the address of the account for whom the token have to be minted to
33+
* @param _amount - the amount of tokens to be minted
34+
* @return bool
35+
*/
36+
function mint(address _account, uint256 _amount) external returns (bool);
37+
3038
/**
3139
* @dev mints @param _amount of shares for @param _account
3240
* @param _account address of the account

src/tokens/ElasticGovernanceToken.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,13 @@ contract ElasticGovernanceToken is IElasticToken, ReentrancyGuard {
275275

276276
/**
277277
* @dev mints @param _amount tokens for @param _account
278-
* @param _amount - the amount of tokens to be minted
279278
* @param _account - the address of the account for whom the token have to be minted to
279+
* @param _amount - the amount of tokens to be minted
280280
* @return bool
281281
*/
282282
function mint(address _account, uint256 _amount)
283283
external
284+
override
284285
onlyDAOorMinter
285286
nonReentrant
286287
returns (bool)

test/elasticGovernanceTokenTest.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ describe('ElasticDAO: Elastic Governance Token', () => {
8080
summoner2.address,
8181
);
8282

83-
console.log(newAllowance.toString());
84-
8583
expect(newAllowance.toString()).to.equal('0');
8684
});
8785

0 commit comments

Comments
 (0)