forked from LimeChain/hashport-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Token.sol
30 lines (24 loc) · 816 Bytes
/
Token.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
/// @notice Mainly used for testing
contract Token is ERC20Permit, Ownable {
uint8 private immutable _decimals;
constructor(
string memory _name,
string memory _symbol,
uint8 decimals_
) ERC20(_name, _symbol) ERC20Permit(_name) {
_decimals = decimals_;
}
function mint(address _account, uint256 _amount) public {
super._mint(_account, _amount);
}
function burn(address _account, uint256 _amount) public {
super._burn(_account, _amount);
}
function decimals() public view virtual override returns (uint8) {
return _decimals;
}
}