ETH Price: $2,936.27 (-0.39%)

Token

Get Margin Token (GMT)

Overview

Max Total Supply

7,000,000 GMT

Holders

371

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
150 GMT

Value
$0.00
0xe43ffbc38c6db9d06fd91d6360aacb33b732bdb0
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
GetMarginToken

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan.io on 2024-12-08
*/

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;


/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// 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/interfaces/draft-IERC6093.sol


// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC-20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC-1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v5.1.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 ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

    mapping(address account => mapping(address spender => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Skips emitting an {Approval} event indicating an allowance update. This is not
     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

// 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/introspection/IERC165.sol


// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;


/**
 * @dev Required interface of an ERC-721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC-721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
     *   {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

// File: contracts/gmt.sol


pragma solidity ^0.8.0;




contract GetMarginToken is ERC20, Ownable {

    uint256 private constant INITIAL_SUPPLY = 7_000_000 * 10**18;

    uint256 public communityAirdropSupply = 1_500_000 * 10**18;
    uint256 public dailyClaimsSupply = 4_000_000 * 10**18;


    IERC721 public nftContract;


    uint256 public tokensPerNFT = 10 * 10**18; 
    mapping(address => uint256) public lastClaim;

    constructor(address _nftContract, address initialOwner) 
        ERC20("Get Margin Token", "GMT") 
        Ownable(initialOwner) 
    {
        require(_nftContract != address(0), "Invalid NFT contract address");
        nftContract = IERC721(_nftContract);

       
        _mint(address(this), INITIAL_SUPPLY);
    }


    function distributeTokens(address recipient, uint256 amount) external onlyOwner {
        require(communityAirdropSupply >= amount, "Exceeds airdrop supply");
        communityAirdropSupply -= amount;
        _transfer(address(this), recipient, amount);
    }


    function claimTokens(uint256 nftCount) external {
        require(block.timestamp > lastClaim[msg.sender] + 1 days, "Claim once per day");
        require(nftCount > 0, "Must own at least one NFT");
        require(nftContract.balanceOf(msg.sender) >= nftCount, "Invalid NFT count");

        uint256 claimAmount = nftCount * tokensPerNFT;
        require(dailyClaimsSupply >= claimAmount, "Exceeds daily claim supply");

        dailyClaimsSupply -= claimAmount;
        lastClaim[msg.sender] = block.timestamp;
        _transfer(address(this), msg.sender, claimAmount);
    }


    function burn(uint256 amount) external {
        _burn(msg.sender, amount);
    }

    
    function setNFTContract(address _nftContract) external onlyOwner {
        require(_nftContract != address(0), "Invalid NFT contract address");
        nftContract = IERC721(_nftContract);
    }

    function setTokensPerNFT(uint256 _tokensPerNFT) external onlyOwner {
        tokensPerNFT = _tokensPerNFT;
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"address","name":"initialOwner","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"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":"uint256","name":"nftCount","type":"uint256"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communityAirdropSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dailyClaimsSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"distributeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftContract","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"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":"address","name":"_nftContract","type":"address"}],"name":"setNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokensPerNFT","type":"uint256"}],"name":"setTokensPerNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensPerNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]

60806040526a013da329b63364718000006006556a034f086f3b33b684000000600755678ac7230489e80000600955348015610039575f80fd5b506040516111e13803806111e18339810160408190526100589161034c565b806040518060400160405280601081526020016f23b2ba1026b0b933b4b7102a37b5b2b760811b8152506040518060400160405280600381526020016211d35560ea1b81525081600390816100ad9190610415565b5060046100ba8282610415565b5050506001600160a01b0381166100eb57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6100f481610182565b506001600160a01b03821661014b5760405162461bcd60e51b815260206004820152601c60248201527f496e76616c6964204e465420636f6e747261637420616464726573730000000060448201526064016100e2565b600880546001600160a01b0319166001600160a01b03841617905561017b306a05ca4ec2a79a7f670000006101d3565b50506104f4565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166101fc5760405163ec442f0560e01b81525f60048201526024016100e2565b6102075f838361020b565b5050565b6001600160a01b038316610235578060025f82825461022a91906104cf565b909155506102a59050565b6001600160a01b0383165f90815260208190526040902054818110156102875760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100e2565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166102c1576002805482900390556102df565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161032491815260200190565b60405180910390a3505050565b80516001600160a01b0381168114610347575f80fd5b919050565b5f806040838503121561035d575f80fd5b61036683610331565b915061037460208401610331565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806103a557607f821691505b6020821081036103c357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561041057805f5260205f20601f840160051c810160208510156103ee5750805b601f840160051c820191505b8181101561040d575f81556001016103fa565b50505b505050565b81516001600160401b0381111561042e5761042e61037d565b6104428161043c8454610391565b846103c9565b6020601f821160018114610474575f831561045d5750848201515b5f19600385901b1c1916600184901b17845561040d565b5f84815260208120601f198516915b828110156104a35787850151825560209485019460019092019101610483565b50848210156104c057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b808201808211156104ee57634e487b7160e01b5f52601160045260245ffd5b92915050565b610ce0806105015f395ff3fe608060405234801561000f575f80fd5b506004361061013d575f3560e01c8063715018a6116100b4578063d536a29711610079578063d536a2971461029c578063d56d229d146102af578063dd62ed3e146102c2578063e937ba0a146102fa578063f2fde38b14610303578063fca59e5b14610316575f80fd5b8063715018a6146102415780638da5cb5b1461024957806395d89b411461026e578063a7ccabdf14610276578063a9059cbb14610289575f80fd5b8063313ce56711610105578063313ce567146101bc57806342966c68146101cb57806346e04a2f146101de5780635afcc2f5146101f15780635c16e15e146101fa57806370a0823114610219575f80fd5b806306fdde0314610141578063095ea7b31461015f578063158a49881461018257806318160ddd1461019757806323b872dd146101a9575b5f80fd5b61014961031f565b6040516101569190610af0565b60405180910390f35b61017261016d366004610b40565b6103af565b6040519015158152602001610156565b610195610190366004610b40565b6103c8565b005b6002545b604051908152602001610156565b6101726101b7366004610b68565b610446565b60405160128152602001610156565b6101956101d9366004610ba2565b610469565b6101956101ec366004610ba2565b610476565b61019b60095481565b61019b610208366004610bb9565b600a6020525f908152604090205481565b61019b610227366004610bb9565b6001600160a01b03165f9081526020819052604090205490565b610195610666565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610156565b610149610679565b610195610284366004610bb9565b610688565b610172610297366004610b40565b610708565b6101956102aa366004610ba2565b610715565b600854610256906001600160a01b031681565b61019b6102d0366004610bd9565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61019b60075481565b610195610311366004610bb9565b610722565b61019b60065481565b60606003805461032e90610c0a565b80601f016020809104026020016040519081016040528092919081815260200182805461035a90610c0a565b80156103a55780601f1061037c576101008083540402835291602001916103a5565b820191905f5260205f20905b81548152906001019060200180831161038857829003601f168201915b5050505050905090565b5f336103bc81858561075c565b60019150505b92915050565b6103d061076e565b8060065410156104205760405162461bcd60e51b8152602060048201526016602482015275457863656564732061697264726f7020737570706c7960501b60448201526064015b60405180910390fd5b8060065f8282546104319190610c56565b90915550610442905030838361079b565b5050565b5f336104538582856107f8565b61045e85858561079b565b506001949350505050565b6104733382610873565b50565b335f908152600a60205260409020546104929062015180610c69565b42116104d55760405162461bcd60e51b8152602060048201526012602482015271436c61696d206f6e6365207065722064617960701b6044820152606401610417565b5f81116105245760405162461bcd60e51b815260206004820152601960248201527f4d757374206f776e206174206c65617374206f6e65204e4654000000000000006044820152606401610417565b6008546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561056a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061058e9190610c7c565b10156105d05760405162461bcd60e51b8152602060048201526011602482015270125b9d985b1a59081391950818dbdd5b9d607a1b6044820152606401610417565b5f600954826105df9190610c93565b90508060075410156106335760405162461bcd60e51b815260206004820152601a60248201527f45786365656473206461696c7920636c61696d20737570706c790000000000006044820152606401610417565b8060075f8282546106449190610c56565b9091555050335f818152600a602052604090204290556104429030908361079b565b61066e61076e565b6106775f6108a7565b565b60606004805461032e90610c0a565b61069061076e565b6001600160a01b0381166106e65760405162461bcd60e51b815260206004820152601c60248201527f496e76616c6964204e465420636f6e74726163742061646472657373000000006044820152606401610417565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b5f336103bc81858561079b565b61071d61076e565b600955565b61072a61076e565b6001600160a01b03811661075357604051631e4fbdf760e01b81525f6004820152602401610417565b610473816108a7565b61076983838360016108f8565b505050565b6005546001600160a01b031633146106775760405163118cdaa760e01b8152336004820152602401610417565b6001600160a01b0383166107c457604051634b637e8f60e11b81525f6004820152602401610417565b6001600160a01b0382166107ed5760405163ec442f0560e01b81525f6004820152602401610417565b6107698383836109ca565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811461086d578181101561085f57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610417565b61086d84848484035f6108f8565b50505050565b6001600160a01b03821661089c57604051634b637e8f60e11b81525f6004820152602401610417565b610442825f836109ca565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0384166109215760405163e602df0560e01b81525f6004820152602401610417565b6001600160a01b03831661094a57604051634a1406b160e11b81525f6004820152602401610417565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561086d57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516109bc91815260200190565b60405180910390a350505050565b6001600160a01b0383166109f4578060025f8282546109e99190610c69565b90915550610a649050565b6001600160a01b0383165f9081526020819052604090205481811015610a465760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610417565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610a8057600280548290039055610a9e565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610ae391815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610b3b575f80fd5b919050565b5f8060408385031215610b51575f80fd5b610b5a83610b25565b946020939093013593505050565b5f805f60608486031215610b7a575f80fd5b610b8384610b25565b9250610b9160208501610b25565b929592945050506040919091013590565b5f60208284031215610bb2575f80fd5b5035919050565b5f60208284031215610bc9575f80fd5b610bd282610b25565b9392505050565b5f8060408385031215610bea575f80fd5b610bf383610b25565b9150610c0160208401610b25565b90509250929050565b600181811c90821680610c1e57607f821691505b602082108103610c3c57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156103c2576103c2610c42565b808201808211156103c2576103c2610c42565b5f60208284031215610c8c575f80fd5b5051919050565b80820281158282048414176103c2576103c2610c4256fea26469706673582212208ba400aebdbc5d92af1ffd8785ade14e461b32bbbe9739576c562fffcff5b4b764736f6c634300081a0033000000000000000000000000c620dbeed40d0b4ada0146bc016de209fe4828ea00000000000000000000000061e2932a4e62fc2bed1f69f29b21122b6d11e3f4

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061013d575f3560e01c8063715018a6116100b4578063d536a29711610079578063d536a2971461029c578063d56d229d146102af578063dd62ed3e146102c2578063e937ba0a146102fa578063f2fde38b14610303578063fca59e5b14610316575f80fd5b8063715018a6146102415780638da5cb5b1461024957806395d89b411461026e578063a7ccabdf14610276578063a9059cbb14610289575f80fd5b8063313ce56711610105578063313ce567146101bc57806342966c68146101cb57806346e04a2f146101de5780635afcc2f5146101f15780635c16e15e146101fa57806370a0823114610219575f80fd5b806306fdde0314610141578063095ea7b31461015f578063158a49881461018257806318160ddd1461019757806323b872dd146101a9575b5f80fd5b61014961031f565b6040516101569190610af0565b60405180910390f35b61017261016d366004610b40565b6103af565b6040519015158152602001610156565b610195610190366004610b40565b6103c8565b005b6002545b604051908152602001610156565b6101726101b7366004610b68565b610446565b60405160128152602001610156565b6101956101d9366004610ba2565b610469565b6101956101ec366004610ba2565b610476565b61019b60095481565b61019b610208366004610bb9565b600a6020525f908152604090205481565b61019b610227366004610bb9565b6001600160a01b03165f9081526020819052604090205490565b610195610666565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610156565b610149610679565b610195610284366004610bb9565b610688565b610172610297366004610b40565b610708565b6101956102aa366004610ba2565b610715565b600854610256906001600160a01b031681565b61019b6102d0366004610bd9565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61019b60075481565b610195610311366004610bb9565b610722565b61019b60065481565b60606003805461032e90610c0a565b80601f016020809104026020016040519081016040528092919081815260200182805461035a90610c0a565b80156103a55780601f1061037c576101008083540402835291602001916103a5565b820191905f5260205f20905b81548152906001019060200180831161038857829003601f168201915b5050505050905090565b5f336103bc81858561075c565b60019150505b92915050565b6103d061076e565b8060065410156104205760405162461bcd60e51b8152602060048201526016602482015275457863656564732061697264726f7020737570706c7960501b60448201526064015b60405180910390fd5b8060065f8282546104319190610c56565b90915550610442905030838361079b565b5050565b5f336104538582856107f8565b61045e85858561079b565b506001949350505050565b6104733382610873565b50565b335f908152600a60205260409020546104929062015180610c69565b42116104d55760405162461bcd60e51b8152602060048201526012602482015271436c61696d206f6e6365207065722064617960701b6044820152606401610417565b5f81116105245760405162461bcd60e51b815260206004820152601960248201527f4d757374206f776e206174206c65617374206f6e65204e4654000000000000006044820152606401610417565b6008546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561056a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061058e9190610c7c565b10156105d05760405162461bcd60e51b8152602060048201526011602482015270125b9d985b1a59081391950818dbdd5b9d607a1b6044820152606401610417565b5f600954826105df9190610c93565b90508060075410156106335760405162461bcd60e51b815260206004820152601a60248201527f45786365656473206461696c7920636c61696d20737570706c790000000000006044820152606401610417565b8060075f8282546106449190610c56565b9091555050335f818152600a602052604090204290556104429030908361079b565b61066e61076e565b6106775f6108a7565b565b60606004805461032e90610c0a565b61069061076e565b6001600160a01b0381166106e65760405162461bcd60e51b815260206004820152601c60248201527f496e76616c6964204e465420636f6e74726163742061646472657373000000006044820152606401610417565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b5f336103bc81858561079b565b61071d61076e565b600955565b61072a61076e565b6001600160a01b03811661075357604051631e4fbdf760e01b81525f6004820152602401610417565b610473816108a7565b61076983838360016108f8565b505050565b6005546001600160a01b031633146106775760405163118cdaa760e01b8152336004820152602401610417565b6001600160a01b0383166107c457604051634b637e8f60e11b81525f6004820152602401610417565b6001600160a01b0382166107ed5760405163ec442f0560e01b81525f6004820152602401610417565b6107698383836109ca565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811461086d578181101561085f57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610417565b61086d84848484035f6108f8565b50505050565b6001600160a01b03821661089c57604051634b637e8f60e11b81525f6004820152602401610417565b610442825f836109ca565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0384166109215760405163e602df0560e01b81525f6004820152602401610417565b6001600160a01b03831661094a57604051634a1406b160e11b81525f6004820152602401610417565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561086d57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516109bc91815260200190565b60405180910390a350505050565b6001600160a01b0383166109f4578060025f8282546109e99190610c69565b90915550610a649050565b6001600160a01b0383165f9081526020819052604090205481811015610a465760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610417565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610a8057600280548290039055610a9e565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610ae391815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610b3b575f80fd5b919050565b5f8060408385031215610b51575f80fd5b610b5a83610b25565b946020939093013593505050565b5f805f60608486031215610b7a575f80fd5b610b8384610b25565b9250610b9160208501610b25565b929592945050506040919091013590565b5f60208284031215610bb2575f80fd5b5035919050565b5f60208284031215610bc9575f80fd5b610bd282610b25565b9392505050565b5f8060408385031215610bea575f80fd5b610bf383610b25565b9150610c0160208401610b25565b90509250929050565b600181811c90821680610c1e57607f821691505b602082108103610c3c57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156103c2576103c2610c42565b808201808211156103c2576103c2610c42565b5f60208284031215610c8c575f80fd5b5051919050565b80820281158282048414176103c2576103c2610c4256fea26469706673582212208ba400aebdbc5d92af1ffd8785ade14e461b32bbbe9739576c562fffcff5b4b764736f6c634300081a0033

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

000000000000000000000000c620dbeed40d0b4ada0146bc016de209fe4828ea00000000000000000000000061e2932a4e62fc2bed1f69f29b21122b6d11e3f4

-----Decoded View---------------
Arg [0] : _nftContract (address): 0xC620dbeed40D0B4aDA0146BC016de209fe4828EA
Arg [1] : initialOwner (address): 0x61E2932a4E62FC2BeD1F69F29B21122b6d11e3F4

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c620dbeed40d0b4ada0146bc016de209fe4828ea
Arg [1] : 00000000000000000000000061e2932a4e62fc2bed1f69f29b21122b6d11e3f4


Deployed Bytecode Sourcemap

31595:2015:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13005:91;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;15298:190;;;;;;:::i;:::-;;:::i;:::-;;;1085:14:1;;1078:22;1060:41;;1048:2;1033:18;15298:190:0;920:187:1;32320:263:0;;;;;;:::i;:::-;;:::i;:::-;;14107:99;14186:12;;14107:99;;;1258:25:1;;;1246:2;1231:18;14107:99:0;1112:177:1;16098:249:0;;;;;;:::i;:::-;;:::i;13958:84::-;;;14032:2;1815:36:1;;1803:2;1788:18;13958:84:0;1673:184:1;33191:83:0;;;;;;:::i;:::-;;:::i;32593:588::-;;;;;;:::i;:::-;;:::i;31881:41::-;;;;;;31930:44;;;;;;:::i;:::-;;;;;;;;;;;;;;14269:118;;;;;;:::i;:::-;-1:-1:-1;;;;;14361:18:0;14334:7;14361:18;;;;;;;;;;;;14269:118;24728:103;;;:::i;24053:87::-;24126:6;;-1:-1:-1;;;;;24126:6:0;24053:87;;;-1:-1:-1;;;;;2448:32:1;;;2430:51;;2418:2;2403:18;24053:87:0;2284:203:1;13215:95:0;;;:::i;33288:197::-;;;;;;:::i;:::-;;:::i;14592:182::-;;;;;;:::i;:::-;;:::i;33493:114::-;;;;;;:::i;:::-;;:::i;31844:26::-;;;;;-1:-1:-1;;;;;31844:26:0;;;14837:142;;;;;;:::i;:::-;-1:-1:-1;;;;;14944:18:0;;;14917:7;14944:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;14837:142;31780:53;;;;;;24986:220;;;;;;:::i;:::-;;:::i;31715:58::-;;;;;;13005:91;13050:13;13083:5;13076:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13005:91;:::o;15298:190::-;15371:4;4384:10;15427:31;4384:10;15443:7;15452:5;15427:8;:31::i;:::-;15476:4;15469:11;;;15298:190;;;;;:::o;32320:263::-;23939:13;:11;:13::i;:::-;32445:6:::1;32419:22;;:32;;32411:67;;;::::0;-1:-1:-1;;;32411:67:0;;3568:2:1;32411:67:0::1;::::0;::::1;3550:21:1::0;3607:2;3587:18;;;3580:30;-1:-1:-1;;;3626:18:1;;;3619:52;3688:18;;32411:67:0::1;;;;;;;;;32515:6;32489:22;;:32;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;32532:43:0::1;::::0;-1:-1:-1;32550:4:0::1;32557:9:::0;32568:6;32532:9:::1;:43::i;:::-;32320:263:::0;;:::o;16098:249::-;16185:4;4384:10;16243:37;16259:4;4384:10;16274:5;16243:15;:37::i;:::-;16291:26;16301:4;16307:2;16311:5;16291:9;:26::i;:::-;-1:-1:-1;16335:4:0;;16098:249;-1:-1:-1;;;;16098:249:0:o;33191:83::-;33241:25;33247:10;33259:6;33241:5;:25::i;:::-;33191:83;:::o;32593:588::-;32688:10;32678:21;;;;:9;:21;;;;;;:30;;32702:6;32678:30;:::i;:::-;32660:15;:48;32652:79;;;;-1:-1:-1;;;32652:79:0;;4314:2:1;32652:79:0;;;4296:21:1;4353:2;4333:18;;;4326:30;-1:-1:-1;;;4372:18:1;;;4365:48;4430:18;;32652:79:0;4112:342:1;32652:79:0;32761:1;32750:8;:12;32742:50;;;;-1:-1:-1;;;32742:50:0;;4661:2:1;32742:50:0;;;4643:21:1;4700:2;4680:18;;;4673:30;4739:27;4719:18;;;4712:55;4784:18;;32742:50:0;4459:349:1;32742:50:0;32811:11;;:33;;-1:-1:-1;;;32811:33:0;;32833:10;32811:33;;;2430:51:1;32848:8:0;;-1:-1:-1;;;;;32811:11:0;;:21;;2403:18:1;;32811:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:45;;32803:75;;;;-1:-1:-1;;;32803:75:0;;5204:2:1;32803:75:0;;;5186:21:1;5243:2;5223:18;;;5216:30;-1:-1:-1;;;5262:18:1;;;5255:47;5319:18;;32803:75:0;5002:341:1;32803:75:0;32891:19;32924:12;;32913:8;:23;;;;:::i;:::-;32891:45;;32976:11;32955:17;;:32;;32947:71;;;;-1:-1:-1;;;32947:71:0;;5723:2:1;32947:71:0;;;5705:21:1;5762:2;5742:18;;;5735:30;5801:28;5781:18;;;5774:56;5847:18;;32947:71:0;5521:350:1;32947:71:0;33052:11;33031:17;;:32;;;;;;;:::i;:::-;;;;-1:-1:-1;;33084:10:0;33074:21;;;;:9;:21;;;;;33098:15;33074:39;;33124:49;;33142:4;;33161:11;33124:9;:49::i;24728:103::-;23939:13;:11;:13::i;:::-;24793:30:::1;24820:1;24793:18;:30::i;:::-;24728:103::o:0;13215:95::-;13262:13;13295:7;13288:14;;;;;:::i;33288:197::-;23939:13;:11;:13::i;:::-;-1:-1:-1;;;;;33372:26:0;::::1;33364:67;;;::::0;-1:-1:-1;;;33364:67:0;;6078:2:1;33364:67:0::1;::::0;::::1;6060:21:1::0;6117:2;6097:18;;;6090:30;6156;6136:18;;;6129:58;6204:18;;33364:67:0::1;5876:352:1::0;33364:67:0::1;33442:11;:35:::0;;-1:-1:-1;;;;;;33442:35:0::1;-1:-1:-1::0;;;;;33442:35:0;;;::::1;::::0;;;::::1;::::0;;33288:197::o;14592:182::-;14661:4;4384:10;14717:27;4384:10;14734:2;14738:5;14717:9;:27::i;33493:114::-;23939:13;:11;:13::i;:::-;33571:12:::1;:28:::0;33493:114::o;24986:220::-;23939:13;:11;:13::i;:::-;-1:-1:-1;;;;;25071:22:0;::::1;25067:93;;25117:31;::::0;-1:-1:-1;;;25117:31:0;;25145:1:::1;25117:31;::::0;::::1;2430:51:1::0;2403:18;;25117:31:0::1;2284:203:1::0;25067:93:0::1;25170:28;25189:8;25170:18;:28::i;20157:130::-:0;20242:37;20251:5;20258:7;20267:5;20274:4;20242:8;:37::i;:::-;20157:130;;;:::o;24218:166::-;24126:6;;-1:-1:-1;;;;;24126:6:0;4384:10;24278:23;24274:103;;24325:40;;-1:-1:-1;;;24325:40:0;;4384:10;24325:40;;;2430:51:1;2403:18;;24325:40:0;2284:203:1;16732:308:0;-1:-1:-1;;;;;16816:18:0;;16812:88;;16858:30;;-1:-1:-1;;;16858:30:0;;16885:1;16858:30;;;2430:51:1;2403:18;;16858:30:0;2284:203:1;16812:88:0;-1:-1:-1;;;;;16914:16:0;;16910:88;;16954:32;;-1:-1:-1;;;16954:32:0;;16983:1;16954:32;;;2430:51:1;2403:18;;16954:32:0;2284:203:1;16910:88:0;17008:24;17016:4;17022:2;17026:5;17008:7;:24::i;21889:487::-;-1:-1:-1;;;;;14944:18:0;;;21989:24;14944:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;22056:37:0;;22052:317;;22133:5;22114:16;:24;22110:132;;;22166:60;;-1:-1:-1;;;22166:60:0;;-1:-1:-1;;;;;6453:32:1;;22166:60:0;;;6435:51:1;6502:18;;;6495:34;;;6545:18;;;6538:34;;;6408:18;;22166:60:0;6233:345:1;22110:132:0;22285:57;22294:5;22301:7;22329:5;22310:16;:24;22336:5;22285:8;:57::i;:::-;21978:398;21889:487;;;:::o;19393:211::-;-1:-1:-1;;;;;19464:21:0;;19460:91;;19509:30;;-1:-1:-1;;;19509:30:0;;19536:1;19509:30;;;2430:51:1;2403:18;;19509:30:0;2284:203:1;19460:91:0;19561:35;19569:7;19586:1;19590:5;19561:7;:35::i;25366:191::-;25459:6;;;-1:-1:-1;;;;;25476:17:0;;;-1:-1:-1;;;;;;25476:17:0;;;;;;;25509:40;;25459:6;;;25476:17;25459:6;;25509:40;;25440:16;;25509:40;25429:128;25366:191;:::o;21154:443::-;-1:-1:-1;;;;;21267:19:0;;21263:91;;21310:32;;-1:-1:-1;;;21310:32:0;;21339:1;21310:32;;;2430:51:1;2403:18;;21310:32:0;2284:203:1;21263:91:0;-1:-1:-1;;;;;21368:21:0;;21364:92;;21413:31;;-1:-1:-1;;;21413:31:0;;21441:1;21413:31;;;2430:51:1;2403:18;;21413:31:0;2284:203:1;21364:92:0;-1:-1:-1;;;;;21466:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;21512:78;;;;21563:7;-1:-1:-1;;;;;21547:31:0;21556:5;-1:-1:-1;;;;;21547:31:0;;21572:5;21547:31;;;;1258:25:1;;1246:2;1231:18;;1112:177;21547:31:0;;;;;;;;21154:443;;;;:::o;17364:1135::-;-1:-1:-1;;;;;17454:18:0;;17450:552;;17608:5;17592:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;17450:552:0;;-1:-1:-1;17450:552:0;;-1:-1:-1;;;;;17668:15:0;;17646:19;17668:15;;;;;;;;;;;17702:19;;;17698:117;;;17749:50;;-1:-1:-1;;;17749:50:0;;-1:-1:-1;;;;;6453:32:1;;17749:50:0;;;6435:51:1;6502:18;;;6495:34;;;6545:18;;;6538:34;;;6408:18;;17749:50:0;6233:345:1;17698:117:0;-1:-1:-1;;;;;17938:15:0;;:9;:15;;;;;;;;;;17956:19;;;;17938:37;;17450:552;-1:-1:-1;;;;;18018:16:0;;18014:435;;18184:12;:21;;;;;;;18014:435;;;-1:-1:-1;;;;;18400:13:0;;:9;:13;;;;;;;;;;:22;;;;;;18014:435;18481:2;-1:-1:-1;;;;;18466:25:0;18475:4;-1:-1:-1;;;;;18466:25:0;;18485:5;18466:25;;;;1258::1;;1246:2;1231:18;;1112:177;18466:25:0;;;;;;;;17364:1135;;;:::o;14:418:1:-;163:2;152:9;145:21;126:4;195:6;189:13;238:6;233:2;222:9;218:18;211:34;297:6;292:2;284:6;280:15;275:2;264:9;260:18;254:50;353:1;348:2;339:6;328:9;324:22;320:31;313:42;423:2;416;412:7;407:2;399:6;395:15;391:29;380:9;376:45;372:54;364:62;;;14:418;;;;:::o;437:173::-;505:20;;-1:-1:-1;;;;;554:31:1;;544:42;;534:70;;600:1;597;590:12;534:70;437:173;;;:::o;615:300::-;683:6;691;744:2;732:9;723:7;719:23;715:32;712:52;;;760:1;757;750:12;712:52;783:29;802:9;783:29;:::i;:::-;773:39;881:2;866:18;;;;853:32;;-1:-1:-1;;;615:300:1:o;1294:374::-;1371:6;1379;1387;1440:2;1428:9;1419:7;1415:23;1411:32;1408:52;;;1456:1;1453;1446:12;1408:52;1479:29;1498:9;1479:29;:::i;:::-;1469:39;;1527:38;1561:2;1550:9;1546:18;1527:38;:::i;:::-;1294:374;;1517:48;;-1:-1:-1;;;1634:2:1;1619:18;;;;1606:32;;1294:374::o;1862:226::-;1921:6;1974:2;1962:9;1953:7;1949:23;1945:32;1942:52;;;1990:1;1987;1980:12;1942:52;-1:-1:-1;2035:23:1;;1862:226;-1:-1:-1;1862:226:1:o;2093:186::-;2152:6;2205:2;2193:9;2184:7;2180:23;2176:32;2173:52;;;2221:1;2218;2211:12;2173:52;2244:29;2263:9;2244:29;:::i;:::-;2234:39;2093:186;-1:-1:-1;;;2093:186:1:o;2716:260::-;2784:6;2792;2845:2;2833:9;2824:7;2820:23;2816:32;2813:52;;;2861:1;2858;2851:12;2813:52;2884:29;2903:9;2884:29;:::i;:::-;2874:39;;2932:38;2966:2;2955:9;2951:18;2932:38;:::i;:::-;2922:48;;2716:260;;;;;:::o;2981:380::-;3060:1;3056:12;;;;3103;;;3124:61;;3178:4;3170:6;3166:17;3156:27;;3124:61;3231:2;3223:6;3220:14;3200:18;3197:38;3194:161;;3277:10;3272:3;3268:20;3265:1;3258:31;3312:4;3309:1;3302:15;3340:4;3337:1;3330:15;3194:161;;2981:380;;;:::o;3717:127::-;3778:10;3773:3;3769:20;3766:1;3759:31;3809:4;3806:1;3799:15;3833:4;3830:1;3823:15;3849:128;3916:9;;;3937:11;;;3934:37;;;3951:18;;:::i;3982:125::-;4047:9;;;4068:10;;;4065:36;;;4081:18;;:::i;4813:184::-;4883:6;4936:2;4924:9;4915:7;4911:23;4907:32;4904:52;;;4952:1;4949;4942:12;4904:52;-1:-1:-1;4975:16:1;;4813:184;-1:-1:-1;4813:184:1:o;5348:168::-;5421:9;;;5452;;5469:15;;;5463:22;;5449:37;5439:71;;5490:18;;:::i

Swarm Source

ipfs://8ba400aebdbc5d92af1ffd8785ade14e461b32bbbe9739576c562fffcff5b4b7
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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