Skip to content

Instantly share code, notes, and snippets.

View light-fury's full-sized avatar
🏠
Working from home

Light Fury light-fury

🏠
Working from home
View GitHub Profile
@light-fury
light-fury / contracts...CustomERC20.sol
Created June 8, 2023 13:21
Created using tron-ide: Realtime Tron Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at http://tronide.io/#version=soljson_v0.8.18+commit.f18bedf.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; 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 CustomERC20 is ERC20, ERC20Burnable, Pausable, Ownable { uint8 private immutable _decimals; constructor(string memory name, string memory symbol, uint256 initialSupply, uint8 decimals_) ERC20(name, symbol) { if (initialSupply > 0) { _mint(msg.sender, initialSupply); } _decimals = decimals_; } function decimals() public view virtual override returns (uint8) { return _decimals; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } function revoke(address from,

Keybase proof

I hereby claim:

  • I am light-fury on github.
  • I am leech_dev (https://keybase.io/leech_dev) on keybase.
  • I have a public key ASBX6Y9p27iI5ubC_MXg9GaxaWIqzlZhityF8b2v7WCXygo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am light-fury on github.
  • I am light_fury (https://keybase.io/light_fury) on keybase.
  • I have a public key ASBSivt8DzhRGSIGWQdnGS-pncdDsbDH_ftDk3zGJmoOlQo

To claim this, I am signing this object: