Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 18 from a total of 18 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 21655148 | 7 hrs ago | IN | 0 ETH | 0.00067895 | ||||
Approve | 21653785 | 12 hrs ago | IN | 0 ETH | 0.00050386 | ||||
Approve | 21653780 | 12 hrs ago | IN | 0 ETH | 0.00053247 | ||||
Approve | 21648463 | 29 hrs ago | IN | 0 ETH | 0.00025562 | ||||
Approve | 21648443 | 29 hrs ago | IN | 0 ETH | 0.00023589 | ||||
Approve | 21647991 | 31 hrs ago | IN | 0 ETH | 0.00024688 | ||||
Approve | 21647219 | 34 hrs ago | IN | 0 ETH | 0.00024176 | ||||
Approve | 21647216 | 34 hrs ago | IN | 0 ETH | 0.00028524 | ||||
Approve | 21647206 | 34 hrs ago | IN | 0 ETH | 0.00039625 | ||||
Approve | 21647180 | 34 hrs ago | IN | 0 ETH | 0.00043181 | ||||
Transfer | 21647110 | 34 hrs ago | IN | 0 ETH | 0.00048291 | ||||
Approve | 21647101 | 34 hrs ago | IN | 0 ETH | 0.00047396 | ||||
Approve | 21646965 | 34 hrs ago | IN | 0 ETH | 0.00054528 | ||||
Approve | 21646690 | 35 hrs ago | IN | 0 ETH | 0.00076095 | ||||
Approve | 21646629 | 36 hrs ago | IN | 0 ETH | 0.00068803 | ||||
Approve | 21646449 | 36 hrs ago | IN | 0 ETH | 0.00059285 | ||||
Approve | 21646395 | 36 hrs ago | IN | 0 ETH | 0.00055874 | ||||
Add To Allowlist | 21641183 | 2 days ago | IN | 0 ETH | 0.00017354 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Pixel
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Pixel (PXL) // Kim Asendorf, 2025 // SPDX-License-Identifier: MIT pragma solidity >=0.8.26; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol"; import "@openzeppelin/contracts/utils/Address.sol"; contract Pixel is ERC20, ERC20Burnable, ERC20Capped, Ownable { mapping(address => uint256) public allowlist; event Mint(address minter, uint256 quantity); error NotAllowed(); constructor(string memory _name, string memory _symbol, uint256 _cap) ERC20(_name, _symbol) ERC20Capped(_cap) Ownable(msg.sender) {} function mint(address target, uint256 quantity) external { if (msg.sender != owner() && allowlist[msg.sender] < quantity) { revert NotAllowed(); } _mint(target, quantity); if (msg.sender != owner()) { allowlist[msg.sender] -= quantity; } emit Mint(target, quantity); } function rescue(address target, uint256 quantity) external onlyOwner { IERC20 iPixel = IERC20(address(this)); iPixel.transfer(target, quantity); } function addToAllowlist(address[] calldata addresses, uint256[] calldata amount) external onlyOwner { for (uint256 i; i < addresses.length; i++) { allowlist[addresses[i]] = amount[i]; } } function removeFromAllowlist(address[] calldata addresses) external onlyOwner { for (uint256 i; i < addresses.length; i++) { delete allowlist[addresses[i]]; } } function decimals() public view virtual override returns (uint8) { return 0; } function _update(address from, address to, uint256 value) internal override(ERC20, ERC20Capped) { super._update(from, to, value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC-20 * applications. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Skips emitting an {Approval} event indicating an allowance update. This is not * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * * ```solidity * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.20; import {ERC20} from "../ERC20.sol"; import {Context} from "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys a `value` amount of tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 value) public virtual { _burn(_msgSender(), value); } /** * @dev Destroys a `value` amount of tokens from `account`, deducting from * the caller's allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `value`. */ function burnFrom(address account, uint256 value) public virtual { _spendAllowance(account, _msgSender(), value); _burn(account, value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Capped.sol) pragma solidity ^0.8.20; import {ERC20} from "../ERC20.sol"; /** * @dev Extension of {ERC20} that adds a cap to the supply of tokens. */ abstract contract ERC20Capped is ERC20 { uint256 private immutable _cap; /** * @dev Total supply cap has been exceeded. */ error ERC20ExceededCap(uint256 increasedSupply, uint256 cap); /** * @dev The supplied cap is not a valid cap. */ error ERC20InvalidCap(uint256 cap); /** * @dev Sets the value of the `cap`. This value is immutable, it can only be * set once during construction. */ constructor(uint256 cap_) { if (cap_ == 0) { revert ERC20InvalidCap(0); } _cap = cap_; } /** * @dev Returns the cap on the token's total supply. */ function cap() public view virtual returns (uint256) { return _cap; } /** * @dev See {ERC20-_update}. */ function _update(address from, address to, uint256 value) internal virtual override { super._update(from, to, value); if (from == address(0)) { uint256 maxSupply = cap(); uint256 supply = totalSupply(); if (supply > maxSupply) { revert ERC20ExceededCap(supply, maxSupply); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC-20 standard. */ 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ 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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol) pragma solidity ^0.8.20; import {Errors} from "./Errors.sol"; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert Errors.InsufficientBalance(address(this).balance, amount); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert Errors.FailedCall(); } } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {Errors.FailedCall} error. * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert Errors.InsufficientBalance(address(this).balance, value); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case * of an unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {Errors.FailedCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly ("memory-safe") { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert Errors.FailedCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol) pragma solidity ^0.8.20; /** * @dev Collection of common custom errors used in multiple contracts * * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library. * It is recommended to avoid relying on the error API for critical functionality. * * _Available since v5.1._ */ library Errors { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error InsufficientBalance(uint256 balance, uint256 needed); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedCall(); /** * @dev The deployment failed. */ error FailedDeployment(); /** * @dev A necessary precompile is missing. */ error MissingPrecompile(address); }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_cap","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"increasedSupply","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20ExceededCap","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20InvalidCap","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Mint","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":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"addToAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"","type":"address"}],"name":"allowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","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":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","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":"target","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"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":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeFromAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"rescue","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":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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
60a060405234801561001057600080fd5b50604051612270380380612270833981810160405281019061003291906103a2565b3381848481600390816100459190610644565b5080600490816100559190610644565b5050506000810361009e5760006040517f392e1e270000000000000000000000000000000000000000000000000000000081526004016100959190610751565b60405180910390fd5b806080818152505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101195760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161011091906107ad565b60405180910390fd5b6101288161013160201b60201c565b505050506107c8565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61025e82610215565b810181811067ffffffffffffffff8211171561027d5761027c610226565b5b80604052505050565b60006102906101f7565b905061029c8282610255565b919050565b600067ffffffffffffffff8211156102bc576102bb610226565b5b6102c582610215565b9050602081019050919050565b60005b838110156102f05780820151818401526020810190506102d5565b60008484015250505050565b600061030f61030a846102a1565b610286565b90508281526020810184848401111561032b5761032a610210565b5b6103368482856102d2565b509392505050565b600082601f8301126103535761035261020b565b5b81516103638482602086016102fc565b91505092915050565b6000819050919050565b61037f8161036c565b811461038a57600080fd5b50565b60008151905061039c81610376565b92915050565b6000806000606084860312156103bb576103ba610201565b5b600084015167ffffffffffffffff8111156103d9576103d8610206565b5b6103e58682870161033e565b935050602084015167ffffffffffffffff81111561040657610405610206565b5b6104128682870161033e565b92505060406104238682870161038d565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061047f57607f821691505b60208210810361049257610491610438565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026104fa7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826104bd565b61050486836104bd565b95508019841693508086168417925050509392505050565b6000819050919050565b600061054161053c6105378461036c565b61051c565b61036c565b9050919050565b6000819050919050565b61055b83610526565b61056f61056782610548565b8484546104ca565b825550505050565b600090565b610584610577565b61058f818484610552565b505050565b5b818110156105b3576105a860008261057c565b600181019050610595565b5050565b601f8211156105f8576105c981610498565b6105d2846104ad565b810160208510156105e1578190505b6105f56105ed856104ad565b830182610594565b50505b505050565b600082821c905092915050565b600061061b600019846008026105fd565b1980831691505092915050565b6000610634838361060a565b9150826002028217905092915050565b61064d8261042d565b67ffffffffffffffff81111561066657610665610226565b5b6106708254610467565b61067b8282856105b7565b600060209050601f8311600181146106ae576000841561069c578287015190505b6106a68582610628565b86555061070e565b601f1984166106bc86610498565b60005b828110156106e4578489015182556001820191506020850194506020810190506106bf565b8683101561070157848901516106fd601f89168261060a565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b600061073b61073661073184610716565b61051c565b61036c565b9050919050565b61074b81610720565b82525050565b60006020820190506107666000830184610742565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006107978261076c565b9050919050565b6107a78161078c565b82525050565b60006020820190506107c2600083018461079e565b92915050565b608051611a8d6107e3600039600061055c0152611a8d6000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063715018a6116100ad578063a7cd52cb11610071578063a7cd52cb1461030b578063a9059cbb1461033b578063b21ed0501461036b578063dd62ed3e14610387578063f2fde38b146103b75761012c565b8063715018a61461028d57806379cc6790146102975780637a4e4ecf146102b35780638da5cb5b146102cf57806395d89b41146102ed5761012c565b8063313ce567116100f4578063313ce567146101e9578063355274ea1461020757806340c10f191461022557806342966c681461024157806370a082311461025d5761012c565b806306fdde0314610131578063095ea7b31461014f578063104b6cb71461017f57806318160ddd1461019b57806323b872dd146101b9575b600080fd5b6101396103d3565b6040516101469190611418565b60405180910390f35b610169600480360381019061016491906114d8565b610465565b6040516101769190611533565b60405180910390f35b610199600480360381019061019491906115b3565b610488565b005b6101a361051a565b6040516101b0919061160f565b60405180910390f35b6101d360048036038101906101ce919061162a565b610524565b6040516101e09190611533565b60405180910390f35b6101f1610553565b6040516101fe9190611699565b60405180910390f35b61020f610558565b60405161021c919061160f565b60405180910390f35b61023f600480360381019061023a91906114d8565b610580565b005b61025b600480360381019061025691906116b4565b610710565b005b610277600480360381019061027291906116e1565b610724565b604051610284919061160f565b60405180910390f35b61029561076c565b005b6102b160048036038101906102ac91906114d8565b610780565b005b6102cd60048036038101906102c891906114d8565b6107a0565b005b6102d7610831565b6040516102e4919061171d565b60405180910390f35b6102f561085b565b6040516103029190611418565b60405180910390f35b610325600480360381019061032091906116e1565b6108ed565b604051610332919061160f565b60405180910390f35b610355600480360381019061035091906114d8565b610905565b6040516103629190611533565b60405180910390f35b6103856004803603810190610380919061178e565b610928565b005b6103a1600480360381019061039c919061180f565b6109d6565b6040516103ae919061160f565b60405180910390f35b6103d160048036038101906103cc91906116e1565b610a5d565b005b6060600380546103e29061187e565b80601f016020809104026020016040519081016040528092919081815260200182805461040e9061187e565b801561045b5780601f106104305761010080835404028352916020019161045b565b820191906000526020600020905b81548152906001019060200180831161043e57829003601f168201915b5050505050905090565b600080610470610ae3565b905061047d818585610aeb565b600191505092915050565b610490610afd565b60005b8282905081101561051557600660008484848181106104b5576104b46118af565b5b90506020020160208101906104ca91906116e1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090558080600101915050610493565b505050565b6000600254905090565b60008061052f610ae3565b905061053c858285610b84565b610547858585610c18565b60019150509392505050565b600090565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b610588610831565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610601575080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054105b15610638576040517f3d693ada00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106428282610d0c565b61064a610831565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106d35780600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546106cb919061190d565b925050819055505b7f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858282604051610704929190611941565b60405180910390a15050565b61072161071b610ae3565b82610d8e565b50565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610774610afd565b61077e6000610e10565b565b6107928261078c610ae3565b83610b84565b61079c8282610d8e565b5050565b6107a8610afd565b60003090508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b81526004016107e8929190611941565b6020604051808303816000875af1158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b9190611996565b50505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461086a9061187e565b80601f01602080910402602001604051908101604052809291908181526020018280546108969061187e565b80156108e35780601f106108b8576101008083540402835291602001916108e3565b820191906000526020600020905b8154815290600101906020018083116108c657829003601f168201915b5050505050905090565b60066020528060005260406000206000915090505481565b600080610910610ae3565b905061091d818585610c18565b600191505092915050565b610930610afd565b60005b848490508110156109cf57828282818110610951576109506118af565b5b905060200201356006600087878581811061096f5761096e6118af565b5b905060200201602081019061098491906116e1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080600101915050610933565b5050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610a65610afd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ad75760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610ace919061171d565b60405180910390fd5b610ae081610e10565b50565b600033905090565b610af88383836001610ed6565b505050565b610b05610ae3565b73ffffffffffffffffffffffffffffffffffffffff16610b23610831565b73ffffffffffffffffffffffffffffffffffffffff1614610b8257610b46610ae3565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610b79919061171d565b60405180910390fd5b565b6000610b9084846109d6565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610c125781811015610c02578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610bf9939291906119c3565b60405180910390fd5b610c1184848484036000610ed6565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c8a5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610c81919061171d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610cfc5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610cf3919061171d565b60405180910390fd5b610d078383836110ad565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d7e5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610d75919061171d565b60405180910390fd5b610d8a600083836110ad565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e005760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610df7919061171d565b60405180910390fd5b610e0c826000836110ad565b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610f485760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610f3f919061171d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fba5760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610fb1919061171d565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080156110a7578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161109e919061160f565b60405180910390a35b50505050565b6110b88383836110bd565b505050565b6110c8838383611163565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361115e576000611106610558565b9050600061111261051a565b90508181111561115b5780826040517f9e79f8540000000000000000000000000000000000000000000000000000000081526004016111529291906119fa565b60405180910390fd5b50505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036111b55780600260008282546111a99190611a23565b92505081905550611288565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611241578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401611238939291906119c3565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112d1578060026000828254039250508190555061131e565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161137b919061160f565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156113c25780820151818401526020810190506113a7565b60008484015250505050565b6000601f19601f8301169050919050565b60006113ea82611388565b6113f48185611393565b93506114048185602086016113a4565b61140d816113ce565b840191505092915050565b6000602082019050818103600083015261143281846113df565b905092915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061146f82611444565b9050919050565b61147f81611464565b811461148a57600080fd5b50565b60008135905061149c81611476565b92915050565b6000819050919050565b6114b5816114a2565b81146114c057600080fd5b50565b6000813590506114d2816114ac565b92915050565b600080604083850312156114ef576114ee61143a565b5b60006114fd8582860161148d565b925050602061150e858286016114c3565b9150509250929050565b60008115159050919050565b61152d81611518565b82525050565b60006020820190506115486000830184611524565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126115735761157261154e565b5b8235905067ffffffffffffffff8111156115905761158f611553565b5b6020830191508360208202830111156115ac576115ab611558565b5b9250929050565b600080602083850312156115ca576115c961143a565b5b600083013567ffffffffffffffff8111156115e8576115e761143f565b5b6115f48582860161155d565b92509250509250929050565b611609816114a2565b82525050565b60006020820190506116246000830184611600565b92915050565b6000806000606084860312156116435761164261143a565b5b60006116518682870161148d565b93505060206116628682870161148d565b9250506040611673868287016114c3565b9150509250925092565b600060ff82169050919050565b6116938161167d565b82525050565b60006020820190506116ae600083018461168a565b92915050565b6000602082840312156116ca576116c961143a565b5b60006116d8848285016114c3565b91505092915050565b6000602082840312156116f7576116f661143a565b5b60006117058482850161148d565b91505092915050565b61171781611464565b82525050565b6000602082019050611732600083018461170e565b92915050565b60008083601f84011261174e5761174d61154e565b5b8235905067ffffffffffffffff81111561176b5761176a611553565b5b60208301915083602082028301111561178757611786611558565b5b9250929050565b600080600080604085870312156117a8576117a761143a565b5b600085013567ffffffffffffffff8111156117c6576117c561143f565b5b6117d28782880161155d565b9450945050602085013567ffffffffffffffff8111156117f5576117f461143f565b5b61180187828801611738565b925092505092959194509250565b600080604083850312156118265761182561143a565b5b60006118348582860161148d565b92505060206118458582860161148d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061189657607f821691505b6020821081036118a9576118a861184f565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611918826114a2565b9150611923836114a2565b925082820390508181111561193b5761193a6118de565b5b92915050565b6000604082019050611956600083018561170e565b6119636020830184611600565b9392505050565b61197381611518565b811461197e57600080fd5b50565b6000815190506119908161196a565b92915050565b6000602082840312156119ac576119ab61143a565b5b60006119ba84828501611981565b91505092915050565b60006060820190506119d8600083018661170e565b6119e56020830185611600565b6119f26040830184611600565b949350505050565b6000604082019050611a0f6000830185611600565b611a1c6020830184611600565b9392505050565b6000611a2e826114a2565b9150611a39836114a2565b9250828201905080821115611a5157611a506118de565b5b9291505056fea2646970667358221220f924a0620893e7a2fb8a293bc8482b94bc91df0e5f3000c2c20dd338e17f405764736f6c634300081a0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000000000000005506978656c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000350584c0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063715018a6116100ad578063a7cd52cb11610071578063a7cd52cb1461030b578063a9059cbb1461033b578063b21ed0501461036b578063dd62ed3e14610387578063f2fde38b146103b75761012c565b8063715018a61461028d57806379cc6790146102975780637a4e4ecf146102b35780638da5cb5b146102cf57806395d89b41146102ed5761012c565b8063313ce567116100f4578063313ce567146101e9578063355274ea1461020757806340c10f191461022557806342966c681461024157806370a082311461025d5761012c565b806306fdde0314610131578063095ea7b31461014f578063104b6cb71461017f57806318160ddd1461019b57806323b872dd146101b9575b600080fd5b6101396103d3565b6040516101469190611418565b60405180910390f35b610169600480360381019061016491906114d8565b610465565b6040516101769190611533565b60405180910390f35b610199600480360381019061019491906115b3565b610488565b005b6101a361051a565b6040516101b0919061160f565b60405180910390f35b6101d360048036038101906101ce919061162a565b610524565b6040516101e09190611533565b60405180910390f35b6101f1610553565b6040516101fe9190611699565b60405180910390f35b61020f610558565b60405161021c919061160f565b60405180910390f35b61023f600480360381019061023a91906114d8565b610580565b005b61025b600480360381019061025691906116b4565b610710565b005b610277600480360381019061027291906116e1565b610724565b604051610284919061160f565b60405180910390f35b61029561076c565b005b6102b160048036038101906102ac91906114d8565b610780565b005b6102cd60048036038101906102c891906114d8565b6107a0565b005b6102d7610831565b6040516102e4919061171d565b60405180910390f35b6102f561085b565b6040516103029190611418565b60405180910390f35b610325600480360381019061032091906116e1565b6108ed565b604051610332919061160f565b60405180910390f35b610355600480360381019061035091906114d8565b610905565b6040516103629190611533565b60405180910390f35b6103856004803603810190610380919061178e565b610928565b005b6103a1600480360381019061039c919061180f565b6109d6565b6040516103ae919061160f565b60405180910390f35b6103d160048036038101906103cc91906116e1565b610a5d565b005b6060600380546103e29061187e565b80601f016020809104026020016040519081016040528092919081815260200182805461040e9061187e565b801561045b5780601f106104305761010080835404028352916020019161045b565b820191906000526020600020905b81548152906001019060200180831161043e57829003601f168201915b5050505050905090565b600080610470610ae3565b905061047d818585610aeb565b600191505092915050565b610490610afd565b60005b8282905081101561051557600660008484848181106104b5576104b46118af565b5b90506020020160208101906104ca91906116e1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090558080600101915050610493565b505050565b6000600254905090565b60008061052f610ae3565b905061053c858285610b84565b610547858585610c18565b60019150509392505050565b600090565b60007f000000000000000000000000000000000000000000000000000000003d090000905090565b610588610831565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610601575080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054105b15610638576040517f3d693ada00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106428282610d0c565b61064a610831565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106d35780600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546106cb919061190d565b925050819055505b7f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858282604051610704929190611941565b60405180910390a15050565b61072161071b610ae3565b82610d8e565b50565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610774610afd565b61077e6000610e10565b565b6107928261078c610ae3565b83610b84565b61079c8282610d8e565b5050565b6107a8610afd565b60003090508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b81526004016107e8929190611941565b6020604051808303816000875af1158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b9190611996565b50505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461086a9061187e565b80601f01602080910402602001604051908101604052809291908181526020018280546108969061187e565b80156108e35780601f106108b8576101008083540402835291602001916108e3565b820191906000526020600020905b8154815290600101906020018083116108c657829003601f168201915b5050505050905090565b60066020528060005260406000206000915090505481565b600080610910610ae3565b905061091d818585610c18565b600191505092915050565b610930610afd565b60005b848490508110156109cf57828282818110610951576109506118af565b5b905060200201356006600087878581811061096f5761096e6118af565b5b905060200201602081019061098491906116e1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080600101915050610933565b5050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610a65610afd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ad75760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610ace919061171d565b60405180910390fd5b610ae081610e10565b50565b600033905090565b610af88383836001610ed6565b505050565b610b05610ae3565b73ffffffffffffffffffffffffffffffffffffffff16610b23610831565b73ffffffffffffffffffffffffffffffffffffffff1614610b8257610b46610ae3565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610b79919061171d565b60405180910390fd5b565b6000610b9084846109d6565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610c125781811015610c02578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610bf9939291906119c3565b60405180910390fd5b610c1184848484036000610ed6565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c8a5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610c81919061171d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610cfc5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610cf3919061171d565b60405180910390fd5b610d078383836110ad565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d7e5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610d75919061171d565b60405180910390fd5b610d8a600083836110ad565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e005760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610df7919061171d565b60405180910390fd5b610e0c826000836110ad565b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610f485760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610f3f919061171d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fba5760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610fb1919061171d565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080156110a7578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161109e919061160f565b60405180910390a35b50505050565b6110b88383836110bd565b505050565b6110c8838383611163565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361115e576000611106610558565b9050600061111261051a565b90508181111561115b5780826040517f9e79f8540000000000000000000000000000000000000000000000000000000081526004016111529291906119fa565b60405180910390fd5b50505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036111b55780600260008282546111a99190611a23565b92505081905550611288565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611241578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401611238939291906119c3565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112d1578060026000828254039250508190555061131e565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161137b919061160f565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156113c25780820151818401526020810190506113a7565b60008484015250505050565b6000601f19601f8301169050919050565b60006113ea82611388565b6113f48185611393565b93506114048185602086016113a4565b61140d816113ce565b840191505092915050565b6000602082019050818103600083015261143281846113df565b905092915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061146f82611444565b9050919050565b61147f81611464565b811461148a57600080fd5b50565b60008135905061149c81611476565b92915050565b6000819050919050565b6114b5816114a2565b81146114c057600080fd5b50565b6000813590506114d2816114ac565b92915050565b600080604083850312156114ef576114ee61143a565b5b60006114fd8582860161148d565b925050602061150e858286016114c3565b9150509250929050565b60008115159050919050565b61152d81611518565b82525050565b60006020820190506115486000830184611524565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126115735761157261154e565b5b8235905067ffffffffffffffff8111156115905761158f611553565b5b6020830191508360208202830111156115ac576115ab611558565b5b9250929050565b600080602083850312156115ca576115c961143a565b5b600083013567ffffffffffffffff8111156115e8576115e761143f565b5b6115f48582860161155d565b92509250509250929050565b611609816114a2565b82525050565b60006020820190506116246000830184611600565b92915050565b6000806000606084860312156116435761164261143a565b5b60006116518682870161148d565b93505060206116628682870161148d565b9250506040611673868287016114c3565b9150509250925092565b600060ff82169050919050565b6116938161167d565b82525050565b60006020820190506116ae600083018461168a565b92915050565b6000602082840312156116ca576116c961143a565b5b60006116d8848285016114c3565b91505092915050565b6000602082840312156116f7576116f661143a565b5b60006117058482850161148d565b91505092915050565b61171781611464565b82525050565b6000602082019050611732600083018461170e565b92915050565b60008083601f84011261174e5761174d61154e565b5b8235905067ffffffffffffffff81111561176b5761176a611553565b5b60208301915083602082028301111561178757611786611558565b5b9250929050565b600080600080604085870312156117a8576117a761143a565b5b600085013567ffffffffffffffff8111156117c6576117c561143f565b5b6117d28782880161155d565b9450945050602085013567ffffffffffffffff8111156117f5576117f461143f565b5b61180187828801611738565b925092505092959194509250565b600080604083850312156118265761182561143a565b5b60006118348582860161148d565b92505060206118458582860161148d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061189657607f821691505b6020821081036118a9576118a861184f565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611918826114a2565b9150611923836114a2565b925082820390508181111561193b5761193a6118de565b5b92915050565b6000604082019050611956600083018561170e565b6119636020830184611600565b9392505050565b61197381611518565b811461197e57600080fd5b50565b6000815190506119908161196a565b92915050565b6000602082840312156119ac576119ab61143a565b5b60006119ba84828501611981565b91505092915050565b60006060820190506119d8600083018661170e565b6119e56020830185611600565b6119f26040830184611600565b949350505050565b6000604082019050611a0f6000830185611600565b611a1c6020830184611600565b9392505050565b6000611a2e826114a2565b9150611a39836114a2565b9250828201905080821115611a5157611a506118de565b5b9291505056fea2646970667358221220f924a0620893e7a2fb8a293bc8482b94bc91df0e5f3000c2c20dd338e17f405764736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000000000000005506978656c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000350584c0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Pixel
Arg [1] : _symbol (string): PXL
Arg [2] : _cap (uint256): 1024000000
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000000000000000000000000000000000003d090000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 506978656c000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 50584c0000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.