Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 2,005 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 23560623 | 5 mins ago | IN | 0 ETH | 0.00006512 | ||||
Transfer | 23560173 | 1 hr ago | IN | 0 ETH | 0.000063 | ||||
Transfer | 23560167 | 1 hr ago | IN | 0 ETH | 0.00009087 | ||||
Transfer | 23560092 | 1 hr ago | IN | 0 ETH | 0.00009199 | ||||
Transfer | 23560001 | 2 hrs ago | IN | 0 ETH | 0.00009051 | ||||
Transfer | 23559951 | 2 hrs ago | IN | 0 ETH | 0.00006407 | ||||
Transfer | 23559676 | 3 hrs ago | IN | 0 ETH | 0.00000731 | ||||
Transfer | 23559648 | 3 hrs ago | IN | 0 ETH | 0.0000074 | ||||
Transfer | 23559438 | 4 hrs ago | IN | 0 ETH | 0.00000617 | ||||
Transfer | 23558859 | 6 hrs ago | IN | 0 ETH | 0.00006727 | ||||
Transfer | 23554962 | 19 hrs ago | IN | 0 ETH | 0.00011303 | ||||
Transfer | 23554868 | 19 hrs ago | IN | 0 ETH | 0.0001202 | ||||
Transfer | 23554861 | 19 hrs ago | IN | 0 ETH | 0.00012062 | ||||
Transfer | 23554839 | 19 hrs ago | IN | 0 ETH | 0.00012007 | ||||
Transfer | 23554810 | 19 hrs ago | IN | 0 ETH | 0.00012115 | ||||
Transfer | 23554799 | 19 hrs ago | IN | 0 ETH | 0.00011625 | ||||
Transfer | 23554740 | 19 hrs ago | IN | 0 ETH | 0.00003962 | ||||
Transfer | 23554475 | 20 hrs ago | IN | 0 ETH | 0.00002608 | ||||
Transfer | 23554110 | 21 hrs ago | IN | 0 ETH | 0.00008102 | ||||
Transfer | 23553208 | 24 hrs ago | IN | 0 ETH | 0.00014605 | ||||
Transfer | 23553137 | 25 hrs ago | IN | 0 ETH | 0.00006491 | ||||
Transfer | 23553120 | 25 hrs ago | IN | 0 ETH | 0.00007135 | ||||
Transfer | 23552879 | 26 hrs ago | IN | 0 ETH | 0.00012093 | ||||
Transfer | 23552863 | 26 hrs ago | IN | 0 ETH | 0.00011065 | ||||
Transfer | 23552837 | 26 hrs ago | IN | 0 ETH | 0.00011049 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ECMCoin
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-04-30 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-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 ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 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); } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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); } } // File: @openzeppelin/contracts/utils/Pausable.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the 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); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; /** * @dev Interface for the optional metadata functions from the ERC20 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); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; /** * @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 ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ 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}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * 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: * ``` * 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); } } } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.20; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * IMPORTANT: This contract does not include public pause and unpause functions. In * addition to inheriting this contract, you must define both functions, invoking the * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will * make the contract pause mechanism of the contract unreachable, and thus unusable. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_update}. * * Requirements: * * - the contract must not be paused. */ function _update(address from, address to, uint256 value) internal virtual override whenNotPaused { super._update(from, to, value); } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.20; /** * @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); } } // File: contracts/ECMCOIN.sol pragma solidity ^0.8.20; /** * @title ECMCoin * @dev ERC20 coin with burning, pausing, and freezing features. */ contract ECMCoin is ERC20, Ownable(msg.sender), ERC20Burnable, ERC20Pausable { mapping(address => bool) private frozenAccounts; event AccountFrozen(address indexed account); event AccountUnfrozen(address indexed account); /** * @dev Modifier to check if the account is frozen. */ modifier notFrozen(address _address) { require(!frozenAccounts[_address], "ERC20: Oops this account is frozen."); _; } /** * @dev Constructor that initializes the ECMCoin with an initial supply. * @param initialSupply The initial supply of the coin. */ constructor(uint256 initialSupply) ERC20("eCommerce Coin", "ECM") { _mint(msg.sender, initialSupply * 10 ** uint(decimals())); } /** * @dev Pauses all coin transfers. * Can only be called by the owner. */ function pause() public onlyOwner { _pause(); } /** * @dev Unpauses all coin transfers. * Can only be called by the owner. */ function unpause() public onlyOwner { _unpause(); } /** * @dev Overrides the internal transfer function to include frozen account check. */ function _update(address from, address to, uint256 value) internal override(ERC20, ERC20Pausable) notFrozen(from){ super._update(from, to, value); } /** * @dev Freezes the specified account, preventing any transfers of coins from the frozen account. * Can only be called by the contract owner. * @param account The address of the account to freeze. */ function freezeAccount(address account) public onlyOwner { require(!frozenAccounts[account], "ERC20: Account is already frozen."); frozenAccounts[account] = true; emit AccountFrozen(account); } /** * @dev Unfreezes the specified account, allowing transfers of coins from the account. * Can only be called by the contract owner. * @param account The address of the account to unfreeze. */ function unfreezeAccount(address account) public onlyOwner { require(frozenAccounts[account], "ERC20: Account is not frozen."); frozenAccounts[account] = false; emit AccountUnfrozen(account); } /** * @dev Checks if an account is frozen. * @param account The address of the account to check. * @return A boolean indicating whether the account is frozen or not. */ function isAccountFrozen(address account) public view returns (bool) { return frozenAccounts[account]; } /** * @dev Burns a specific amount of coins. * Can only be called by the owner and when not paused. * @param amount The amount of coin to be burned. */ function burn(uint256 amount) public override(ERC20Burnable) onlyOwner whenNotPaused { require(!frozenAccounts[_msgSender()], "ERC20: Try to burn from frozen account."); super.burn(amount); } /** * @dev Burns a specific amount of coins from the specified account. * Can only be called by the owner and when not paused and not frozen this account. * @param account The address from which to burn the coins. * @param amount The amount of coin to be burned. */ function burnFrom(address account, uint256 amount) public override(ERC20Burnable) onlyOwner whenNotPaused notFrozen(account){ require(!frozenAccounts[account], "ERC20: Tryed to burn burn from frozen account."); super.burnFrom(account, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"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":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","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":"account","type":"address"}],"name":"AccountFrozen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"AccountUnfrozen","type":"event"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","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":"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":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"freezeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isAccountFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"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"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unfreezeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801562000010575f80fd5b506040516200149c3803806200149c8339810160408190526200003391620003a6565b336040518060400160405280600e81526020016d32a1b7b6b6b2b931b29021b7b4b760911b8152506040518060400160405280600381526020016245434d60e81b81525081600390816200008891906200045d565b5060046200009782826200045d565b5050506001600160a01b038116620000c957604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b620000d4816200010e565b506005805460ff60a01b191690556200010733620000f56012600a62000634565b62000101908462000648565b6200015f565b5062000678565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166200018a5760405163ec442f0560e01b81525f6004820152602401620000c0565b620001975f83836200019b565b5050565b6001600160a01b0383165f90815260066020526040902054839060ff1615620002135760405162461bcd60e51b815260206004820152602360248201527f45524332303a204f6f70732074686973206163636f756e742069732066726f7a60448201526232b71760e91b6064820152608401620000c0565b6200022084848462000226565b50505050565b6200023062000242565b6200023d83838362000277565b505050565b62000256600554600160a01b900460ff1690565b15620002755760405163d93c066560e01b815260040160405180910390fd5b565b6001600160a01b038316620002a5578060025f82825462000299919062000662565b90915550620003179050565b6001600160a01b0383165f9081526020819052604090205481811015620002f95760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000c0565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216620003355760028054829003905562000353565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200039991815260200190565b60405180910390a3505050565b5f60208284031215620003b7575f80fd5b5051919050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620003e757607f821691505b6020821081036200040657634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200023d575f81815260208120601f850160051c81016020861015620004345750805b601f850160051c820191505b81811015620004555782815560010162000440565b505050505050565b81516001600160401b03811115620004795762000479620003be565b62000491816200048a8454620003d2565b846200040c565b602080601f831160018114620004c7575f8415620004af5750858301515b5f19600386901b1c1916600185901b17855562000455565b5f85815260208120601f198616915b82811015620004f757888601518255948401946001909101908401620004d6565b50858210156200051557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b600181815b808511156200057957815f19048211156200055d576200055d62000525565b808516156200056b57918102915b93841c93908002906200053e565b509250929050565b5f8262000591575060016200062e565b816200059f57505f6200062e565b8160018114620005b85760028114620005c357620005e3565b60019150506200062e565b60ff841115620005d757620005d762000525565b50506001821b6200062e565b5060208310610133831016604e8410600b841016171562000608575081810a6200062e565b62000614838362000539565b805f19048211156200062a576200062a62000525565b0290505b92915050565b5f62000641838362000581565b9392505050565b80820281158282048414176200062e576200062e62000525565b808201808211156200062e576200062e62000525565b610e1680620006865f395ff3fe608060405234801561000f575f80fd5b5060043610610127575f3560e01c8063788649ea116100a9578063a9059cbb1161006e578063a9059cbb14610250578063dd62ed3e14610263578063e816d97f1461029b578063f26c159f146102c6578063f2fde38b146102d9575f80fd5b8063788649ea146101ff57806379cc6790146102125780638456cb59146102255780638da5cb5b1461022d57806395d89b4114610248575f80fd5b80633f4ba83a116100ef5780633f4ba83a146101a057806342966c68146101aa5780635c975abb146101bd57806370a08231146101cf578063715018a6146101f7575f80fd5b806306fdde031461012b578063095ea7b31461014957806318160ddd1461016c57806323b872dd1461017e578063313ce56714610191575b5f80fd5b6101336102ec565b6040516101409190610c17565b60405180910390f35b61015c610157366004610c7d565b61037c565b6040519015158152602001610140565b6002545b604051908152602001610140565b61015c61018c366004610ca5565b610395565b60405160128152602001610140565b6101a86103b8565b005b6101a86101b8366004610cde565b6103ca565b600554600160a01b900460ff1661015c565b6101706101dd366004610cf5565b6001600160a01b03165f9081526020819052604090205490565b6101a861045a565b6101a861020d366004610cf5565b61046b565b6101a8610220366004610c7d565b610522565b6101a86105fa565b6005546040516001600160a01b039091168152602001610140565b61013361060a565b61015c61025e366004610c7d565b610619565b610170610271366004610d15565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61015c6102a9366004610cf5565b6001600160a01b03165f9081526006602052604090205460ff1690565b6101a86102d4366004610cf5565b610626565b6101a86102e7366004610cf5565b6106eb565b6060600380546102fb90610d46565b80601f016020809104026020016040519081016040528092919081815260200182805461032790610d46565b80156103725780601f1061034957610100808354040283529160200191610372565b820191905f5260205f20905b81548152906001019060200180831161035557829003601f168201915b5050505050905090565b5f33610389818585610725565b60019150505b92915050565b5f336103a2858285610732565b6103ad8585856107ad565b506001949350505050565b6103c061080a565b6103c8610837565b565b6103d261080a565b6103da61088c565b335f9081526006602052604090205460ff161561044e5760405162461bcd60e51b815260206004820152602760248201527f45524332303a2054727920746f206275726e2066726f6d2066726f7a656e206160448201526631b1b7bab73a1760c91b60648201526084015b60405180910390fd5b610457816108b7565b50565b61046261080a565b6103c85f6108c1565b61047361080a565b6001600160a01b0381165f9081526006602052604090205460ff166104da5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a204163636f756e74206973206e6f742066726f7a656e2e0000006044820152606401610445565b6001600160a01b0381165f81815260066020526040808220805460ff19169055517ff915cd9fe234de6e8d3afe7bf2388d35b2b6d48e8c629a24602019bde79c213a9190a250565b61052a61080a565b61053261088c565b6001600160a01b0382165f90815260066020526040902054829060ff161561056c5760405162461bcd60e51b815260040161044590610d7e565b6001600160a01b0383165f9081526006602052604090205460ff16156105eb5760405162461bcd60e51b815260206004820152602e60248201527f45524332303a20547279656420746f206275726e206275726e2066726f6d206660448201526d3937bd32b71030b1b1b7bab73a1760911b6064820152608401610445565b6105f58383610912565b505050565b61060261080a565b6103c861092b565b6060600480546102fb90610d46565b5f336103898185856107ad565b61062e61080a565b6001600160a01b0381165f9081526006602052604090205460ff16156106a05760405162461bcd60e51b815260206004820152602160248201527f45524332303a204163636f756e7420697320616c72656164792066726f7a656e6044820152601760f91b6064820152608401610445565b6001600160a01b0381165f81815260066020526040808220805460ff19166001179055517f4f2a367e694e71282f29ab5eaa04c4c0be45ac5bf2ca74fb67068b98bdc2887d9190a250565b6106f361080a565b6001600160a01b03811661071c57604051631e4fbdf760e01b81525f6004820152602401610445565b610457816108c1565b6105f5838383600161096e565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146107a7578181101561079957604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610445565b6107a784848484035f61096e565b50505050565b6001600160a01b0383166107d657604051634b637e8f60e11b81525f6004820152602401610445565b6001600160a01b0382166107ff5760405163ec442f0560e01b81525f6004820152602401610445565b6105f5838383610a40565b6005546001600160a01b031633146103c85760405163118cdaa760e01b8152336004820152602401610445565b61083f610a85565b6005805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600554600160a01b900460ff16156103c85760405163d93c066560e01b815260040160405180910390fd5b6104573382610aaf565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b61091d823383610732565b6109278282610aaf565b5050565b61093361088c565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861086f3390565b6001600160a01b0384166109975760405163e602df0560e01b81525f6004820152602401610445565b6001600160a01b0383166109c057604051634a1406b160e11b81525f6004820152602401610445565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156107a757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610a3291815260200190565b60405180910390a350505050565b6001600160a01b0383165f90815260066020526040902054839060ff1615610a7a5760405162461bcd60e51b815260040161044590610d7e565b6107a7848484610ae3565b600554600160a01b900460ff166103c857604051638dfc202b60e01b815260040160405180910390fd5b6001600160a01b038216610ad857604051634b637e8f60e11b81525f6004820152602401610445565b610927825f83610a40565b610aeb61088c565b6105f58383836001600160a01b038316610b1b578060025f828254610b109190610dc1565b90915550610b8b9050565b6001600160a01b0383165f9081526020819052604090205481811015610b6d5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610445565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610ba757600280548290039055610bc5565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610c0a91815260200190565b60405180910390a3505050565b5f6020808352835180828501525f5b81811015610c4257858101830151858201604001528201610c26565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610c78575f80fd5b919050565b5f8060408385031215610c8e575f80fd5b610c9783610c62565b946020939093013593505050565b5f805f60608486031215610cb7575f80fd5b610cc084610c62565b9250610cce60208501610c62565b9150604084013590509250925092565b5f60208284031215610cee575f80fd5b5035919050565b5f60208284031215610d05575f80fd5b610d0e82610c62565b9392505050565b5f8060408385031215610d26575f80fd5b610d2f83610c62565b9150610d3d60208401610c62565b90509250929050565b600181811c90821680610d5a57607f821691505b602082108103610d7857634e487b7160e01b5f52602260045260245ffd5b50919050565b60208082526023908201527f45524332303a204f6f70732074686973206163636f756e742069732066726f7a60408201526232b71760e91b606082015260800190565b8082018082111561038f57634e487b7160e01b5f52601160045260245ffdfea264697066735822122062131d4387d11576e2e4f75a92ea5da0a0b50f9bec3f349847f3f52d233b309164736f6c63430008140033000000000000000000000000000000000000000000000000000000000bebc200
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610127575f3560e01c8063788649ea116100a9578063a9059cbb1161006e578063a9059cbb14610250578063dd62ed3e14610263578063e816d97f1461029b578063f26c159f146102c6578063f2fde38b146102d9575f80fd5b8063788649ea146101ff57806379cc6790146102125780638456cb59146102255780638da5cb5b1461022d57806395d89b4114610248575f80fd5b80633f4ba83a116100ef5780633f4ba83a146101a057806342966c68146101aa5780635c975abb146101bd57806370a08231146101cf578063715018a6146101f7575f80fd5b806306fdde031461012b578063095ea7b31461014957806318160ddd1461016c57806323b872dd1461017e578063313ce56714610191575b5f80fd5b6101336102ec565b6040516101409190610c17565b60405180910390f35b61015c610157366004610c7d565b61037c565b6040519015158152602001610140565b6002545b604051908152602001610140565b61015c61018c366004610ca5565b610395565b60405160128152602001610140565b6101a86103b8565b005b6101a86101b8366004610cde565b6103ca565b600554600160a01b900460ff1661015c565b6101706101dd366004610cf5565b6001600160a01b03165f9081526020819052604090205490565b6101a861045a565b6101a861020d366004610cf5565b61046b565b6101a8610220366004610c7d565b610522565b6101a86105fa565b6005546040516001600160a01b039091168152602001610140565b61013361060a565b61015c61025e366004610c7d565b610619565b610170610271366004610d15565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61015c6102a9366004610cf5565b6001600160a01b03165f9081526006602052604090205460ff1690565b6101a86102d4366004610cf5565b610626565b6101a86102e7366004610cf5565b6106eb565b6060600380546102fb90610d46565b80601f016020809104026020016040519081016040528092919081815260200182805461032790610d46565b80156103725780601f1061034957610100808354040283529160200191610372565b820191905f5260205f20905b81548152906001019060200180831161035557829003601f168201915b5050505050905090565b5f33610389818585610725565b60019150505b92915050565b5f336103a2858285610732565b6103ad8585856107ad565b506001949350505050565b6103c061080a565b6103c8610837565b565b6103d261080a565b6103da61088c565b335f9081526006602052604090205460ff161561044e5760405162461bcd60e51b815260206004820152602760248201527f45524332303a2054727920746f206275726e2066726f6d2066726f7a656e206160448201526631b1b7bab73a1760c91b60648201526084015b60405180910390fd5b610457816108b7565b50565b61046261080a565b6103c85f6108c1565b61047361080a565b6001600160a01b0381165f9081526006602052604090205460ff166104da5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a204163636f756e74206973206e6f742066726f7a656e2e0000006044820152606401610445565b6001600160a01b0381165f81815260066020526040808220805460ff19169055517ff915cd9fe234de6e8d3afe7bf2388d35b2b6d48e8c629a24602019bde79c213a9190a250565b61052a61080a565b61053261088c565b6001600160a01b0382165f90815260066020526040902054829060ff161561056c5760405162461bcd60e51b815260040161044590610d7e565b6001600160a01b0383165f9081526006602052604090205460ff16156105eb5760405162461bcd60e51b815260206004820152602e60248201527f45524332303a20547279656420746f206275726e206275726e2066726f6d206660448201526d3937bd32b71030b1b1b7bab73a1760911b6064820152608401610445565b6105f58383610912565b505050565b61060261080a565b6103c861092b565b6060600480546102fb90610d46565b5f336103898185856107ad565b61062e61080a565b6001600160a01b0381165f9081526006602052604090205460ff16156106a05760405162461bcd60e51b815260206004820152602160248201527f45524332303a204163636f756e7420697320616c72656164792066726f7a656e6044820152601760f91b6064820152608401610445565b6001600160a01b0381165f81815260066020526040808220805460ff19166001179055517f4f2a367e694e71282f29ab5eaa04c4c0be45ac5bf2ca74fb67068b98bdc2887d9190a250565b6106f361080a565b6001600160a01b03811661071c57604051631e4fbdf760e01b81525f6004820152602401610445565b610457816108c1565b6105f5838383600161096e565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146107a7578181101561079957604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610445565b6107a784848484035f61096e565b50505050565b6001600160a01b0383166107d657604051634b637e8f60e11b81525f6004820152602401610445565b6001600160a01b0382166107ff5760405163ec442f0560e01b81525f6004820152602401610445565b6105f5838383610a40565b6005546001600160a01b031633146103c85760405163118cdaa760e01b8152336004820152602401610445565b61083f610a85565b6005805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600554600160a01b900460ff16156103c85760405163d93c066560e01b815260040160405180910390fd5b6104573382610aaf565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b61091d823383610732565b6109278282610aaf565b5050565b61093361088c565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861086f3390565b6001600160a01b0384166109975760405163e602df0560e01b81525f6004820152602401610445565b6001600160a01b0383166109c057604051634a1406b160e11b81525f6004820152602401610445565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156107a757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610a3291815260200190565b60405180910390a350505050565b6001600160a01b0383165f90815260066020526040902054839060ff1615610a7a5760405162461bcd60e51b815260040161044590610d7e565b6107a7848484610ae3565b600554600160a01b900460ff166103c857604051638dfc202b60e01b815260040160405180910390fd5b6001600160a01b038216610ad857604051634b637e8f60e11b81525f6004820152602401610445565b610927825f83610a40565b610aeb61088c565b6105f58383836001600160a01b038316610b1b578060025f828254610b109190610dc1565b90915550610b8b9050565b6001600160a01b0383165f9081526020819052604090205481811015610b6d5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610445565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610ba757600280548290039055610bc5565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610c0a91815260200190565b60405180910390a3505050565b5f6020808352835180828501525f5b81811015610c4257858101830151858201604001528201610c26565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610c78575f80fd5b919050565b5f8060408385031215610c8e575f80fd5b610c9783610c62565b946020939093013593505050565b5f805f60608486031215610cb7575f80fd5b610cc084610c62565b9250610cce60208501610c62565b9150604084013590509250925092565b5f60208284031215610cee575f80fd5b5035919050565b5f60208284031215610d05575f80fd5b610d0e82610c62565b9392505050565b5f8060408385031215610d26575f80fd5b610d2f83610c62565b9150610d3d60208401610c62565b90509250929050565b600181811c90821680610d5a57607f821691505b602082108103610d7857634e487b7160e01b5f52602260045260245ffd5b50919050565b60208082526023908201527f45524332303a204f6f70732074686973206163636f756e742069732066726f7a60408201526232b71760e91b606082015260800190565b8082018082111561038f57634e487b7160e01b5f52601160045260245ffdfea264697066735822122062131d4387d11576e2e4f75a92ea5da0a0b50f9bec3f349847f3f52d233b309164736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000bebc200
-----Decoded View---------------
Arg [0] : initialSupply (uint256): 200000000
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000bebc200
Deployed Bytecode Sourcemap
31370:3624:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19441:91;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;21734:190;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;21734:190:0;1004:187:1;20543:99:0;20622:12;;20543:99;;;1342:25:1;;;1330:2;1315:18;20543:99:0;1196:177:1;22502:249:0;;;;;;:::i;:::-;;:::i;20394:84::-;;;20468:2;1853:36:1;;1841:2;1826:18;20394:84:0;1711:184:1;32418:65:0;;;:::i;:::-;;34194:214;;;;;;:::i;:::-;;:::i;12862:86::-;12933:7;;-1:-1:-1;;;12933:7:0;;;;12862:86;;20705:118;;;;;;:::i;:::-;-1:-1:-1;;;;;20797:18:0;20770:7;20797:18;;;;;;;;;;;;20705:118;10126:103;;;:::i;33454:225::-;;;;;;:::i;:::-;;:::i;34717:268::-;;;;;;:::i;:::-;;:::i;32248:61::-;;;:::i;9451:87::-;9524:6;;9451:87;;-1:-1:-1;;;;;9524:6:0;;;2422:51:1;;2410:2;2395:18;9451:87:0;2276:203:1;19651:95:0;;;:::i;21028:182::-;;;;;;:::i;:::-;;:::i;21273:142::-;;;;;;:::i;:::-;-1:-1:-1;;;;;21380:18:0;;;21353:7;21380:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;21273:142;33885:118;;;;;;:::i;:::-;-1:-1:-1;;;;;33972:23:0;33948:4;33972:23;;;:14;:23;;;;;;;;;33885:118;32998:225;;;;;;:::i;:::-;;:::i;10384:220::-;;;;;;:::i;:::-;;:::i;19441:91::-;19486:13;19519:5;19512:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19441:91;:::o;21734:190::-;21807:4;7540:10;21863:31;7540:10;21879:7;21888:5;21863:8;:31::i;:::-;21912:4;21905:11;;;21734:190;;;;;:::o;22502:249::-;22589:4;7540:10;22647:37;22663:4;7540:10;22678:5;22647:15;:37::i;:::-;22695:26;22705:4;22711:2;22715:5;22695:9;:26::i;:::-;-1:-1:-1;22739:4:0;;22502:249;-1:-1:-1;;;;22502:249:0:o;32418:65::-;9337:13;:11;:13::i;:::-;32465:10:::1;:8;:10::i;:::-;32418:65::o:0;34194:214::-;9337:13;:11;:13::i;:::-;12467:19:::1;:17;:19::i;:::-;7540:10:::0;34299:28:::2;::::0;;;:14:::2;:28;::::0;;;;;::::2;;34298:29;34290:81;;;::::0;-1:-1:-1;;;34290:81:0;;3336:2:1;34290:81:0::2;::::0;::::2;3318:21:1::0;3375:2;3355:18;;;3348:30;3414:34;3394:18;;;3387:62;-1:-1:-1;;;3465:18:1;;;3458:37;3512:19;;34290:81:0::2;;;;;;;;;34382:18;34393:6;34382:10;:18::i;:::-;34194:214:::0;:::o;10126:103::-;9337:13;:11;:13::i;:::-;10191:30:::1;10218:1;10191:18;:30::i;33454:225::-:0;9337:13;:11;:13::i;:::-;-1:-1:-1;;;;;33532:23:0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;::::1;;33524:65;;;::::0;-1:-1:-1;;;33524:65:0;;3744:2:1;33524:65:0::1;::::0;::::1;3726:21:1::0;3783:2;3763:18;;;3756:30;3822:31;3802:18;;;3795:59;3871:18;;33524:65:0::1;3542:353:1::0;33524:65:0::1;-1:-1:-1::0;;;;;33600:23:0;::::1;33626:5;33600:23:::0;;;:14:::1;:23;::::0;;;;;:31;;-1:-1:-1;;33600:31:0::1;::::0;;33647:24;::::1;::::0;33626:5;33647:24:::1;33454:225:::0;:::o;34717:268::-;9337:13;:11;:13::i;:::-;12467:19:::1;:17;:19::i;:::-;-1:-1:-1::0;;;;;31750:24:0;::::2;;::::0;;;:14:::2;:24;::::0;;;;;34833:7;;31750:24:::2;;31749:25;31741:73;;;;-1:-1:-1::0;;;31741:73:0::2;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;34861:23:0;::::3;;::::0;;;:14:::3;:23;::::0;;;;;::::3;;34860:24;34852:83;;;::::0;-1:-1:-1;;;34852:83:0;;4506:2:1;34852:83:0::3;::::0;::::3;4488:21:1::0;4545:2;4525:18;;;4518:30;4584:34;4564:18;;;4557:62;-1:-1:-1;;;4635:18:1;;;4628:44;4689:19;;34852:83:0::3;4304:410:1::0;34852:83:0::3;34946:31;34961:7;34970:6;34946:14;:31::i;:::-;12497:1:::2;34717:268:::0;;:::o;32248:61::-;9337:13;:11;:13::i;:::-;32293:8:::1;:6;:8::i;19651:95::-:0;19698:13;19731:7;19724:14;;;;;:::i;21028:182::-;21097:4;7540:10;21153:27;7540:10;21170:2;21174:5;21153:9;:27::i;32998:225::-;9337:13;:11;:13::i;:::-;-1:-1:-1;;;;;33075:23:0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;::::1;;33074:24;33066:70;;;::::0;-1:-1:-1;;;33066:70:0;;4921:2:1;33066:70:0::1;::::0;::::1;4903:21:1::0;4960:2;4940:18;;;4933:30;4999:34;4979:18;;;4972:62;-1:-1:-1;;;5050:18:1;;;5043:31;5091:19;;33066:70:0::1;4719:397:1::0;33066:70:0::1;-1:-1:-1::0;;;;;33147:23:0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;:30;;-1:-1:-1;;33147:30:0::1;33173:4;33147:30;::::0;;33193:22;::::1;::::0;33147:23;33193:22:::1;32998:225:::0;:::o;10384:220::-;9337:13;:11;:13::i;:::-;-1:-1:-1;;;;;10469:22:0;::::1;10465:93;;10515:31;::::0;-1:-1:-1;;;10515:31:0;;10543:1:::1;10515:31;::::0;::::1;2422:51:1::0;2395:18;;10515:31:0::1;2276:203:1::0;10465:93:0::1;10568:28;10587:8;10568:18;:28::i;26561:130::-:0;26646:37;26655:5;26662:7;26671:5;26678:4;26646:8;:37::i;28277:487::-;-1:-1:-1;;;;;21380:18:0;;;28377:24;21380:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;28444:37:0;;28440:317;;28521:5;28502:16;:24;28498:132;;;28554:60;;-1:-1:-1;;;28554:60:0;;-1:-1:-1;;;;;5341:32:1;;28554:60:0;;;5323:51:1;5390:18;;;5383:34;;;5433:18;;;5426:34;;;5296:18;;28554:60:0;5121:345:1;28498:132:0;28673:57;28682:5;28689:7;28717:5;28698:16;:24;28724:5;28673:8;:57::i;:::-;28366:398;28277:487;;;:::o;23136:308::-;-1:-1:-1;;;;;23220:18:0;;23216:88;;23262:30;;-1:-1:-1;;;23262:30:0;;23289:1;23262:30;;;2422:51:1;2395:18;;23262:30:0;2276:203:1;23216:88:0;-1:-1:-1;;;;;23318:16:0;;23314:88;;23358:32;;-1:-1:-1;;;23358:32:0;;23387:1;23358:32;;;2422:51:1;2395:18;;23358:32:0;2276:203:1;23314:88:0;23412:24;23420:4;23426:2;23430:5;23412:7;:24::i;9616:166::-;9524:6;;-1:-1:-1;;;;;9524:6:0;7540:10;9676:23;9672:103;;9723:40;;-1:-1:-1;;;9723:40:0;;7540:10;9723:40;;;2422:51:1;2395:18;;9723:40:0;2276:203:1;13763:120:0;12726:16;:14;:16::i;:::-;13822:7:::1;:15:::0;;-1:-1:-1;;;;13822:15:0::1;::::0;;13853:22:::1;7540:10:::0;13862:12:::1;13853:22;::::0;-1:-1:-1;;;;;2440:32:1;;;2422:51;;2410:2;2395:18;13853:22:0::1;;;;;;;13763:120::o:0;13021:132::-;12933:7;;-1:-1:-1;;;12933:7:0;;;;13083:63;;;13119:15;;-1:-1:-1;;;13119:15:0;;;;;;;;;;;30617:89;30672:26;7540:10;30692:5;30672;:26::i;10764:191::-;10857:6;;;-1:-1:-1;;;;;10874:17:0;;;-1:-1:-1;;;;;;10874:17:0;;;;;;;10907:40;;10857:6;;;10874:17;10857:6;;10907:40;;10838:16;;10907:40;10827:128;10764:191;:::o;31035:161::-;31111:45;31127:7;7540:10;31150:5;31111:15;:45::i;:::-;31167:21;31173:7;31182:5;31167;:21::i;:::-;31035:161;;:::o;13504:118::-;12467:19;:17;:19::i;:::-;13564:7:::1;:14:::0;;-1:-1:-1;;;;13564:14:0::1;-1:-1:-1::0;;;13564:14:0::1;::::0;;13594:20:::1;13601:12;7540:10:::0;;7460:98;27542:443;-1:-1:-1;;;;;27655:19:0;;27651:91;;27698:32;;-1:-1:-1;;;27698:32:0;;27727:1;27698:32;;;2422:51:1;2395:18;;27698:32:0;2276:203:1;27651:91:0;-1:-1:-1;;;;;27756:21:0;;27752:92;;27801:31;;-1:-1:-1;;;27801:31:0;;27829:1;27801:31;;;2422:51:1;2395:18;;27801:31:0;2276:203:1;27752:92:0;-1:-1:-1;;;;;27854:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;27900:78;;;;27951:7;-1:-1:-1;;;;;27935:31:0;27944:5;-1:-1:-1;;;;;27935:31:0;;27960:5;27935:31;;;;1342:25:1;;1330:2;1315:18;;1196:177;27935:31:0;;;;;;;;27542:443;;;;:::o;32596:162::-;-1:-1:-1;;;;;31750:24:0;;;;;;:14;:24;;;;;;32704:4;;31750:24;;31749:25;31741:73;;;;-1:-1:-1;;;31741:73:0;;;;;;;:::i;:::-;32720:30:::1;32734:4;32740:2;32744:5;32720:13;:30::i;13230:130::-:0;12933:7;;-1:-1:-1;;;12933:7:0;;;;13289:64;;13326:15;;-1:-1:-1;;;13326:15:0;;;;;;;;;;;25797:211;-1:-1:-1;;;;;25868:21:0;;25864:91;;25913:30;;-1:-1:-1;;;25913:30:0;;25940:1;25913:30;;;2422:51:1;2395:18;;25913:30:0;2276:203:1;25864:91:0;25965:35;25973:7;25990:1;25994:5;25965:7;:35::i;29868:147::-;12467:19;:17;:19::i;:::-;29977:30:::1;29991:4;29997:2;30001:5;-1:-1:-1::0;;;;;23858:18:0;;23854:552;;24012:5;23996:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;23854:552:0;;-1:-1:-1;23854:552:0;;-1:-1:-1;;;;;24072:15:0;;24050:19;24072:15;;;;;;;;;;;24106:19;;;24102:117;;;24153:50;;-1:-1:-1;;;24153:50:0;;-1:-1:-1;;;;;5341:32:1;;24153:50:0;;;5323:51:1;5390:18;;;5383:34;;;5433:18;;;5426:34;;;5296:18;;24153:50:0;5121:345:1;24102:117:0;-1:-1:-1;;;;;24342:15:0;;:9;:15;;;;;;;;;;24360:19;;;;24342:37;;23854:552;-1:-1:-1;;;;;24422:16:0;;24418:435;;24588:12;:21;;;;;;;24418:435;;;-1:-1:-1;;;;;24804:13:0;;:9;:13;;;;;;;;;;:22;;;;;;24418:435;24885:2;-1:-1:-1;;;;;24870:25:0;24879:4;-1:-1:-1;;;;;24870:25:0;;24889:5;24870:25;;;;1342::1;;1330:2;1315:18;;1196:177;24870:25:0;;;;;;;;23768:1135;;;:::o;14:548:1:-;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:1;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:1:o;1378:328::-;1455:6;1463;1471;1524:2;1512:9;1503:7;1499:23;1495:32;1492:52;;;1540:1;1537;1530:12;1492:52;1563:29;1582:9;1563:29;:::i;:::-;1553:39;;1611:38;1645:2;1634:9;1630:18;1611:38;:::i;:::-;1601:48;;1696:2;1685:9;1681:18;1668:32;1658:42;;1378:328;;;;;:::o;1900:180::-;1959:6;2012:2;2000:9;1991:7;1987:23;1983:32;1980:52;;;2028:1;2025;2018:12;1980:52;-1:-1:-1;2051:23:1;;1900:180;-1:-1:-1;1900:180:1:o;2085:186::-;2144:6;2197:2;2185:9;2176:7;2172:23;2168:32;2165:52;;;2213:1;2210;2203:12;2165:52;2236:29;2255:9;2236:29;:::i;:::-;2226:39;2085:186;-1:-1:-1;;;2085:186:1:o;2484:260::-;2552:6;2560;2613:2;2601:9;2592:7;2588:23;2584:32;2581:52;;;2629:1;2626;2619:12;2581:52;2652:29;2671:9;2652:29;:::i;:::-;2642:39;;2700:38;2734:2;2723:9;2719:18;2700:38;:::i;:::-;2690:48;;2484:260;;;;;:::o;2749:380::-;2828:1;2824:12;;;;2871;;;2892:61;;2946:4;2938:6;2934:17;2924:27;;2892:61;2999:2;2991:6;2988:14;2968:18;2965:38;2962:161;;3045:10;3040:3;3036:20;3033:1;3026:31;3080:4;3077:1;3070:15;3108:4;3105:1;3098:15;2962:161;;2749:380;;;:::o;3900:399::-;4102:2;4084:21;;;4141:2;4121:18;;;4114:30;4180:34;4175:2;4160:18;;4153:62;-1:-1:-1;;;4246:2:1;4231:18;;4224:33;4289:3;4274:19;;3900:399::o;5471:222::-;5536:9;;;5557:10;;;5554:133;;;5609:10;5604:3;5600:20;5597:1;5590:31;5644:4;5641:1;5634:15;5672:4;5669:1;5662:15
Swarm Source
ipfs://62131d4387d11576e2e4f75a92ea5da0a0b50f9bec3f349847f3f52d233b3091
Loading...
Loading
Loading...
Loading

Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
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.