ERC-20
Overview
Max Total Supply
500,000,000,000 NIGHTMARES
Holders
17
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.436048411606797324 NIGHTMARESValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NIGHTMARES
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() { _transferOwnership(_msgSender()); } function owner() public view virtual returns (address) { return _owner; } modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } interface IERC20Metadata is IERC20 { function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); } contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function decimals() public view virtual override returns (uint8) { return 18; } function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } contract NIGHTMARES is Ownable, ERC20 { constructor() ERC20("Hello I am a dishonest dev with dishonest problems My life is caught in a spiral of euphoria dont trust that fuckin DREAMS guy trust me", "NIGHTMARES") { _mint(msg.sender, 500_000_000_000 * 10**18); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801562000010575f80fd5b506040518060c001604052806087815260200162000df96087913960408051808201909152600a8152694e494748544d4152455360b01b602082015262000057336200009c565b600462000065838262000274565b50600562000074828262000274565b50505062000096336c064f964e68233a76f520000000620000eb60201b60201c565b62000362565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620001465760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060035f8282546200015991906200033c565b90915550506001600160a01b0382165f9081526001602052604081208054839290620001879084906200033c565b90915550506040518181526001600160a01b038316905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620001fe57607f821691505b6020821081036200021d57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620001d0575f81815260208120601f850160051c810160208610156200024b5750805b601f850160051c820191505b818110156200026c5782815560010162000257565b505050505050565b81516001600160401b03811115620002905762000290620001d5565b620002a881620002a18454620001e9565b8462000223565b602080601f831160018114620002de575f8415620002c65750858301515b5f19600386901b1c1916600185901b1785556200026c565b5f85815260208120601f198616915b828110156200030e57888601518255948401946001909101908401620002ed565b50858210156200032c57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200035c57634e487b7160e01b5f52601160045260245ffd5b92915050565b610a8980620003705f395ff3fe608060405234801561000f575f80fd5b50600436106100e5575f3560e01c8063715018a611610088578063a457c2d711610063578063a457c2d7146101c5578063a9059cbb146101d8578063dd62ed3e146101eb578063f2fde38b14610223575f80fd5b8063715018a6146101995780638da5cb5b146101a357806395d89b41146101bd575f80fd5b806323b872dd116100c357806323b872dd1461013c578063313ce5671461014f578063395093511461015e57806370a0823114610171575f80fd5b806306fdde03146100e9578063095ea7b31461010757806318160ddd1461012a575b5f80fd5b6100f1610236565b6040516100fe91906108e4565b60405180910390f35b61011a61011536600461094a565b6102c6565b60405190151581526020016100fe565b6003545b6040519081526020016100fe565b61011a61014a366004610972565b6102dc565b604051601281526020016100fe565b61011a61016c36600461094a565b610389565b61012e61017f3660046109ab565b6001600160a01b03165f9081526001602052604090205490565b6101a16103c4565b005b5f546040516001600160a01b0390911681526020016100fe565b6100f1610428565b61011a6101d336600461094a565b610437565b61011a6101e636600461094a565b6104cf565b61012e6101f93660046109cb565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b6101a16102313660046109ab565b6104db565b606060048054610245906109fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610271906109fc565b80156102bc5780601f10610293576101008083540402835291602001916102bc565b820191905f5260205f20905b81548152906001019060200180831161029f57829003601f168201915b5050505050905090565b5f6102d23384846105a5565b5060015b92915050565b5f6102e88484846106c8565b6001600160a01b0384165f908152600260209081526040808320338452909152902054828110156103715760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61037e85338584036105a5565b506001949350505050565b335f8181526002602090815260408083206001600160a01b038716845290915281205490916102d29185906103bf908690610a34565b6105a5565b5f546001600160a01b0316331461041d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610368565b6104265f610895565b565b606060058054610245906109fc565b335f9081526002602090815260408083206001600160a01b0386168452909152812054828110156104b85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610368565b6104c533858584036105a5565b5060019392505050565b5f6102d23384846106c8565b5f546001600160a01b031633146105345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610368565b6001600160a01b0381166105995760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610368565b6105a281610895565b50565b6001600160a01b0383166106075760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610368565b6001600160a01b0382166106685760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610368565b6001600160a01b038381165f8181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661072c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610368565b6001600160a01b03821661078e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610368565b6001600160a01b0383165f90815260016020526040902054818110156108055760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610368565b6001600160a01b038085165f9081526001602052604080822085850390559185168152908120805484929061083b908490610a34565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161088791815260200190565b60405180910390a350505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f6020808352835180828501525f5b8181101561090f578581018301518582016040015282016108f3565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610945575f80fd5b919050565b5f806040838503121561095b575f80fd5b6109648361092f565b946020939093013593505050565b5f805f60608486031215610984575f80fd5b61098d8461092f565b925061099b6020850161092f565b9150604084013590509250925092565b5f602082840312156109bb575f80fd5b6109c48261092f565b9392505050565b5f80604083850312156109dc575f80fd5b6109e58361092f565b91506109f36020840161092f565b90509250929050565b600181811c90821680610a1057607f821691505b602082108103610a2e57634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156102d657634e487b7160e01b5f52601160045260245ffdfea2646970667358221220384d3e5e76156cb63e7775a0e3fb3dd51249b930a1665712288e6b1b17cd811464736f6c6343000815003348656c6c6f204920616d206120646973686f6e65737420646576207769746820646973686f6e6573742070726f626c656d73204d79206c6966652069732063617567687420696e20612073706972616c206f6620657570686f72696120646f6e742074727573742074686174206675636b696e20445245414d5320677579207472757374206d65
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100e5575f3560e01c8063715018a611610088578063a457c2d711610063578063a457c2d7146101c5578063a9059cbb146101d8578063dd62ed3e146101eb578063f2fde38b14610223575f80fd5b8063715018a6146101995780638da5cb5b146101a357806395d89b41146101bd575f80fd5b806323b872dd116100c357806323b872dd1461013c578063313ce5671461014f578063395093511461015e57806370a0823114610171575f80fd5b806306fdde03146100e9578063095ea7b31461010757806318160ddd1461012a575b5f80fd5b6100f1610236565b6040516100fe91906108e4565b60405180910390f35b61011a61011536600461094a565b6102c6565b60405190151581526020016100fe565b6003545b6040519081526020016100fe565b61011a61014a366004610972565b6102dc565b604051601281526020016100fe565b61011a61016c36600461094a565b610389565b61012e61017f3660046109ab565b6001600160a01b03165f9081526001602052604090205490565b6101a16103c4565b005b5f546040516001600160a01b0390911681526020016100fe565b6100f1610428565b61011a6101d336600461094a565b610437565b61011a6101e636600461094a565b6104cf565b61012e6101f93660046109cb565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b6101a16102313660046109ab565b6104db565b606060048054610245906109fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610271906109fc565b80156102bc5780601f10610293576101008083540402835291602001916102bc565b820191905f5260205f20905b81548152906001019060200180831161029f57829003601f168201915b5050505050905090565b5f6102d23384846105a5565b5060015b92915050565b5f6102e88484846106c8565b6001600160a01b0384165f908152600260209081526040808320338452909152902054828110156103715760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61037e85338584036105a5565b506001949350505050565b335f8181526002602090815260408083206001600160a01b038716845290915281205490916102d29185906103bf908690610a34565b6105a5565b5f546001600160a01b0316331461041d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610368565b6104265f610895565b565b606060058054610245906109fc565b335f9081526002602090815260408083206001600160a01b0386168452909152812054828110156104b85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610368565b6104c533858584036105a5565b5060019392505050565b5f6102d23384846106c8565b5f546001600160a01b031633146105345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610368565b6001600160a01b0381166105995760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610368565b6105a281610895565b50565b6001600160a01b0383166106075760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610368565b6001600160a01b0382166106685760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610368565b6001600160a01b038381165f8181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661072c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610368565b6001600160a01b03821661078e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610368565b6001600160a01b0383165f90815260016020526040902054818110156108055760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610368565b6001600160a01b038085165f9081526001602052604080822085850390559185168152908120805484929061083b908490610a34565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161088791815260200190565b60405180910390a350505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f6020808352835180828501525f5b8181101561090f578581018301518582016040015282016108f3565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610945575f80fd5b919050565b5f806040838503121561095b575f80fd5b6109648361092f565b946020939093013593505050565b5f805f60608486031215610984575f80fd5b61098d8461092f565b925061099b6020850161092f565b9150604084013590509250925092565b5f602082840312156109bb575f80fd5b6109c48261092f565b9392505050565b5f80604083850312156109dc575f80fd5b6109e58361092f565b91506109f36020840161092f565b90509250929050565b600181811c90821680610a1057607f821691505b602082108103610a2e57634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156102d657634e487b7160e01b5f52601160045260245ffdfea2646970667358221220384d3e5e76156cb63e7775a0e3fb3dd51249b930a1665712288e6b1b17cd811464736f6c63430008150033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.