ETH Price: $3,905.44 (+6.42%)

Token

Wrapped USD (WUSD)
 

Overview

Max Total Supply

64,766.026550888605735108 WUSD

Holders

142 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
19,475.634870311571452201 WUSD

Value
$0.00
0x7f8e6c3e07172fb7a029f5c5be17d8f5128322b6
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

WUSD is the stablecoin of stablecoins. It is minted by collateralizing pairs of stablecoins in the pools of multiple AMMs.

# Exchange Pair Price  24H Volume % Volume

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x2059495b...43f018afE
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
EthItemInteroperableInterface

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-11-11
*/

// File: @openzeppelin\contracts\GSN\Context.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/*
 * @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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin\contracts\math\SafeMath.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin\contracts\utils\Address.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

    /**
     * @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);
}

// File: IBaseTokenData.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;

interface IBaseTokenData {
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);
}

// File: IERC20Data.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;



interface IERC20Data is IBaseTokenData, IERC20 {
    function decimals() external view returns (uint256);
}

// File: IEthItemInteroperableInterface.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;



interface IEthItemInteroperableInterface is IERC20, IERC20Data {

    function init(uint256 objectId, string memory name, string memory symbol, uint256 decimals) external;

    function mainInterface() external view returns (address);

    function objectId() external view returns (uint256);

    function mint(address owner, uint256 amount) external;

    function burn(address owner, uint256 amount) external;

    function permitNonce(address sender) external view returns(uint256);

    function permit(address owner, address spender, uint value, uint8 v, bytes32 r, bytes32 s) external;

    function interoperableInterfaceVersion() external pure returns(uint256 ethItemInteroperableInterfaceVersion);
}

// File: node_modules\@openzeppelin\contracts\introspection\IERC165.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * 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[EIP 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\ERC1155\IERC1155.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.2;


/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
}

// File: @openzeppelin\contracts\token\ERC1155\IERC1155Receiver.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;


/**
 * _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {

    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    )
        external
        returns(bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    )
        external
        returns(bytes4);
}

// File: IERC1155Views.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @title IERC1155Views - An optional utility interface to improve the ERC-1155 Standard.
 * @dev This interface introduces some additional capabilities for ERC-1155 Tokens.
 */
interface IERC1155Views {

    /**
     * @dev Returns the total supply of the given token id
     * @param objectId the id of the token whose availability you want to know 
     */
    function totalSupply(uint256 objectId) external view returns (uint256);

    /**
     * @dev Returns the name of the given token id
     * @param objectId the id of the token whose name you want to know 
     */
    function name(uint256 objectId) external view returns (string memory);

    /**
     * @dev Returns the symbol of the given token id
     * @param objectId the id of the token whose symbol you want to know 
     */
    function symbol(uint256 objectId) external view returns (string memory);

    /**
     * @dev Returns the decimals of the given token id
     * @param objectId the id of the token whose decimals you want to know 
     */
    function decimals(uint256 objectId) external view returns (uint256);

    /**
     * @dev Returns the uri of the given token id
     * @param objectId the id of the token whose uri you want to know 
     */
    function uri(uint256 objectId) external view returns (string memory);
}

// File: IEthItemMainInterface.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;






interface IEthItemMainInterface is IERC1155, IERC1155Views, IBaseTokenData {

    function init(
        address interoperableInterfaceModel,
        string calldata name,
        string calldata symbol
    ) external;

    function mainInterfaceVersion() external pure returns(uint256 ethItemInteroperableVersion);

    function toInteroperableInterfaceAmount(uint256 objectId, uint256 ethItemAmount) external view returns (uint256 interoperableInterfaceAmount);

    function toMainInterfaceAmount(uint256 objectId, uint256 erc20WrapperAmount) external view returns (uint256 mainInterfaceAmount);

    function interoperableInterfaceModel() external view returns (address, uint256);

    function asInteroperable(uint256 objectId) external view returns (IEthItemInteroperableInterface);

    function emitTransferSingleEvent(address sender, address from, address to, uint256 objectId, uint256 amount) external;

    function mint(uint256 amount, string calldata partialUri)
        external
        returns (uint256, address);

    function burn(
        uint256 objectId,
        uint256 amount
    ) external;

    function burnBatch(
        uint256[] calldata objectIds,
        uint256[] calldata amounts
    ) external;

    event NewItem(uint256 indexed objectId, address indexed tokenAddress);
    event Mint(uint256 objectId, address tokenAddress, uint256 amount);
}

// File: EthItemInteroperableInterface.sol

// SPDX_License_Identifier: MIT

pragma solidity ^0.6.0;






contract EthItemInteroperableInterface is Context, IEthItemInteroperableInterface {
    using SafeMath for uint256;
    using Address for address;

    mapping(address => uint256) internal _balances;

    mapping(address => mapping(address => uint256)) internal _allowances;

    uint256 internal _totalSupply;

    string internal _name;
    string internal _symbol;
    uint256 internal _decimals;

    address internal _mainInterface;
    uint256 internal _objectId;

    bytes32 internal DOMAIN_SEPARATOR;
    bytes32 internal TYPEHASH_PERMIT;
    mapping(address => uint) internal _permitNonces;

    function init(uint256 objectId, string memory name, string memory symbol, uint256 decimals) public virtual override {
        require(_mainInterface == address(0), "Init already called!");
        _mainInterface = msg.sender;
        _objectId = objectId;
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
        _initSignatureStuff();
    }

    function _initSignatureStuff() private {
        uint chainId;
        assembly { chainId := chainid() }
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),
                keccak256(bytes("Item")),
                keccak256(bytes('1')),
                chainId,
                address(this)
            )
        );
        _initSignatureMethods();
    }

    function interoperableInterfaceVersion() public pure virtual override returns(uint256) {
        return 1;
    }

    function _initSignatureMethods() internal virtual {
        TYPEHASH_PERMIT = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce)");
    }

    function permitNonce(address sender) public virtual view override returns(uint256) {
        return _permitNonces[sender];
    }

    function mainInterface() public virtual override view returns (address) {
        return _mainInterface;
    }

    function objectId() public virtual override view returns (uint256) {
        return _objectId;
    }

    function name() public virtual override view returns (string memory) {
        return _name;
    }

    function symbol() public virtual override view returns (string memory) {
        return _symbol;
    }

    function decimals() public virtual override view returns (uint256) {
        return _decimals;
    }

    function totalSupply() public virtual override view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account)
        public
        virtual
        override
        view
        returns (uint256)
    {
        return _balances[account];
    }

    function mint(address owner, uint256 amount) public virtual override {
        require(msg.sender == _mainInterface, "Unauthorized action!");
        _mint(owner, amount);
    }

    function burn(address owner, uint256 amount) public virtual override {
        require(
            msg.sender == _mainInterface,
            "Unauthorized action!"
        );
        _burn(owner, amount);
    }

    function transfer(address recipient, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function allowance(address owner, address spender)
        public
        virtual
        override
        view
        returns (uint256 allowanceAmount)
    {
        allowanceAmount = _allowances[owner][spender];
        if (
            allowanceAmount == 0 &&
            IEthItemMainInterface(_mainInterface).isApprovedForAll(owner, spender)
        ) {
            allowanceAmount = _totalSupply;
        }
    }

    function approve(address spender, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        if (_msgSender() == _mainInterface) {
            return true;
        }
        if (
            !IEthItemMainInterface(_mainInterface).isApprovedForAll(
                sender,
                _msgSender()
            )
        ) {
            _approve(
                sender,
                _msgSender(),
                _allowances[sender][_msgSender()].sub(
                    amount,
                    "ERC20: transfer amount exceeds allowance"
                )
            );
        }
        return true;
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(
            amount,
            "ERC20: transfer amount exceeds balance"
        );
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
        if (_msgSender() != _mainInterface) {
            IEthItemMainInterface(_mainInterface).emitTransferSingleEvent(_msgSender(), sender, recipient, _objectId, amount);
        }
    }

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _balances[account] = _balances[account].sub(
            amount,
            "ERC20: burn amount exceeds balance"
        );
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    function permit(address owner, address spender, uint value, uint8 v, bytes32 r, bytes32 s) public override {
        bytes32 digest = keccak256(
            abi.encodePacked(
                '\x19\x01',
                DOMAIN_SEPARATOR,
                keccak256(abi.encode(TYPEHASH_PERMIT, owner, spender, value, _permitNonces[owner]++))
            )
        );
        address recoveredAddress = ecrecover(digest, v, r, s);
        require(recoveredAddress != address(0) && recoveredAddress == owner, 'INVALID_SIGNATURE');
        _approve(owner, spender, value);
    }
}

Contract Security Audit

Contract ABI

[{"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":"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":"allowanceAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"objectId","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"decimals","type":"uint256"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"interoperableInterfaceVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"mainInterface","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"objectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"permitNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061145b806100206000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c8063620b29cd116100a257806395d89b411161007157806395d89b411461044c5780639dc29fac14610454578063a9059cbb14610480578063d4d5a06d146104ac578063dd62ed3e146104b45761010b565b8063620b29cd146102c257806370a08231146103f85780637c6295011461041e578063881d697e146104445761010b565b806323b872dd116100de57806323b872dd1461020b578063313ce5671461024157806340c10f191461024957806348613c28146102775761010b565b806306fdde0314610110578063095ea7b31461018d57806318160ddd146101cd5780631836b97d146101e7575b600080fd5b6101186104e2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015257818101518382015260200161013a565b50505050905090810190601f16801561017f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101b9600480360360408110156101a357600080fd5b506001600160a01b038135169060200135610578565b604080519115158252519081900360200190f35b6101d5610596565b60408051918252519081900360200190f35b6101ef61059c565b604080516001600160a01b039092168252519081900360200190f35b6101b96004803603606081101561022157600080fd5b506001600160a01b038135811691602081013590911690604001356105ab565b6101d56106f5565b6102756004803603604081101561025f57600080fd5b506001600160a01b0381351690602001356106fb565b005b610275600480360360c081101561028d57600080fd5b506001600160a01b03813581169160208101359091169060408101359060ff6060820135169060808101359060a0013561075f565b610275600480360360808110156102d857600080fd5b813591908101906040810160208201356401000000008111156102fa57600080fd5b82018360208201111561030c57600080fd5b8035906020019184600183028401116401000000008311171561032e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561038157600080fd5b82018360208201111561039357600080fd5b803590602001918460018302840111640100000000831117156103b557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506108ea915050565b6101d56004803603602081101561040e57600080fd5b50356001600160a01b0316610991565b6101d56004803603602081101561043457600080fd5b50356001600160a01b03166109ac565b6101d56109c7565b6101186109cc565b6102756004803603604081101561046a57600080fd5b506001600160a01b038135169060200135610a2d565b6101b96004803603604081101561049657600080fd5b506001600160a01b038135169060200135610a8d565b6101d5610aa1565b6101d5600480360360408110156104ca57600080fd5b506001600160a01b0381358116916020013516610aa7565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b5050505050905090565b600061058c610585610b67565b8484610b6b565b5060015b92915050565b60025490565b6006546001600160a01b031690565b60006105b8848484610c57565b6006546001600160a01b03166105cc610b67565b6001600160a01b031614156105e3575060016106ee565b6006546001600160a01b031663e985e9c5856105fd610b67565b6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561064a57600080fd5b505afa15801561065e573d6000803e3d6000fd5b505050506040513d602081101561067457600080fd5b50516106ea576106ea84610686610b67565b6106e585604051806060016040528060288152602001611394602891396001600160a01b038a166000908152600160205260408120906106c4610b67565b6001600160a01b031681526020810191909152604001600020549190610e6e565b610b6b565b5060015b9392505050565b60055490565b6006546001600160a01b03163314610751576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b61075b8282610f05565b5050565b6008546009546001600160a01b038089166000818152600a602090815260408083208054600180820190925582518085019890985287830195909552948c166060870152608086018b905260a0808701949094528051808703909401845260c08601815283519382019390932061190160f01b60e087015260e28601969096526101028086019690965282518086039096018652610122850180845286519682019690962095829052610142850180845286905260ff891661016286015261018285018890526101a28501879052915190936101c28082019392601f1981019281900390910190855afa15801561085a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906108905750876001600160a01b0316816001600160a01b0316145b6108d5576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b6108e0888888610b6b565b5050505050505050565b6006546001600160a01b03161561093f576040805162461bcd60e51b8152602060048201526014602482015273496e697420616c72656164792063616c6c65642160601b604482015290519081900360640190fd5b600680546001600160a01b0319163317905560078490558251610969906003906020860190611273565b50815161097d906004906020850190611273565b50600581905561098b610fe9565b50505050565b6001600160a01b031660009081526020819052604090205490565b6001600160a01b03166000908152600a602052604090205490565b600190565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561056e5780601f106105435761010080835404028352916020019161056e565b6006546001600160a01b03163314610a83576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b61075b82826110c1565b600061058c610a9a610b67565b8484610c57565b60075490565b6001600160a01b0380831660009081526001602090815260408083209385168352929052205480158015610b5857506006546040805163e985e9c560e01b81526001600160a01b03868116600483015285811660248301529151919092169163e985e9c5916044808301926020929190829003018186803b158015610b2b57600080fd5b505afa158015610b3f573d6000803e3d6000fd5b505050506040513d6020811015610b5557600080fd5b50515b15610590575060025492915050565b3390565b6001600160a01b038316610bb05760405162461bcd60e51b81526004018080602001828103825260248152602001806114026024913960400191505060405180910390fd5b6001600160a01b038216610bf55760405162461bcd60e51b815260040180806020018281038252602281526020018061134c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610c9c5760405162461bcd60e51b81526004018080602001828103825260258152602001806113dd6025913960400191505060405180910390fd5b6001600160a01b038216610ce15760405162461bcd60e51b81526004018080602001828103825260238152602001806113076023913960400191505060405180910390fd5b610d1e8160405180606001604052806026815260200161136e602691396001600160a01b0386166000908152602081905260409020549190610e6e565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610d4d90826111b1565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a36006546001600160a01b0316610db6610b67565b6001600160a01b031614610e69576006546001600160a01b031663e82b15f4610ddd610b67565b8585600754866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001846001600160a01b0316815260200183815260200182815260200195505050505050600060405180830381600087803b158015610e5057600080fd5b505af1158015610e64573d6000803e3d6000fd5b505050505b505050565b60008184841115610efd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ec2578181015183820152602001610eaa565b50505050905090810190601f168015610eef5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610f60576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600254610f6d90826111b1565b6002556001600160a01b038216600090815260208190526040902054610f9390826111b1565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60408051808201825260048152634974656d60e01b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f31fcafdee8c2dcee3de1153d3829b2e1d11fe15b379329599ff4b21af34bd9d7818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015246608082018190523060a0808401919091528451808403909101815260c090920190935280519101206008556110be61120b565b50565b6001600160a01b0382166111065760405162461bcd60e51b81526004018080602001828103825260218152602001806113bc6021913960400191505060405180910390fd5b6111438160405180606001604052806022815260200161132a602291396001600160a01b0385166000908152602081905260409020549190610e6e565b6001600160a01b0383166000908152602081905260409020556002546111699082611231565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000828201838110156106ee576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b7f1903b0573ddc0b65c61504cbe83a2543c6e8a1fb8af580a777a5b2f8073e319d600955565b60006106ee83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e6e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106112b457805160ff19168380011785556112e1565b828001600101855582156112e1579182015b828111156112e15782518255916020019190600101906112c6565b506112ed9291506112f1565b5090565b5b808211156112ed57600081556001016112f256fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373a264697066735822122005539c065b95937ae022ce314d3b33d3c4d0c936ae8df50306aae3eaf9fdf89264736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c8063620b29cd116100a257806395d89b411161007157806395d89b411461044c5780639dc29fac14610454578063a9059cbb14610480578063d4d5a06d146104ac578063dd62ed3e146104b45761010b565b8063620b29cd146102c257806370a08231146103f85780637c6295011461041e578063881d697e146104445761010b565b806323b872dd116100de57806323b872dd1461020b578063313ce5671461024157806340c10f191461024957806348613c28146102775761010b565b806306fdde0314610110578063095ea7b31461018d57806318160ddd146101cd5780631836b97d146101e7575b600080fd5b6101186104e2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015257818101518382015260200161013a565b50505050905090810190601f16801561017f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101b9600480360360408110156101a357600080fd5b506001600160a01b038135169060200135610578565b604080519115158252519081900360200190f35b6101d5610596565b60408051918252519081900360200190f35b6101ef61059c565b604080516001600160a01b039092168252519081900360200190f35b6101b96004803603606081101561022157600080fd5b506001600160a01b038135811691602081013590911690604001356105ab565b6101d56106f5565b6102756004803603604081101561025f57600080fd5b506001600160a01b0381351690602001356106fb565b005b610275600480360360c081101561028d57600080fd5b506001600160a01b03813581169160208101359091169060408101359060ff6060820135169060808101359060a0013561075f565b610275600480360360808110156102d857600080fd5b813591908101906040810160208201356401000000008111156102fa57600080fd5b82018360208201111561030c57600080fd5b8035906020019184600183028401116401000000008311171561032e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561038157600080fd5b82018360208201111561039357600080fd5b803590602001918460018302840111640100000000831117156103b557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506108ea915050565b6101d56004803603602081101561040e57600080fd5b50356001600160a01b0316610991565b6101d56004803603602081101561043457600080fd5b50356001600160a01b03166109ac565b6101d56109c7565b6101186109cc565b6102756004803603604081101561046a57600080fd5b506001600160a01b038135169060200135610a2d565b6101b96004803603604081101561049657600080fd5b506001600160a01b038135169060200135610a8d565b6101d5610aa1565b6101d5600480360360408110156104ca57600080fd5b506001600160a01b0381358116916020013516610aa7565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b5050505050905090565b600061058c610585610b67565b8484610b6b565b5060015b92915050565b60025490565b6006546001600160a01b031690565b60006105b8848484610c57565b6006546001600160a01b03166105cc610b67565b6001600160a01b031614156105e3575060016106ee565b6006546001600160a01b031663e985e9c5856105fd610b67565b6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561064a57600080fd5b505afa15801561065e573d6000803e3d6000fd5b505050506040513d602081101561067457600080fd5b50516106ea576106ea84610686610b67565b6106e585604051806060016040528060288152602001611394602891396001600160a01b038a166000908152600160205260408120906106c4610b67565b6001600160a01b031681526020810191909152604001600020549190610e6e565b610b6b565b5060015b9392505050565b60055490565b6006546001600160a01b03163314610751576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b61075b8282610f05565b5050565b6008546009546001600160a01b038089166000818152600a602090815260408083208054600180820190925582518085019890985287830195909552948c166060870152608086018b905260a0808701949094528051808703909401845260c08601815283519382019390932061190160f01b60e087015260e28601969096526101028086019690965282518086039096018652610122850180845286519682019690962095829052610142850180845286905260ff891661016286015261018285018890526101a28501879052915190936101c28082019392601f1981019281900390910190855afa15801561085a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906108905750876001600160a01b0316816001600160a01b0316145b6108d5576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b6108e0888888610b6b565b5050505050505050565b6006546001600160a01b03161561093f576040805162461bcd60e51b8152602060048201526014602482015273496e697420616c72656164792063616c6c65642160601b604482015290519081900360640190fd5b600680546001600160a01b0319163317905560078490558251610969906003906020860190611273565b50815161097d906004906020850190611273565b50600581905561098b610fe9565b50505050565b6001600160a01b031660009081526020819052604090205490565b6001600160a01b03166000908152600a602052604090205490565b600190565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561056e5780601f106105435761010080835404028352916020019161056e565b6006546001600160a01b03163314610a83576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b61075b82826110c1565b600061058c610a9a610b67565b8484610c57565b60075490565b6001600160a01b0380831660009081526001602090815260408083209385168352929052205480158015610b5857506006546040805163e985e9c560e01b81526001600160a01b03868116600483015285811660248301529151919092169163e985e9c5916044808301926020929190829003018186803b158015610b2b57600080fd5b505afa158015610b3f573d6000803e3d6000fd5b505050506040513d6020811015610b5557600080fd5b50515b15610590575060025492915050565b3390565b6001600160a01b038316610bb05760405162461bcd60e51b81526004018080602001828103825260248152602001806114026024913960400191505060405180910390fd5b6001600160a01b038216610bf55760405162461bcd60e51b815260040180806020018281038252602281526020018061134c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610c9c5760405162461bcd60e51b81526004018080602001828103825260258152602001806113dd6025913960400191505060405180910390fd5b6001600160a01b038216610ce15760405162461bcd60e51b81526004018080602001828103825260238152602001806113076023913960400191505060405180910390fd5b610d1e8160405180606001604052806026815260200161136e602691396001600160a01b0386166000908152602081905260409020549190610e6e565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610d4d90826111b1565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a36006546001600160a01b0316610db6610b67565b6001600160a01b031614610e69576006546001600160a01b031663e82b15f4610ddd610b67565b8585600754866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001846001600160a01b0316815260200183815260200182815260200195505050505050600060405180830381600087803b158015610e5057600080fd5b505af1158015610e64573d6000803e3d6000fd5b505050505b505050565b60008184841115610efd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ec2578181015183820152602001610eaa565b50505050905090810190601f168015610eef5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610f60576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600254610f6d90826111b1565b6002556001600160a01b038216600090815260208190526040902054610f9390826111b1565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60408051808201825260048152634974656d60e01b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f31fcafdee8c2dcee3de1153d3829b2e1d11fe15b379329599ff4b21af34bd9d7818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015246608082018190523060a0808401919091528451808403909101815260c090920190935280519101206008556110be61120b565b50565b6001600160a01b0382166111065760405162461bcd60e51b81526004018080602001828103825260218152602001806113bc6021913960400191505060405180910390fd5b6111438160405180606001604052806022815260200161132a602291396001600160a01b0385166000908152602081905260409020549190610e6e565b6001600160a01b0383166000908152602081905260409020556002546111699082611231565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000828201838110156106ee576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b7f1903b0573ddc0b65c61504cbe83a2543c6e8a1fb8af580a777a5b2f8073e319d600955565b60006106ee83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e6e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106112b457805160ff19168380011785556112e1565b828001600101855582156112e1579182015b828111156112e15782518255916020019190600101906112c6565b506112ed9291506112f1565b5090565b5b808211156112ed57600081556001016112f256fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373a264697066735822122005539c065b95937ae022ce314d3b33d3c4d0c936ae8df50306aae3eaf9fdf89264736f6c634300060c0033

Deployed Bytecode Sourcemap

27065:7301:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29241:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30949:210;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;30949:210:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;29571:108;;;:::i;:::-;;;;;;;;;;;;;;;;29011:112;;;:::i;:::-;;;;-1:-1:-1;;;;;29011:112:0;;;;;;;;;;;;;;31167:748;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;31167:748:0;;;;;;;;;;;;;;;;;:::i;29461:102::-;;;:::i;29872:180::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29872:180:0;;;;;;;;:::i;:::-;;33780:583;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;33780:583:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;27692:378::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27692:378:0;;;;;;;;-1:-1:-1;27692:378:0;;-1:-1:-1;;27692:378:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27692:378:0;;-1:-1:-1;;27692:378:0;;;-1:-1:-1;27692:378:0;;-1:-1:-1;;27692:378:0:i;29687:177::-;;;;;;;;;;;;;;;;-1:-1:-1;29687:177:0;-1:-1:-1;;;;;29687:177:0;;:::i;28873:130::-;;;;;;;;;;;;;;;;-1:-1:-1;28873:130:0;-1:-1:-1;;;;;28873:130:0;;:::i;28578:114::-;;;:::i;29349:104::-;;;:::i;30060:217::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;30060:217:0;;;;;;;;:::i;30285:216::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;30285:216:0;;;;;;;;:::i;29131:102::-;;;:::i;30509:432::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;30509:432:0;;;;;;;;;;:::i;29241:100::-;29328:5;29321:12;;;;;;;;-1:-1:-1;;29321:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29295:13;;29321:12;;29328:5;;29321:12;;29328:5;29321:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29241:100;:::o;30949:210::-;31068:4;31090:39;31099:12;:10;:12::i;:::-;31113:7;31122:6;31090:8;:39::i;:::-;-1:-1:-1;31147:4:0;30949:210;;;;;:::o;29571:108::-;29659:12;;29571:108;:::o;29011:112::-;29101:14;;-1:-1:-1;;;;;29101:14:0;29011:112;:::o;31167:748::-;31307:4;31324:36;31334:6;31342:9;31353:6;31324:9;:36::i;:::-;31391:14;;-1:-1:-1;;;;;31391:14:0;31375:12;:10;:12::i;:::-;-1:-1:-1;;;;;31375:30:0;;31371:74;;;-1:-1:-1;31429:4:0;31422:11;;31371:74;31496:14;;-1:-1:-1;;;;;31496:14:0;31474:54;31547:6;31572:12;:10;:12::i;:::-;31474:125;;;;;;;;;;;;;-1:-1:-1;;;;;31474:125:0;;;;;;-1:-1:-1;;;;;31474:125:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31474:125:0;31455:431;;31626:248;31653:6;31678:12;:10;:12::i;:::-;31709:150;31769:6;31709:150;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31709:19:0;;;;;;:11;:19;;;;;;31729:12;:10;:12::i;:::-;-1:-1:-1;;;;;31709:33:0;;;;;;;;;;;;-1:-1:-1;31709:33:0;;;:150;:37;:150::i;:::-;31626:8;:248::i;:::-;-1:-1:-1;31903:4:0;31167:748;;;;;;:::o;29461:102::-;29546:9;;29461:102;:::o;29872:180::-;29974:14;;-1:-1:-1;;;;;29974:14:0;29960:10;:28;29952:61;;;;;-1:-1:-1;;;29952:61:0;;;;;;;;;;;;-1:-1:-1;;;29952:61:0;;;;;;;;;;;;;;;30024:20;30030:5;30037:6;30024:5;:20::i;:::-;29872:180;;:::o;33780:583::-;34003:16;;34059:15;;-1:-1:-1;;;;;34099:20:0;;;33898:14;34099:20;;;:13;:20;;;;;;;;:22;;;;;;;;;34048:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34038:85;;;;;;;;;-1:-1:-1;;;33939:199:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33915:234;;;;;;;;;34187:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33898:14;;34187:26;;;;;34099:20;-1:-1:-1;;34187:26:0;;;;;;;;;;34099:22;34187:26;;;;;;;;;;;;;;;-1:-1:-1;;34187:26:0;;-1:-1:-1;;34187:26:0;;;-1:-1:-1;;;;;;;34232:30:0;;;;;;:59;;;34286:5;-1:-1:-1;;;;;34266:25:0;:16;-1:-1:-1;;;;;34266:25:0;;34232:59;34224:89;;;;;-1:-1:-1;;;34224:89:0;;;;;;;;;;;;-1:-1:-1;;;34224:89:0;;;;;;;;;;;;;;;34324:31;34333:5;34340:7;34349:5;34324:8;:31::i;:::-;33780:583;;;;;;;;:::o;27692:378::-;27827:14;;-1:-1:-1;;;;;27827:14:0;:28;27819:61;;;;;-1:-1:-1;;;27819:61:0;;;;;;;;;;;;-1:-1:-1;;;27819:61:0;;;;;;;;;;;;;;;27891:14;:27;;-1:-1:-1;;;;;;27891:27:0;27908:10;27891:27;;;27929:9;:20;;;27960:12;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;27983:16:0;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;28010:9:0;:20;;;28041:21;:19;:21::i;:::-;27692:378;;;;:::o;29687:177::-;-1:-1:-1;;;;;29838:18:0;29806:7;29838:18;;;;;;;;;;;;29687:177::o;28873:130::-;-1:-1:-1;;;;;28974:21:0;28947:7;28974:21;;;:13;:21;;;;;;;28873:130::o;28578:114::-;28683:1;28578:114;:::o;29349:104::-;29438:7;29431:14;;;;;;;;-1:-1:-1;;29431:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29405:13;;29431:14;;29438:7;;29431:14;;29438:7;29431:14;;;;;;;;;;;;;;;;;;;;;;;;30060:217;30176:14;;-1:-1:-1;;;;;30176:14:0;30162:10;:28;30140:98;;;;;-1:-1:-1;;;30140:98:0;;;;;;;;;;;;-1:-1:-1;;;30140:98:0;;;;;;;;;;;;;;;30249:20;30255:5;30262:6;30249:5;:20::i;30285:216::-;30407:4;30429:42;30439:12;:10;:12::i;:::-;30453:9;30464:6;30429:9;:42::i;29131:102::-;29216:9;;29131:102;:::o;30509:432::-;-1:-1:-1;;;;;30702:18:0;;;30643:23;30702:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;30758:20;;:107;;;;-1:-1:-1;30817:14:0;;30795:70;;;-1:-1:-1;;;30795:70:0;;-1:-1:-1;;;;;30795:70:0;;;;;;;;;;;;;;;;30817:14;;;;;30795:54;;:70;;;;;;;;;;;;;;30817:14;30795:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30795:70:0;30758:107;30740:194;;;-1:-1:-1;30910:12:0;;30509:432;;;;:::o;657:106::-;745:10;657:106;:::o;33392:380::-;-1:-1:-1;;;;;33528:19:0;;33520:68;;;;-1:-1:-1;;;33520:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33607:21:0;;33599:68;;;;-1:-1:-1;;;33599:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33680:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;33732:32;;;;;;;;;;;;;;;;;33392:380;;;:::o;31923:736::-;-1:-1:-1;;;;;32063:20:0;;32055:70;;;;-1:-1:-1;;;32055:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32144:23:0;;32136:71;;;;-1:-1:-1;;;32136:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32240:108;32276:6;32240:108;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32240:17:0;;:9;:17;;;;;;;;;;;;:108;:21;:108::i;:::-;-1:-1:-1;;;;;32220:17:0;;;:9;:17;;;;;;;;;;;:128;;;;32382:20;;;;;;;:32;;32407:6;32382:24;:32::i;:::-;-1:-1:-1;;;;;32359:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;32430:35;;;;;;;32359:20;;32430:35;;;;;;;;;;;;;32496:14;;-1:-1:-1;;;;;32496:14:0;32480:12;:10;:12::i;:::-;-1:-1:-1;;;;;32480:30:0;;32476:176;;32549:14;;-1:-1:-1;;;;;32549:14:0;32527:61;32589:12;:10;:12::i;:::-;32603:6;32611:9;32622;;32633:6;32527:113;;;;;;;;;;;;;-1:-1:-1;;;;;32527:113:0;;;;;;-1:-1:-1;;;;;32527:113:0;;;;;;-1:-1:-1;;;;;32527:113:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32476:176;31923:736;;;:::o;2870:192::-;2956:7;2992:12;2984:6;;;;2976:29;;;;-1:-1:-1;;;2976:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3028:5:0;;;2870:192::o;32667:316::-;-1:-1:-1;;;;;32751:21:0;;32743:65;;;;;-1:-1:-1;;;32743:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;32836:12;;:24;;32853:6;32836:16;:24::i;:::-;32821:12;:39;-1:-1:-1;;;;;32892:18:0;;:9;:18;;;;;;;;;;;:30;;32915:6;32892:22;:30::i;:::-;-1:-1:-1;;;;;32871:18:0;;:9;:18;;;;;;;;;;;:51;;;;32938:37;;;;;;;32871:18;;:9;;32938:37;;;;;;;;;;32667:316;;:::o;28078:492::-;28390:13;;;;;;;;;;;-1:-1:-1;;;28390:13:0;;;;;28433:10;;;;;;;;;;-1:-1:-1;;;28433:10:0;;;;28237:280;;28266:95;28237:280;;;;28380:24;28237:280;;;;28423:21;28237:280;;;;28173:9;28237:280;;;;;;28497:4;28237:280;;;;;;;;;;;;;;;;;;;;;;;;;28213:315;;;;;28194:16;:334;28539:23;:21;:23::i;:::-;28078:492;:::o;32991:393::-;-1:-1:-1;;;;;33075:21:0;;33067:67;;;;-1:-1:-1;;;33067:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33168:105;33205:6;33168:105;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33168:18:0;;:9;:18;;;;;;;;;;;;:105;:22;:105::i;:::-;-1:-1:-1;;;;;33147:18:0;;:9;:18;;;;;;;;;;:126;33299:12;;:24;;33316:6;33299:16;:24::i;:::-;33284:12;:39;33339:37;;;;;;;;33365:1;;-1:-1:-1;;;;;33339:37:0;;;;;;;;;;;;32991:393;;:::o;1967:181::-;2025:7;2057:5;;;2081:6;;;;2073:46;;;;;-1:-1:-1;;;2073:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;28700:165;28779:78;28761:15;:96;28700:165::o;2431:136::-;2489:7;2516:43;2520:1;2523;2516:43;;;;;;;;;;;;;;;;;:3;:43::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;

Swarm Source

ipfs://05539c065b95937ae022ce314d3b33d3c4d0c936ae8df50306aae3eaf9fdf892
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.