forked from crytic/properties
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExampleToken.sol
32 lines (26 loc) · 892 Bytes
/
ExampleToken.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
31
32
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract ExampleToken is ERC20, ERC20Burnable, Pausable, Ownable {
constructor() ERC20("Example token", "EXT") {}
function pause() public onlyOwner {
_pause();
}
function unpause() public onlyOwner {
_unpause();
}
function mint(address to, uint256 amount) public virtual onlyOwner {
_mint(to, amount);
}
/*function _beforeTokenTransfer(address from, address to, uint256 amount)
internal
virtual
whenNotPaused
override
{
ERC20._beforeTokenTransfer(from, to, amount);
}*/
}