Skip to content

Commit 3be8789

Browse files
authored
Update Tipscoin.sol
1 parent a31628f commit 3be8789

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

contracts/Tipscoin.sol

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
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

0 commit comments

Comments
 (0)