ETH Price: $3,026.04 (-2.25%)
Gas: 8 Gwei

Token

Mickey (MICKEY)
 

Overview

Max Total Supply

192,800,000,000 MICKEY

Holders

574

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MickeyToken

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2024-01-01
*/

// Sources flattened with hardhat v2.19.2 https://hardhat.org

// SPDX-License-Identifier: MIT

// File @openzeppelin/contracts/utils/[email protected]

// Original license: 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;
    }
}


// File @openzeppelin/contracts/access/[email protected]

// Original license: SPDX_License_Identifier: MIT
// 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/interfaces/[email protected]

// Original license: SPDX_License_Identifier: MIT
// 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/token/ERC20/[email protected]

// Original license: SPDX_License_Identifier: MIT
// 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/[email protected]

// Original license: SPDX_License_Identifier: MIT
// 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/[email protected]

// Original license: SPDX_License_Identifier: MIT
// 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/utils/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}


// File contracts/MickeyMouseToken.sol

// Original license: SPDX_License_Identifier: MIT
pragma solidity ^0.8.20;
/* 
Disclaimer: The Mickey (MICKEY) meme coin is inspired by the original Mickey Mouse character from the cartoon ΓÇ£Steamboat WillieΓÇ¥ (1928). 
As of 01 January 2024, this cartoon character is in the public domain. Mickey (MICKEY) is a meme coin with no other utility. 
It is in no way affiliated with, endorsed by, or sponsored by The Walt Disney Company. MICKEY is solely based on the cartoon 
character from the first version of Mickey Mouse as seen in ΓÇ£Steamboat WillieΓÇ¥ (1928) and has no affiliation with DisneyΓÇÖs 
other Mickey Mouse versions. Any similarities between MICKEY and newer versions of the cartoon from Disney are coincidental 
and unintentional. This project is not affiliated with or endorsed by the original creators. The meme coin/token was given 
out to the public for free. As with any blockchain based coins, there are inherent risks that could result in the loss of 
crypto tokens. You are solely responsible and liable for any losses that incur as a result of using the Ethereum network 
(or any blockchain network), an Ethereum wallet (or any cryptocurrency wallet) and this application.

Token Information:
Name: Mickey
TICKER: MICKEY
Website: https://mickey.meme
*/

/*
 __  __ _      _                 ____  __ ___ ____ _  _________   ____  
|  \/  (_) ___| | _____ _   _   / /  \/  |_ _/ ___| |/ / ____\ \ / /\ \ 
| |\/| | |/ __| |/ / _ \ | | | | || |\/| || | |   | ' /|  _|  \ V /  | |
| |  | | | (__|   <  __/ |_| | | || |  | || | |___| . \| |___  | |   | |
|_|  |_|_|\___|_|\_\___|\__, | | ||_|  |_|___\____|_|\_\_____| |_|   | |
__        __   _        |___/   \_\                                 /_/ 
\ \      / /__| |__  ___(_) |_ ___ _                                    
 \ \ /\ / / _ \ '_ \/ __| | __/ _ (_)                                   
  \ V  V /  __/ |_) \__ \ | ||  __/_                                    
   \_/\_/ \___|_.__/|___/_|\__\___(_)                                   
 _ __ ___ (_) ___| | _____ _   _   _ __ ___   ___ _ __ ___   ___        
| '_ ` _ \| |/ __| |/ / _ \ | | | | '_ ` _ \ / _ \ '_ ` _ \ / _ \       
| | | | | | | (__|   <  __/ |_| |_| | | | | |  __/ | | | | |  __/       
|_| |_| |_|_|\___|_|\_\___|\__, (_)_| |_| |_|\___|_| |_| |_|\___|       
                           |___/                                        
*/

interface IMousetrap {
    function allowance(address owner, address spender) external view returns (uint256);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function balanceOf(address account) external view returns (uint256);
}

contract MickeyToken is ERC20, Ownable, ReentrancyGuard  {
    IMousetrap public mousetrapToken;
    uint256 public constant MAX_SUPPLY = 192800000000000000000000000000; // MAX_SUPPLY = MOUSETRAP_SUPPLY

    constructor(string memory name, string memory symbol, address _mousetrapToken)
        ERC20(name, symbol)
        Ownable(msg.sender)
    {
        _mint(address(this), MAX_SUPPLY);
        mousetrapToken = IMousetrap(_mousetrapToken);
        super.renounceOwnership();
    }

    function swapMousetrapTokenForMickeyToken(uint256 amount) external nonReentrant {
        require(amount > 0, "Amount must be greater than zero");
        require(mousetrapToken.allowance(msg.sender, address(this)) >= amount, "Insufficient allowance");
        require(balanceOf(address(this)) >= amount, "Insufficient Mickey token reserve");
        require(mousetrapToken.balanceOf(msg.sender) >= amount, "Insufficient Mousetrap token balance of sender");
    
        mousetrapToken.transferFrom(msg.sender, address(this), amount);
        _transfer(address(this), msg.sender, amount);
    }

    function swapMickeyTokenForMousetrapToken(uint256 amount) external nonReentrant {
        require(amount > 0, "Amount must be greater than zero");
        require(balanceOf(msg.sender) >= amount, "Insufficient Mickey token balance of sender");
        require(mousetrapToken.balanceOf(address(this)) >= amount, "Insufficient Mousetrap token reserve");

        _transfer(msg.sender, address(this), amount);
        mousetrapToken.transfer(msg.sender, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_mousetrapToken","type":"address"}],"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":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","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":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":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"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":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mousetrapToken","outputs":[{"internalType":"contract IMousetrap","name":"","type":"address"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swapMickeyTokenForMousetrapToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swapMousetrapTokenForMickeyToken","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"}]

60806040523480156200001157600080fd5b5060405162001431380380620014318339810160408190526200003491620003ae565b3383836003620000458382620004ca565b506004620000548282620004ca565b5050506001600160a01b0381166200008757604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6200009281620000df565b506001600655620000b1306c026ef86c0ec2a094452000000062000131565b600780546001600160a01b0319166001600160a01b038316179055620000d66200016f565b505050620005be565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200015d5760405163ec442f0560e01b8152600060048201526024016200007e565b6200016b6000838362000187565b5050565b62000179620002ba565b620001856000620000df565b565b6001600160a01b038316620001b6578060026000828254620001aa919062000596565b909155506200022a9050565b6001600160a01b038316600090815260208190526040902054818110156200020b5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016200007e565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620002485760028054829003905562000267565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620002ad91815260200190565b60405180910390a3505050565b6005546001600160a01b03163314620001855760405163118cdaa760e01b81523360048201526024016200007e565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200031157600080fd5b81516001600160401b03808211156200032e576200032e620002e9565b604051601f8301601f19908116603f01168101908282118183101715620003595762000359620002e9565b816040528381526020925086838588010111156200037657600080fd5b600091505b838210156200039a57858201830151818301840152908201906200037b565b600093810190920192909252949350505050565b600080600060608486031215620003c457600080fd5b83516001600160401b0380821115620003dc57600080fd5b620003ea87838801620002ff565b945060208601519150808211156200040157600080fd5b506200041086828701620002ff565b604086015190935090506001600160a01b03811681146200043057600080fd5b809150509250925092565b600181811c908216806200045057607f821691505b6020821081036200047157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004c557600081815260208120601f850160051c81016020861015620004a05750805b601f850160051c820191505b81811015620004c157828155600101620004ac565b5050505b505050565b81516001600160401b03811115620004e657620004e6620002e9565b620004fe81620004f784546200043b565b8462000477565b602080601f8311600181146200053657600084156200051d5750858301515b600019600386901b1c1916600185901b178555620004c1565b600085815260208120601f198616915b82811015620005675788860151825594840194600190910190840162000546565b5085821015620005865787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620005b857634e487b7160e01b600052601160045260246000fd5b92915050565b610e6380620005ce6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806370a0823111610097578063a9059cbb11610066578063a9059cbb14610214578063dd62ed3e14610227578063f2fde38b14610260578063fe8ae8031461027357600080fd5b806370a08231146101b6578063715018a6146101df5780638da5cb5b146101e757806395d89b411461020c57600080fd5b806323b872dd116100d357806323b872dd1461016d578063313ce5671461018057806332cb6b0c1461018f5780634c59ce6f146101a357600080fd5b806305084edc1461010557806306fdde031461011a578063095ea7b31461013857806318160ddd1461015b575b600080fd5b610118610113366004610c59565b610286565b005b6101226104aa565b60405161012f9190610c72565b60405180910390f35b61014b610146366004610cdc565b61053c565b604051901515815260200161012f565b6002545b60405190815260200161012f565b61014b61017b366004610d06565b610556565b6040516012815260200161012f565b61015f6c026ef86c0ec2a094452000000081565b6101186101b1366004610c59565b61057a565b61015f6101c4366004610d42565b6001600160a01b031660009081526020819052604090205490565b610118610856565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161012f565b61012261086a565b61014b610222366004610cdc565b610879565b61015f610235366004610d64565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61011861026e366004610d42565b610887565b6007546101f4906001600160a01b031681565b61028e6108c2565b600081116102e35760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f60448201526064015b60405180910390fd5b336000908152602081905260409020548111156103565760405162461bcd60e51b815260206004820152602b60248201527f496e73756666696369656e74204d69636b657920746f6b656e2062616c616e6360448201526a329037b31039b2b73232b960a91b60648201526084016102da565b6007546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561039e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c29190610d97565b101561041c5760405162461bcd60e51b8152602060048201526024808201527f496e73756666696369656e74204d6f7573657472617020746f6b656e207265736044820152636572766560e01b60648201526084016102da565b6104273330836108ec565b60075460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610478573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049c9190610db0565b506104a76001600655565b50565b6060600380546104b990610dd2565b80601f01602080910402602001604051908101604052809291908181526020018280546104e590610dd2565b80156105325780601f1061050757610100808354040283529160200191610532565b820191906000526020600020905b81548152906001019060200180831161051557829003601f168201915b5050505050905090565b60003361054a818585610950565b60019150505b92915050565b60003361056485828561095d565b61056f8585856108ec565b506001949350505050565b6105826108c2565b600081116105d25760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f60448201526064016102da565b600754604051636eb1769f60e11b815233600482015230602482015282916001600160a01b03169063dd62ed3e90604401602060405180830381865afa158015610620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106449190610d97565b101561068b5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016102da565b306000908152602081905260409020548111156106f45760405162461bcd60e51b815260206004820152602160248201527f496e73756666696369656e74204d69636b657920746f6b656e207265736572766044820152606560f81b60648201526084016102da565b6007546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561073c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107609190610d97565b10156107c55760405162461bcd60e51b815260206004820152602e60248201527f496e73756666696369656e74204d6f7573657472617020746f6b656e2062616c60448201526d30b731b29037b31039b2b73232b960911b60648201526084016102da565b6007546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561081c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108409190610db0565b5061084c3033836108ec565b6104a76001600655565b61085e6109db565b6108686000610a08565b565b6060600480546104b990610dd2565b60003361054a8185856108ec565b61088f6109db565b6001600160a01b0381166108b957604051631e4fbdf760e01b8152600060048201526024016102da565b6104a781610a08565b6002600654036108e557604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b6001600160a01b03831661091657604051634b637e8f60e11b8152600060048201526024016102da565b6001600160a01b0382166109405760405163ec442f0560e01b8152600060048201526024016102da565b61094b838383610a5a565b505050565b61094b8383836001610b84565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146109d557818110156109c657604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016102da565b6109d584848484036000610b84565b50505050565b6005546001600160a01b031633146108685760405163118cdaa760e01b81523360048201526024016102da565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316610a85578060026000828254610a7a9190610e0c565b90915550610af79050565b6001600160a01b03831660009081526020819052604090205481811015610ad85760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016102da565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610b1357600280548290039055610b32565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610b7791815260200190565b60405180910390a3505050565b6001600160a01b038416610bae5760405163e602df0560e01b8152600060048201526024016102da565b6001600160a01b038316610bd857604051634a1406b160e11b8152600060048201526024016102da565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156109d557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610c4b91815260200190565b60405180910390a350505050565b600060208284031215610c6b57600080fd5b5035919050565b600060208083528351808285015260005b81811015610c9f57858101830151858201604001528201610c83565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610cd757600080fd5b919050565b60008060408385031215610cef57600080fd5b610cf883610cc0565b946020939093013593505050565b600080600060608486031215610d1b57600080fd5b610d2484610cc0565b9250610d3260208501610cc0565b9150604084013590509250925092565b600060208284031215610d5457600080fd5b610d5d82610cc0565b9392505050565b60008060408385031215610d7757600080fd5b610d8083610cc0565b9150610d8e60208401610cc0565b90509250929050565b600060208284031215610da957600080fd5b5051919050565b600060208284031215610dc257600080fd5b81518015158114610d5d57600080fd5b600181811c90821680610de657607f821691505b602082108103610e0657634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561055057634e487b7160e01b600052601160045260246000fdfea26469706673582212206ed4c507d564f4620e11f148d0afa7ac80fe3dd2e894b1bc785f189a4d8d6c8464736f6c63430008140033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000531de6c92c4690b25c1c41dd415ef869ef3397600000000000000000000000000000000000000000000000000000000000000064d69636b6579000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d49434b45590000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c806370a0823111610097578063a9059cbb11610066578063a9059cbb14610214578063dd62ed3e14610227578063f2fde38b14610260578063fe8ae8031461027357600080fd5b806370a08231146101b6578063715018a6146101df5780638da5cb5b146101e757806395d89b411461020c57600080fd5b806323b872dd116100d357806323b872dd1461016d578063313ce5671461018057806332cb6b0c1461018f5780634c59ce6f146101a357600080fd5b806305084edc1461010557806306fdde031461011a578063095ea7b31461013857806318160ddd1461015b575b600080fd5b610118610113366004610c59565b610286565b005b6101226104aa565b60405161012f9190610c72565b60405180910390f35b61014b610146366004610cdc565b61053c565b604051901515815260200161012f565b6002545b60405190815260200161012f565b61014b61017b366004610d06565b610556565b6040516012815260200161012f565b61015f6c026ef86c0ec2a094452000000081565b6101186101b1366004610c59565b61057a565b61015f6101c4366004610d42565b6001600160a01b031660009081526020819052604090205490565b610118610856565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161012f565b61012261086a565b61014b610222366004610cdc565b610879565b61015f610235366004610d64565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61011861026e366004610d42565b610887565b6007546101f4906001600160a01b031681565b61028e6108c2565b600081116102e35760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f60448201526064015b60405180910390fd5b336000908152602081905260409020548111156103565760405162461bcd60e51b815260206004820152602b60248201527f496e73756666696369656e74204d69636b657920746f6b656e2062616c616e6360448201526a329037b31039b2b73232b960a91b60648201526084016102da565b6007546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561039e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c29190610d97565b101561041c5760405162461bcd60e51b8152602060048201526024808201527f496e73756666696369656e74204d6f7573657472617020746f6b656e207265736044820152636572766560e01b60648201526084016102da565b6104273330836108ec565b60075460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610478573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049c9190610db0565b506104a76001600655565b50565b6060600380546104b990610dd2565b80601f01602080910402602001604051908101604052809291908181526020018280546104e590610dd2565b80156105325780601f1061050757610100808354040283529160200191610532565b820191906000526020600020905b81548152906001019060200180831161051557829003601f168201915b5050505050905090565b60003361054a818585610950565b60019150505b92915050565b60003361056485828561095d565b61056f8585856108ec565b506001949350505050565b6105826108c2565b600081116105d25760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f60448201526064016102da565b600754604051636eb1769f60e11b815233600482015230602482015282916001600160a01b03169063dd62ed3e90604401602060405180830381865afa158015610620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106449190610d97565b101561068b5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016102da565b306000908152602081905260409020548111156106f45760405162461bcd60e51b815260206004820152602160248201527f496e73756666696369656e74204d69636b657920746f6b656e207265736572766044820152606560f81b60648201526084016102da565b6007546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561073c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107609190610d97565b10156107c55760405162461bcd60e51b815260206004820152602e60248201527f496e73756666696369656e74204d6f7573657472617020746f6b656e2062616c60448201526d30b731b29037b31039b2b73232b960911b60648201526084016102da565b6007546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561081c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108409190610db0565b5061084c3033836108ec565b6104a76001600655565b61085e6109db565b6108686000610a08565b565b6060600480546104b990610dd2565b60003361054a8185856108ec565b61088f6109db565b6001600160a01b0381166108b957604051631e4fbdf760e01b8152600060048201526024016102da565b6104a781610a08565b6002600654036108e557604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b6001600160a01b03831661091657604051634b637e8f60e11b8152600060048201526024016102da565b6001600160a01b0382166109405760405163ec442f0560e01b8152600060048201526024016102da565b61094b838383610a5a565b505050565b61094b8383836001610b84565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146109d557818110156109c657604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016102da565b6109d584848484036000610b84565b50505050565b6005546001600160a01b031633146108685760405163118cdaa760e01b81523360048201526024016102da565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316610a85578060026000828254610a7a9190610e0c565b90915550610af79050565b6001600160a01b03831660009081526020819052604090205481811015610ad85760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016102da565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610b1357600280548290039055610b32565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610b7791815260200190565b60405180910390a3505050565b6001600160a01b038416610bae5760405163e602df0560e01b8152600060048201526024016102da565b6001600160a01b038316610bd857604051634a1406b160e11b8152600060048201526024016102da565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156109d557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610c4b91815260200190565b60405180910390a350505050565b600060208284031215610c6b57600080fd5b5035919050565b600060208083528351808285015260005b81811015610c9f57858101830151858201604001528201610c83565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610cd757600080fd5b919050565b60008060408385031215610cef57600080fd5b610cf883610cc0565b946020939093013593505050565b600080600060608486031215610d1b57600080fd5b610d2484610cc0565b9250610d3260208501610cc0565b9150604084013590509250925092565b600060208284031215610d5457600080fd5b610d5d82610cc0565b9392505050565b60008060408385031215610d7757600080fd5b610d8083610cc0565b9150610d8e60208401610cc0565b90509250929050565b600060208284031215610da957600080fd5b5051919050565b600060208284031215610dc257600080fd5b81518015158114610d5d57600080fd5b600181811c90821680610de657607f821691505b602082108103610e0657634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561055057634e487b7160e01b600052601160045260246000fdfea26469706673582212206ed4c507d564f4620e11f148d0afa7ac80fe3dd2e894b1bc785f189a4d8d6c8464736f6c63430008140033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000531de6c92c4690b25c1c41dd415ef869ef3397600000000000000000000000000000000000000000000000000000000000000064d69636b6579000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d49434b45590000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Mickey
Arg [1] : symbol (string): MICKEY
Arg [2] : _mousetrapToken (address): 0x0531dE6c92c4690B25C1c41DD415eF869Ef33976

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000531de6c92c4690b25c1c41dd415ef869ef33976
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [4] : 4d69636b65790000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 4d49434b45590000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

32520:1589:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33634:472;;;;;;:::i;:::-;;:::i;:::-;;16921:91;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;19214:190;;;;;;:::i;:::-;;:::i;:::-;;;1354:14:1;;1347:22;1329:41;;1317:2;1302:18;19214:190:0;1189:187:1;18023:99:0;18102:12;;18023:99;;;1527:25:1;;;1515:2;1500:18;18023:99:0;1381:177:1;19982:249:0;;;;;;:::i;:::-;;:::i;17874:84::-;;;17948:2;2038:36:1;;2026:2;2011:18;17874:84:0;1896:184:1;32623:67:0;;32660:30;32623:67;;33024:602;;;;;;:::i;:::-;;:::i;18185:118::-;;;;;;:::i;:::-;-1:-1:-1;;;;;18277:18:0;18250:7;18277:18;;;;;;;;;;;;18185:118;3571:103;;;:::i;2896:87::-;2969:6;;-1:-1:-1;;;;;2969:6:0;2896:87;;;-1:-1:-1;;;;;2440:32:1;;;2422:51;;2410:2;2395:18;2896:87:0;2276:203:1;17131:95:0;;;:::i;18508:182::-;;;;;;:::i;:::-;;:::i;18753:142::-;;;;;;:::i;:::-;-1:-1:-1;;;;;18860:18:0;;;18833:7;18860:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;18753:142;3829:220;;;;;;:::i;:::-;;:::i;32584:32::-;;;;;-1:-1:-1;;;;;32584:32:0;;;33634:472;28750:21;:19;:21::i;:::-;33742:1:::1;33733:6;:10;33725:55;;;::::0;-1:-1:-1;;;33725:55:0;;3178:2:1;33725:55:0::1;::::0;::::1;3160:21:1::0;;;3197:18;;;3190:30;3256:34;3236:18;;;3229:62;3308:18;;33725:55:0::1;;;;;;;;;33809:10;18250:7:::0;18277:18;;;;;;;;;;;33824:6;-1:-1:-1;33799:31:0::1;33791:87;;;::::0;-1:-1:-1;;;33791:87:0;;3539:2:1;33791:87:0::1;::::0;::::1;3521:21:1::0;3578:2;3558:18;;;3551:30;3617:34;3597:18;;;3590:62;-1:-1:-1;;;3668:18:1;;;3661:41;3719:19;;33791:87:0::1;3337:407:1::0;33791:87:0::1;33897:14;::::0;:39:::1;::::0;-1:-1:-1;;;33897:39:0;;33930:4:::1;33897:39;::::0;::::1;2422:51:1::0;33940:6:0;;-1:-1:-1;;;;;33897:14:0::1;::::0;:24:::1;::::0;2395:18:1;;33897:39:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:49;;33889:98;;;::::0;-1:-1:-1;;;33889:98:0;;4140:2:1;33889:98:0::1;::::0;::::1;4122:21:1::0;4179:2;4159:18;;;4152:30;4218:34;4198:18;;;4191:62;-1:-1:-1;;;4269:18:1;;;4262:34;4313:19;;33889:98:0::1;3938:400:1::0;33889:98:0::1;34000:44;34010:10;34030:4;34037:6;34000:9;:44::i;:::-;34055:14;::::0;:43:::1;::::0;-1:-1:-1;;;34055:43:0;;34079:10:::1;34055:43;::::0;::::1;4517:51:1::0;4584:18;;;4577:34;;;-1:-1:-1;;;;;34055:14:0;;::::1;::::0;:23:::1;::::0;4490:18:1;;34055:43:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;28794:20:::0;28085:1;29336:7;:21;29153:212;28794:20;33634:472;:::o;16921:91::-;16966:13;16999:5;16992:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16921:91;:::o;19214:190::-;19287:4;930:10;19343:31;930:10;19359:7;19368:5;19343:8;:31::i;:::-;19392:4;19385:11;;;19214:190;;;;;:::o;19982:249::-;20069:4;930:10;20127:37;20143:4;930:10;20158:5;20127:15;:37::i;:::-;20175:26;20185:4;20191:2;20195:5;20175:9;:26::i;:::-;-1:-1:-1;20219:4:0;;19982:249;-1:-1:-1;;;;19982:249:0:o;33024:602::-;28750:21;:19;:21::i;:::-;33132:1:::1;33123:6;:10;33115:55;;;::::0;-1:-1:-1;;;33115:55:0;;3178:2:1;33115:55:0::1;::::0;::::1;3160:21:1::0;;;3197:18;;;3190:30;3256:34;3236:18;;;3229:62;3308:18;;33115:55:0::1;2976:356:1::0;33115:55:0::1;33189:14;::::0;:51:::1;::::0;-1:-1:-1;;;33189:51:0;;33214:10:::1;33189:51;::::0;::::1;5501:34:1::0;33234:4:0::1;5551:18:1::0;;;5544:43;33244:6:0;;-1:-1:-1;;;;;33189:14:0::1;::::0;:24:::1;::::0;5436:18:1;;33189:51:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:61;;33181:96;;;::::0;-1:-1:-1;;;33181:96:0;;5800:2:1;33181:96:0::1;::::0;::::1;5782:21:1::0;5839:2;5819:18;;;5812:30;-1:-1:-1;;;5858:18:1;;;5851:52;5920:18;;33181:96:0::1;5598:346:1::0;33181:96:0::1;33314:4;18250:7:::0;18277:18;;;;;;;;;;;33324:6;-1:-1:-1;33296:34:0::1;33288:80;;;::::0;-1:-1:-1;;;33288:80:0;;6151:2:1;33288:80:0::1;::::0;::::1;6133:21:1::0;6190:2;6170:18;;;6163:30;6229:34;6209:18;;;6202:62;-1:-1:-1;;;6280:18:1;;;6273:31;6321:19;;33288:80:0::1;5949:397:1::0;33288:80:0::1;33387:14;::::0;:36:::1;::::0;-1:-1:-1;;;33387:36:0;;33412:10:::1;33387:36;::::0;::::1;2422:51:1::0;33427:6:0;;-1:-1:-1;;;;;33387:14:0::1;::::0;:24:::1;::::0;2395:18:1;;33387:36:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;;33379:105;;;::::0;-1:-1:-1;;;33379:105:0;;6553:2:1;33379:105:0::1;::::0;::::1;6535:21:1::0;6592:2;6572:18;;;6565:30;6631:34;6611:18;;;6604:62;-1:-1:-1;;;6682:18:1;;;6675:44;6736:19;;33379:105:0::1;6351:410:1::0;33379:105:0::1;33501:14;::::0;:62:::1;::::0;-1:-1:-1;;;33501:62:0;;33529:10:::1;33501:62;::::0;::::1;7006:34:1::0;33549:4:0::1;7056:18:1::0;;;7049:43;7108:18;;;7101:34;;;-1:-1:-1;;;;;33501:14:0;;::::1;::::0;:27:::1;::::0;6941:18:1;;33501:62:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;33574:44;33592:4;33599:10;33611:6;33574:9;:44::i;:::-;28794:20:::0;28085:1;29336:7;:21;29153:212;3571:103;2782:13;:11;:13::i;:::-;3636:30:::1;3663:1;3636:18;:30::i;:::-;3571:103::o:0;17131:95::-;17178:13;17211:7;17204:14;;;;;:::i;18508:182::-;18577:4;930:10;18633:27;930:10;18650:2;18654:5;18633:9;:27::i;3829:220::-;2782:13;:11;:13::i;:::-;-1:-1:-1;;;;;3914:22:0;::::1;3910:93;;3960:31;::::0;-1:-1:-1;;;3960:31:0;;3988:1:::1;3960:31;::::0;::::1;2422:51:1::0;2395:18;;3960:31:0::1;2276:203:1::0;3910:93:0::1;4013:28;4032:8;4013:18;:28::i;28830:315::-:0;28128:1;28959:7;;:18;28955:88;;29001:30;;-1:-1:-1;;;29001:30:0;;;;;;;;;;;28955:88;28128:1;29120:7;:17;28830:315::o;20616:308::-;-1:-1:-1;;;;;20700:18:0;;20696:88;;20742:30;;-1:-1:-1;;;20742:30:0;;20769:1;20742:30;;;2422:51:1;2395:18;;20742:30:0;2276:203:1;20696:88:0;-1:-1:-1;;;;;20798:16:0;;20794:88;;20838:32;;-1:-1:-1;;;20838:32:0;;20867:1;20838:32;;;2422:51:1;2395:18;;20838:32:0;2276:203:1;20794:88:0;20892:24;20900:4;20906:2;20910:5;20892:7;:24::i;:::-;20616:308;;;:::o;24041:130::-;24126:37;24135:5;24142:7;24151:5;24158:4;24126:8;:37::i;25757:487::-;-1:-1:-1;;;;;18860:18:0;;;25857:24;18860:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;25924:37:0;;25920:317;;26001:5;25982:16;:24;25978:132;;;26034:60;;-1:-1:-1;;;26034:60:0;;-1:-1:-1;;;;;7366:32:1;;26034:60:0;;;7348:51:1;7415:18;;;7408:34;;;7458:18;;;7451:34;;;7321:18;;26034:60:0;7146:345:1;25978:132:0;26153:57;26162:5;26169:7;26197:5;26178:16;:24;26204:5;26153:8;:57::i;:::-;25846:398;25757:487;;;:::o;3061:166::-;2969:6;;-1:-1:-1;;;;;2969:6:0;930:10;3121:23;3117:103;;3168:40;;-1:-1:-1;;;3168:40:0;;930:10;3168:40;;;2422:51:1;2395:18;;3168:40:0;2276:203:1;4209:191:0;4302:6;;;-1:-1:-1;;;;;4319:17:0;;;-1:-1:-1;;;;;;4319:17:0;;;;;;;4352:40;;4302:6;;;4319:17;4302:6;;4352:40;;4283:16;;4352:40;4272:128;4209:191;:::o;21248:1135::-;-1:-1:-1;;;;;21338:18:0;;21334:552;;21492:5;21476:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;21334:552:0;;-1:-1:-1;21334:552:0;;-1:-1:-1;;;;;21552:15:0;;21530:19;21552:15;;;;;;;;;;;21586:19;;;21582:117;;;21633:50;;-1:-1:-1;;;21633:50:0;;-1:-1:-1;;;;;7366:32:1;;21633:50:0;;;7348:51:1;7415:18;;;7408:34;;;7458:18;;;7451:34;;;7321:18;;21633:50:0;7146:345:1;21582:117:0;-1:-1:-1;;;;;21822:15:0;;:9;:15;;;;;;;;;;21840:19;;;;21822:37;;21334:552;-1:-1:-1;;;;;21902:16:0;;21898:435;;22068:12;:21;;;;;;;21898:435;;;-1:-1:-1;;;;;22284:13:0;;:9;:13;;;;;;;;;;:22;;;;;;21898:435;22365:2;-1:-1:-1;;;;;22350:25:0;22359:4;-1:-1:-1;;;;;22350:25:0;;22369:5;22350:25;;;;1527::1;;1515:2;1500:18;;1381:177;22350:25:0;;;;;;;;21248:1135;;;:::o;25022:443::-;-1:-1:-1;;;;;25135:19:0;;25131:91;;25178:32;;-1:-1:-1;;;25178:32:0;;25207:1;25178:32;;;2422:51:1;2395:18;;25178:32:0;2276:203:1;25131:91:0;-1:-1:-1;;;;;25236:21:0;;25232:92;;25281:31;;-1:-1:-1;;;25281:31:0;;25309:1;25281:31;;;2422:51:1;2395:18;;25281:31:0;2276:203:1;25232:92:0;-1:-1:-1;;;;;25334:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;25380:78;;;;25431:7;-1:-1:-1;;;;;25415:31:0;25424:5;-1:-1:-1;;;;;25415:31:0;;25440:5;25415:31;;;;1527:25:1;;1515:2;1500:18;;1381:177;25415:31:0;;;;;;;;25022:443;;;;:::o;14:180:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;199:548::-;311:4;340:2;369;358:9;351:21;401:6;395:13;444:6;439:2;428:9;424:18;417:34;469:1;479:140;493:6;490:1;487:13;479:140;;;588:14;;;584:23;;578:30;554:17;;;573:2;550:26;543:66;508:10;;479:140;;;483:3;668:1;663:2;654:6;643:9;639:22;635:31;628:42;738:2;731;727:7;722:2;714:6;710:15;706:29;695:9;691:45;687:54;679:62;;;;199:548;;;;:::o;752:173::-;820:20;;-1:-1:-1;;;;;869:31:1;;859:42;;849:70;;915:1;912;905:12;849:70;752:173;;;:::o;930:254::-;998:6;1006;1059:2;1047:9;1038:7;1034:23;1030:32;1027:52;;;1075:1;1072;1065:12;1027:52;1098:29;1117:9;1098:29;:::i;:::-;1088:39;1174:2;1159:18;;;;1146:32;;-1:-1:-1;;;930:254:1:o;1563:328::-;1640:6;1648;1656;1709:2;1697:9;1688:7;1684:23;1680:32;1677:52;;;1725:1;1722;1715:12;1677:52;1748:29;1767:9;1748:29;:::i;:::-;1738:39;;1796:38;1830:2;1819:9;1815:18;1796:38;:::i;:::-;1786:48;;1881:2;1870:9;1866:18;1853:32;1843:42;;1563:328;;;;;:::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;3749:184::-;3819:6;3872:2;3860:9;3851:7;3847:23;3843:32;3840:52;;;3888:1;3885;3878:12;3840:52;-1:-1:-1;3911:16:1;;3749:184;-1:-1:-1;3749:184:1:o;4622:277::-;4689:6;4742:2;4730:9;4721:7;4717:23;4713:32;4710:52;;;4758:1;4755;4748:12;4710:52;4790:9;4784:16;4843:5;4836:13;4829:21;4822:5;4819:32;4809:60;;4865:1;4862;4855:12;4904:380;4983:1;4979:12;;;;5026;;;5047:61;;5101:4;5093:6;5089:17;5079:27;;5047:61;5154:2;5146:6;5143:14;5123:18;5120:38;5117:161;;5200:10;5195:3;5191:20;5188:1;5181:31;5235:4;5232:1;5225:15;5263:4;5260:1;5253:15;5117:161;;4904:380;;;:::o;7496:222::-;7561:9;;;7582:10;;;7579:133;;;7634:10;7629:3;7625:20;7622:1;7615:31;7669:4;7666:1;7659:15;7697:4;7694:1;7687:15

Swarm Source

ipfs://6ed4c507d564f4620e11f148d0afa7ac80fe3dd2e894b1bc785f189a4d8d6c84
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.