-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTipscoin.sol
More file actions
30 lines (24 loc) · 826 Bytes
/
Tipscoin.sol
File metadata and controls
30 lines (24 loc) · 826 Bytes
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
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
/**
* @title TipsCoin
* @dev Native token for Tips Ecosystem (TPC)
* Total Supply: 1 Billion TPC
*/
contract TipsCoin is ERC20, Ownable, Pausable {
constructor() ERC20("Tips Coin", "TPC") Ownable() {
_mint(msg.sender, 1000000000 * 10 ** decimals());
}
function pause() external onlyOwner { _pause(); }
function unpause() external onlyOwner { _unpause(); }
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual override whenNotPaused {
super._beforeTokenTransfer(from, to, amount);
}
}