Verified contractExactMIT
Punisher
Address0xa531c5f9e10b24294ef5dc91afffbe8a8639f992
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.28
- Same code
1 more contract
Details
- Compiler
- solc 0.8.28+commit.7893614a
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- paris
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 22,525,303
- Creation transaction
- 0x0604517d40…0c1f968525
- Main copy (most transactions)
- 0x87ac54c9…2231be36
contracts/Punisher.sol
// SPDX-License-Identifier: MIT
/*
🔥 JUSTICE AWAITS: THE PUNISHER PROTOCOL IS ACTIVE 🔥
Welcome to Punisher Coin ($PUN) – where crypto justice is served cold, weak hands are eliminated, and the strong survive in this financial battleground.
⚔️ Security? Absolute. Liquidity LOCKED for 2 years from deployment. No mercy for FUD.
⚔️ Staking? Strategic 90% APY rewards for early supporters during presale – loyalty is rewarded.
⚔️ Deflationary? By design. Regular token burns to purge excess supply – scarcity builds value.
The crypto world is a war zone. Punisher Coin isn't here to follow trends; it's here to execute justice, eliminate weakness, and reward the disciplined.
⚠️ WARNING: DO NOT SEND FUNDS DIRECTLY TO THIS CONTRACT. All unauthorized transfers will be permanently lost – no exceptions, no appeals, no second chances.
🌐 Website: punishercoin.com
🔗 Twitter: x.com/PunisherCoin_AI
📡 Telegram: t.me/Pun_Coin
The mission begins now. Choose your side wisely.
*/
pragma solidity 0.8.28;
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/utils/Context.sol";
contract Punisher is Context, IERC20, IERC20Metadata {
// Skull logo tracker - each skull represents a token held
mapping(address => uint256) private _arsenal;
// Authorization for allies to move tokens
mapping(address => mapping(address => uint256)) private _warrants;
// Justice system variables
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private immutable _decimals;
// Tactical markers
uint256 private constant SKULL_MARK = 1e18;
bool private _missionActive = true;
// Errors when justice is thwarted
error JusticeServed();
error VoidTarget();
error InsufficientArsenal();
error WarrantDenied();
error MissionAborted();
// Justice delivery notifications
event JusticeDelivered(address indexed from, address indexed to, uint256 amount);
event WarrantIssued(address indexed issuer, address indexed operative, uint256 clearance);
constructor() {
_name = "Punisher";
_symbol = "$PUN";
_decimals = 18;
_mint(msg.sender, 1_000_000_000 * SKULL_MARK);
}
// Target identifier functions
function name() external view override returns (string memory) {
return _name;
}
function symbol() external view override returns (string memory) {
return _symbol;
}
function decimals() external view override returns (uint8) {
return _decimals;
}
function totalSupply() external view override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) external view override returns (uint256) {
return _arsenal[account];
}
function allowance(address tokenOwner, address spender) external view override returns (uint256) {
return _warrants[tokenOwner][spender];
}
// Return mission status
function missionStatus() external view returns (bool) {
return _missionActive;
}
// Deploy justice from one target to another
function _execute(address from, address to, uint256 amount) internal {
if (!_missionActive) revert MissionAborted();
if (from == address(0)) revert VoidTarget();
if (to == address(0)) revert VoidTarget();
uint256 fromBalance = _arsenal[from];
if (fromBalance < amount) revert InsufficientArsenal();
unchecked {
_arsenal[from] = fromBalance - amount;
_arsenal[to] += amount;
}
emit Transfer(from, to, amount);
emit JusticeDelivered(from, to, amount);
}
// Direct transfer of punishment
function transfer(address to, uint256 amount) external override returns (bool) {
address tokenOwner = _msgSender();
_execute(tokenOwner, to, amount);
return true;
}
// Authorize an operative
function approve(address spender, uint256 amount) external override returns (bool) {
address tokenOwner = _msgSender();
_issueWarrant(tokenOwner, spender, amount);
return true;
}
// Create justice where none existed before
function _mint(address account, uint256 amount) internal {
if (account == address(0)) revert VoidTarget();
_totalSupply += amount;
unchecked {
_arsenal[account] += amount;
}
emit Transfer(address(0), account, amount);
}
// Issue orders to an operative
function _issueWarrant(address tokenOwner, address spender, uint256 amount) internal {
if (tokenOwner == address(0)) revert VoidTarget();
if (spender == address(0)) revert VoidTarget();
_warrants[tokenOwner][spender] = amount;
emit Approval(tokenOwner, spender, amount);
emit WarrantIssued(tokenOwner, spender, amount);
}
// Operative executes transfer on behalf of commander
function transferFrom(address from, address to, uint256 amount) external override returns (bool) {
address spender = _msgSender();
_enforceWarrant(from, spender, amount);
_execute(from, to, amount);
return true;
}
// Extend operative clearance
function increaseAllowance(address spender, uint256 addedValue) external returns (bool) {
address tokenOwner = _msgSender();
_issueWarrant(tokenOwner, spender, _warrants[tokenOwner][spender] + addedValue);
return true;
}
// Reduce operative clearance
function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) {
address tokenOwner = _msgSender();
uint256 currentAllowance = _warrants[tokenOwner][spender];
if (currentAllowance < subtractedValue) revert JusticeServed();
unchecked {
_issueWarrant(tokenOwner, spender, currentAllowance - subtractedValue);
}
return true;
}
// Verify operative has proper clearance
function _enforceWarrant(address tokenOwner, address spender, uint256 amount) internal {
uint256 currentAllowance = _warrants[tokenOwner][spender];
if (currentAllowance != type(uint256).max) {
if (currentAllowance < amount) revert WarrantDenied();
unchecked {
_issueWarrant(tokenOwner, spender, currentAllowance - amount);
}
}
}
}
@openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
@openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "paris"
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.