File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: MIT
2+ pragma solidity ^ 0.8.20 ;
3+
4+ import "@openzeppelin/contracts/token/ERC20/ERC20.sol " ;
5+ import "@openzeppelin/contracts/access/Ownable.sol " ;
6+ import "@openzeppelin/contracts/security/Pausable.sol " ;
7+
8+ /**
9+ * @title TipsCoin
10+ * @dev Native token for Tips Ecosystem (TPC)
11+ * Total Supply: 1 Billion TPC
12+ */
13+ contract TipsCoin is ERC20 , Ownable , Pausable {
14+
15+ constructor () ERC20 ("Tips Coin " , "TPC " ) Ownable () {
16+ _mint (msg .sender , 1000000000 * 10 ** decimals ());
17+ }
18+
19+ function pause () external onlyOwner { _pause (); }
20+ function unpause () external onlyOwner { _unpause (); }
21+
22+ function _beforeTokenTransfer (
23+ address from ,
24+ address to ,
25+ uint256 amount
26+ ) internal virtual override whenNotPaused {
27+ super ._beforeTokenTransfer (from, to, amount);
28+ }
29+ }
130
You can’t perform that action at this time.
0 commit comments