Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/interfaces/IElasticToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/tokens/ElasticGovernanceToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions test/elasticGovernanceTokenTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ describe('ElasticDAO: Elastic Governance Token', () => {
summoner2.address,
);

console.log(newAllowance.toString());

expect(newAllowance.toString()).to.equal('0');
});

Expand Down