ETH Price: $3,362.39 (-0.59%)
Gas: 14 Gwei

Token

Exchange Pass (PASS)
 

Overview

Max Total Supply

6,051 PASS

Holders

4,125

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0x9cbf099ff424979439dfba03f00b5961784c06ce
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
AevoExchangePass

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 7 : AevoExchangePass.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.10;

import "solmate/src/tokens/ERC1155.sol";
import "solmate/src/utils/SafeTransferLib.sol";
import "solmate/src/auth/Owned.sol";
import "./Base64.sol";
import "./Helpers.sol";

error MintingTooManyAtOnce();

contract AevoExchangePass is ERC1155, Owned {
    string public constant name = "Exchange Pass";
    string public constant symbol = "PASS";

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    constructor() ERC1155() Owned(msg.sender) {
        // Automatically mints 1 to deployer
        _mint(msg.sender, 0, 1, "");
    }

    function adminMint(address to, uint256 id, uint256 amount) public onlyOwner {
        _mint(to, id, amount, "");
    }

    function adminBatchMint(address[] calldata to, uint256 id, uint256 amount) public onlyOwner {
        unchecked {
            for (uint i = 0; i < to.length; i++) {
                _mint(to[i], id, amount, "");
            }
        }
    }

    function setTokenURI(uint256 tokenId, string calldata tokenUri) public onlyOwner {
        _tokenURIs[tokenId] = tokenUri;
    }

    function uri(uint256 id) public view override returns (string memory) {
        if (bytes(_tokenURIs[id]).length != 0) {
            return _tokenURIs[id];
        }

        // Default uri
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked(
                                '{"name":"',
                                'Exchange Pass',
                                '","description":"Exchange Pass holders get early access to app.aevo.xyz"',
                                ',"image": "ipfs://bafybeigrvvnkkypcunvt4mifezrqskpt24tucktehp5r4oqvpb2fezsbim/preview.png"',
                                ',"animation_url": "ipfs://bafybeigrvvnkkypcunvt4mifezrqskpt24tucktehp5r4oqvpb2fezsbim/aevo.gltf"',
                                ',"external_url": "https://app.aevo.xyz"',
                                ',"background_color": "#06060C"',
                                '}'
                            )
                        )
                    )
                )
            );
    }
}

File 2 of 7 : Base64.sol
// SPDX-License-Identifier: MIT
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
pragma solidity ^0.8.10;

library Base64 {
    bytes internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)
                )
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 3 of 7 : Helpers.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Helpers {
    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }
}

File 4 of 7 : Owned.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event OwnershipTransferred(address indexed user, address indexed newOwner);

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) {
        owner = _owner;

        emit OwnershipTransferred(address(0), _owner);
    }

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function transferOwnership(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnershipTransferred(msg.sender, newOwner);
    }
}

File 5 of 7 : ERC1155.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Minimalist and gas efficient standard ERC1155 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol)
abstract contract ERC1155 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event TransferSingle(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256 id,
        uint256 amount
    );

    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] amounts
    );

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    event URI(string value, uint256 indexed id);

    /*//////////////////////////////////////////////////////////////
                             ERC1155 STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(address => mapping(uint256 => uint256)) public balanceOf;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                             METADATA LOGIC
    //////////////////////////////////////////////////////////////*/

    function uri(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                              ERC1155 LOGIC
    //////////////////////////////////////////////////////////////*/

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) public virtual {
        require(msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED");

        balanceOf[from][id] -= amount;
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, from, to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, from, id, amount, data) ==
                    ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) public virtual {
        require(ids.length == amounts.length, "LENGTH_MISMATCH");

        require(msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED");

        // Storing these outside the loop saves ~15 gas per iteration.
        uint256 id;
        uint256 amount;

        for (uint256 i = 0; i < ids.length; ) {
            id = ids[i];
            amount = amounts[i];

            balanceOf[from][id] -= amount;
            balanceOf[to][id] += amount;

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, from, to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, from, ids, amounts, data) ==
                    ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function balanceOfBatch(address[] calldata owners, uint256[] calldata ids)
        public
        view
        virtual
        returns (uint256[] memory balances)
    {
        require(owners.length == ids.length, "LENGTH_MISMATCH");

        balances = new uint256[](owners.length);

        // Unchecked because the only math done is incrementing
        // the array index counter which cannot possibly overflow.
        unchecked {
            for (uint256 i = 0; i < owners.length; ++i) {
                balances[i] = balanceOf[owners[i]][ids[i]];
            }
        }
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0xd9b67a26 || // ERC165 Interface ID for ERC1155
            interfaceId == 0x0e89341c; // ERC165 Interface ID for ERC1155MetadataURI
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, address(0), to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, address(0), id, amount, data) ==
                    ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _batchMint(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        for (uint256 i = 0; i < idsLength; ) {
            balanceOf[to][ids[i]] += amounts[i];

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, address(0), to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, address(0), ids, amounts, data) ==
                    ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _batchBurn(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        for (uint256 i = 0; i < idsLength; ) {
            balanceOf[from][ids[i]] -= amounts[i];

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, from, address(0), ids, amounts);
    }

    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        balanceOf[from][id] -= amount;

        emit TransferSingle(msg.sender, from, address(0), id, amount);
    }
}

/// @notice A generic interface for a contract which properly accepts ERC1155 tokens.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol)
abstract contract ERC1155TokenReceiver {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC1155TokenReceiver.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] calldata,
        uint256[] calldata,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC1155TokenReceiver.onERC1155BatchReceived.selector;
    }
}

File 6 of 7 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

File 7 of 7 : SafeTransferLib.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

import {ERC20} from "../tokens/ERC20.sol";

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
    /*//////////////////////////////////////////////////////////////
                             ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferETH(address to, uint256 amount) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Transfer the ETH and store if it succeeded or not.
            success := call(gas(), to, amount, 0, 0, 0, 0)
        }

        require(success, "ETH_TRANSFER_FAILED");
    }

    /*//////////////////////////////////////////////////////////////
                            ERC20 OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferFrom(
        ERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument.
            mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
            )
        }

        require(success, "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "TRANSFER_FAILED");
    }

    function safeApprove(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "APPROVE_FAILED");
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminBatchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenUri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50600280546001600160a01b0319163390811790915560405181906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200007a3360006001604051806020016040528060008152506200008060201b60201c565b620002ce565b6001600160a01b03841660009081526020818152604080832086845290915281208054849290620000b3908490620001f9565b909155505060408051848152602081018490526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0384163b15620001a25760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e61906200014b90339060009089908990899060040162000221565b6020604051808303816000875af11580156200016b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200019191906200029b565b6001600160e01b03191614620001af565b6001600160a01b03841615155b620001f35760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640160405180910390fd5b50505050565b808201808211156200021b57634e487b7160e01b600052601160045260246000fd5b92915050565b600060018060a01b03808816835260208188168185015286604085015285606085015260a06080850152845191508160a085015260005b82811015620002765785810182015185820160c00152810162000258565b5050600060c0828501015260c0601f19601f8301168401019150509695505050505050565b600060208284031215620002ae57600080fd5b81516001600160e01b031981168114620002c757600080fd5b9392505050565b61196880620002de6000396000f3fe608060405234801561001057600080fd5b50600436106100d35760003560e01c80634e1273f4116100875780634e1273f4146101bd5780638da5cb5b146101dd57806395d89b4114610208578063a22cb4651461022b578063e985e9c51461023e578063f242432a1461026c578063f2fde38b1461027f578063f47f115e1461029257600080fd5b80624a84cb146100d8578062fdd58e146100ed57806301ffc9a71461012857806306fdde031461014b5780630e89341c14610184578063162094c4146101975780632eb2c2d6146101aa575b600080fd5b6100eb6100e6366004610e1a565b6102a5565b005b6101156100fb366004610e4d565b600060208181529281526040808220909352908152205481565b6040519081526020015b60405180910390f35b61013b610136366004610e90565b6102f8565b604051901515815260200161011f565b6101776040518060400160405280600d81526020016c45786368616e6765205061737360981b81525081565b60405161011f9190610f04565b610177610192366004610f17565b61034a565b6100eb6101a5366004610f78565b610458565b6100eb6101b8366004611007565b6104a1565b6101d06101cb3660046110c1565b610701565b60405161011f919061112c565b6002546101f0906001600160a01b031681565b6040516001600160a01b03909116815260200161011f565b610177604051806040016040528060048152602001635041535360e01b81525081565b6100eb610239366004611170565b610813565b61013b61024c3660046111ac565b600160209081526000928352604080842090915290825290205460ff1681565b6100eb61027a3660046111df565b61087f565b6100eb61028d366004611256565b610a58565b6100eb6102a0366004611271565b610ace565b6002546001600160a01b031633146102d85760405162461bcd60e51b81526004016102cf906112c1565b60405180910390fd5b6102f383838360405180602001604052806000815250610b53565b505050565b60006301ffc9a760e01b6001600160e01b0319831614806103295750636cdb3d1360e11b6001600160e01b03198316145b8061034457506303a24d0760e21b6001600160e01b03198316145b92915050565b6000818152600360205260409020805460609190610367906112e7565b15905061040c5760008281526003602052604090208054610387906112e7565b80601f01602080910402602001604051908101604052809291908181526020018280546103b3906112e7565b80156104005780601f106103d557610100808354040283529160200191610400565b820191906000526020600020905b8154815290600101906020018083116103e357829003601f168201915b50505050509050919050565b61043260405160200161041e90611321565b604051602081830303815290604052610c95565b60405160200161044291906114fd565b6040516020818303038152906040529050919050565b6002546001600160a01b031633146104825760405162461bcd60e51b81526004016102cf906112c1565b600083815260036020526040902061049b82848361159e565b50505050565b8483146104c05760405162461bcd60e51b81526004016102cf9061165d565b336001600160a01b03891614806104fa57506001600160a01b038816600090815260016020908152604080832033845290915290205460ff165b6105165760405162461bcd60e51b81526004016102cf90611686565b60008060005b878110156105d157888882818110610536576105366116ae565b905060200201359250868682818110610551576105516116ae565b6001600160a01b038e166000908152602081815260408083208984528252822080549390910294909401359550859392509061058e9084906116da565b90915550506001600160a01b038a16600090815260208181526040808320868452909152812080548492906105c49084906116ed565b909155505060010161051c565b50886001600160a01b03168a6001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8b8b8b8b6040516106259493929190611732565b60405180910390a46001600160a01b0389163b156106cc5760405163bc197c8160e01b808252906001600160a01b038b169063bc197c81906106799033908f908e908e908e908e908e908e9060040161178d565b6020604051808303816000875af1158015610698573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bc91906117f1565b6001600160e01b031916146106d9565b6001600160a01b03891615155b6106f55760405162461bcd60e51b81526004016102cf9061180e565b50505050505050505050565b60608382146107225760405162461bcd60e51b81526004016102cf9061165d565b836001600160401b0381111561073a5761073a611542565b604051908082528060200260200182016040528015610763578160200160208202803683370190505b50905060005b8481101561080a57600080878784818110610786576107866116ae565b905060200201602081019061079b9190611256565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008585848181106107cf576107cf6116ae565b905060200201358152602001908152602001600020548282815181106107f7576107f76116ae565b6020908102919091010152600101610769565b50949350505050565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336001600160a01b03871614806108b957506001600160a01b038616600090815260016020908152604080832033845290915290205460ff165b6108d55760405162461bcd60e51b81526004016102cf90611686565b6001600160a01b038616600090815260208181526040808320878452909152812080548592906109069084906116da565b90915550506001600160a01b0385166000908152602081815260408083208784529091528120805485929061093c9084906116ed565b909155505060408051858152602081018590526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0385163b15610a275760405163f23a6e6160e01b808252906001600160a01b0387169063f23a6e61906109d49033908b908a908a908a908a90600401611838565b6020604051808303816000875af11580156109f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1791906117f1565b6001600160e01b03191614610a34565b6001600160a01b03851615155b610a505760405162461bcd60e51b81526004016102cf9061180e565b505050505050565b6002546001600160a01b03163314610a825760405162461bcd60e51b81526004016102cf906112c1565b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b6002546001600160a01b03163314610af85760405162461bcd60e51b81526004016102cf906112c1565b60005b83811015610b4c57610b44858583818110610b1857610b186116ae565b9050602002016020810190610b2d9190611256565b848460405180602001604052806000815250610b53565b600101610afb565b5050505050565b6001600160a01b03841660009081526020818152604080832086845290915281208054849290610b849084906116ed565b909155505060408051848152602081018490526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0384163b15610c6c5760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e6190610c1990339060009089908990899060040161187f565b6020604051808303816000875af1158015610c38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5c91906117f1565b6001600160e01b03191614610c79565b6001600160a01b03841615155b61049b5760405162461bcd60e51b81526004016102cf9061180e565b80516060906000819003610cb9575050604080516020810190915260008152919050565b60006003610cc88360026116ed565b610cd291906118b9565b610cdd9060046118db565b90506000610cec8260206116ed565b6001600160401b03811115610d0357610d03611542565b6040519080825280601f01601f191660200182016040528015610d2d576020820181803683370190505b50905060006040518060600160405280604081526020016118f3604091399050600181016020830160005b86811015610db9576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101610d58565b506003860660018114610dd35760028114610de457610df0565b613d3d60f01b600119830152610df0565b603d60f81b6000198301525b505050918152949350505050565b80356001600160a01b0381168114610e1557600080fd5b919050565b600080600060608486031215610e2f57600080fd5b610e3884610dfe565b95602085013595506040909401359392505050565b60008060408385031215610e6057600080fd5b610e6983610dfe565b946020939093013593505050565b6001600160e01b031981168114610e8d57600080fd5b50565b600060208284031215610ea257600080fd5b8135610ead81610e77565b9392505050565b60005b83811015610ecf578181015183820152602001610eb7565b50506000910152565b60008151808452610ef0816020860160208601610eb4565b601f01601f19169290920160200192915050565b602081526000610ead6020830184610ed8565b600060208284031215610f2957600080fd5b5035919050565b60008083601f840112610f4257600080fd5b5081356001600160401b03811115610f5957600080fd5b602083019150836020828501011115610f7157600080fd5b9250929050565b600080600060408486031215610f8d57600080fd5b8335925060208401356001600160401b03811115610faa57600080fd5b610fb686828701610f30565b9497909650939450505050565b60008083601f840112610fd557600080fd5b5081356001600160401b03811115610fec57600080fd5b6020830191508360208260051b8501011115610f7157600080fd5b60008060008060008060008060a0898b03121561102357600080fd5b61102c89610dfe565b975061103a60208a01610dfe565b965060408901356001600160401b038082111561105657600080fd5b6110628c838d01610fc3565b909850965060608b013591508082111561107b57600080fd5b6110878c838d01610fc3565b909650945060808b01359150808211156110a057600080fd5b506110ad8b828c01610f30565b999c989b5096995094979396929594505050565b600080600080604085870312156110d757600080fd5b84356001600160401b03808211156110ee57600080fd5b6110fa88838901610fc3565b9096509450602087013591508082111561111357600080fd5b5061112087828801610fc3565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b8181101561116457835183529284019291840191600101611148565b50909695505050505050565b6000806040838503121561118357600080fd5b61118c83610dfe565b9150602083013580151581146111a157600080fd5b809150509250929050565b600080604083850312156111bf57600080fd5b6111c883610dfe565b91506111d660208401610dfe565b90509250929050565b60008060008060008060a087890312156111f857600080fd5b61120187610dfe565b955061120f60208801610dfe565b9450604087013593506060870135925060808701356001600160401b0381111561123857600080fd5b61124489828a01610f30565b979a9699509497509295939492505050565b60006020828403121561126857600080fd5b610ead82610dfe565b6000806000806060858703121561128757600080fd5b84356001600160401b0381111561129d57600080fd5b6112a987828801610fc3565b90989097506020870135966040013595509350505050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b600181811c908216806112fb57607f821691505b60208210810361131b57634e487b7160e01b600052602260045260246000fd5b50919050565b683d913730b6b2911d1160b91b81526c45786368616e6765205061737360981b60098201527f222c226465736372697074696f6e223a2245786368616e67652050617373206860168201527f6f6c6465727320676574206561726c792061636365737320746f206170702e6160368201526732bb37973c3cbd1160c11b60568201527f2c22696d616765223a2022697066733a2f2f62616679626569677276766e6b6b605e8201527f797063756e7674346d6966657a7271736b707432347475636b74656870357234607e8201527f6f717670623266657a7362696d2f707265766965772e706e6722000000000000609e8201527f2c22616e696d6174696f6e5f75726c223a2022697066733a2f2f62616679626560b88201527f69677276766e6b6b797063756e7674346d6966657a7271736b7074323474756360d88201527f6b746568703572346f717670623266657a7362696d2f6165766f2e676c74662260f88201527f2c2265787465726e616c5f75726c223a202268747470733a2f2f6170702e6165610118820152663b37973c3cbd1160c91b6101388201527f2c226261636b67726f756e645f636f6c6f72223a20222330363036304322000061013f820152607d60f81b61015d820152600061015e8201610344565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161153581601d850160208701610eb4565b91909101601d0192915050565b634e487b7160e01b600052604160045260246000fd5b601f8211156102f357600081815260208120601f850160051c8101602086101561157f5750805b601f850160051c820191505b81811015610a505782815560010161158b565b6001600160401b038311156115b5576115b5611542565b6115c9836115c383546112e7565b83611558565b6000601f8411600181146115fd57600085156115e55750838201355b600019600387901b1c1916600186901b178355610b4c565b600083815260209020601f19861690835b8281101561162e578685013582556020948501946001909201910161160e565b508682101561164b5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6020808252600f908201526e0988a9c8ea890be9a92a69a82a8869608b1b604082015260600190565b6020808252600e908201526d1393d517d055551213d49256915160921b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610344576103446116c4565b80820180821115610344576103446116c4565b81835260006001600160fb1b0383111561171957600080fd5b8260051b80836020870137939093016020019392505050565b604081526000611746604083018688611700565b8281036020840152611759818587611700565b979650505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0389811682528816602082015260a0604082018190526000906117ba908301888a611700565b82810360608401526117cd818789611700565b905082810360808401526117e2818587611764565b9b9a5050505050505050505050565b60006020828403121561180357600080fd5b8151610ead81610e77565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a0608082018190526000906118739083018486611764565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061175990830184610ed8565b6000826118d657634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610344576103446116c456fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220af1e9f97255418acae0ce6e64d3693b2c9311fc711f15c16826bb4f89b7b157c64736f6c63430008120033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100d35760003560e01c80634e1273f4116100875780634e1273f4146101bd5780638da5cb5b146101dd57806395d89b4114610208578063a22cb4651461022b578063e985e9c51461023e578063f242432a1461026c578063f2fde38b1461027f578063f47f115e1461029257600080fd5b80624a84cb146100d8578062fdd58e146100ed57806301ffc9a71461012857806306fdde031461014b5780630e89341c14610184578063162094c4146101975780632eb2c2d6146101aa575b600080fd5b6100eb6100e6366004610e1a565b6102a5565b005b6101156100fb366004610e4d565b600060208181529281526040808220909352908152205481565b6040519081526020015b60405180910390f35b61013b610136366004610e90565b6102f8565b604051901515815260200161011f565b6101776040518060400160405280600d81526020016c45786368616e6765205061737360981b81525081565b60405161011f9190610f04565b610177610192366004610f17565b61034a565b6100eb6101a5366004610f78565b610458565b6100eb6101b8366004611007565b6104a1565b6101d06101cb3660046110c1565b610701565b60405161011f919061112c565b6002546101f0906001600160a01b031681565b6040516001600160a01b03909116815260200161011f565b610177604051806040016040528060048152602001635041535360e01b81525081565b6100eb610239366004611170565b610813565b61013b61024c3660046111ac565b600160209081526000928352604080842090915290825290205460ff1681565b6100eb61027a3660046111df565b61087f565b6100eb61028d366004611256565b610a58565b6100eb6102a0366004611271565b610ace565b6002546001600160a01b031633146102d85760405162461bcd60e51b81526004016102cf906112c1565b60405180910390fd5b6102f383838360405180602001604052806000815250610b53565b505050565b60006301ffc9a760e01b6001600160e01b0319831614806103295750636cdb3d1360e11b6001600160e01b03198316145b8061034457506303a24d0760e21b6001600160e01b03198316145b92915050565b6000818152600360205260409020805460609190610367906112e7565b15905061040c5760008281526003602052604090208054610387906112e7565b80601f01602080910402602001604051908101604052809291908181526020018280546103b3906112e7565b80156104005780601f106103d557610100808354040283529160200191610400565b820191906000526020600020905b8154815290600101906020018083116103e357829003601f168201915b50505050509050919050565b61043260405160200161041e90611321565b604051602081830303815290604052610c95565b60405160200161044291906114fd565b6040516020818303038152906040529050919050565b6002546001600160a01b031633146104825760405162461bcd60e51b81526004016102cf906112c1565b600083815260036020526040902061049b82848361159e565b50505050565b8483146104c05760405162461bcd60e51b81526004016102cf9061165d565b336001600160a01b03891614806104fa57506001600160a01b038816600090815260016020908152604080832033845290915290205460ff165b6105165760405162461bcd60e51b81526004016102cf90611686565b60008060005b878110156105d157888882818110610536576105366116ae565b905060200201359250868682818110610551576105516116ae565b6001600160a01b038e166000908152602081815260408083208984528252822080549390910294909401359550859392509061058e9084906116da565b90915550506001600160a01b038a16600090815260208181526040808320868452909152812080548492906105c49084906116ed565b909155505060010161051c565b50886001600160a01b03168a6001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8b8b8b8b6040516106259493929190611732565b60405180910390a46001600160a01b0389163b156106cc5760405163bc197c8160e01b808252906001600160a01b038b169063bc197c81906106799033908f908e908e908e908e908e908e9060040161178d565b6020604051808303816000875af1158015610698573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bc91906117f1565b6001600160e01b031916146106d9565b6001600160a01b03891615155b6106f55760405162461bcd60e51b81526004016102cf9061180e565b50505050505050505050565b60608382146107225760405162461bcd60e51b81526004016102cf9061165d565b836001600160401b0381111561073a5761073a611542565b604051908082528060200260200182016040528015610763578160200160208202803683370190505b50905060005b8481101561080a57600080878784818110610786576107866116ae565b905060200201602081019061079b9190611256565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008585848181106107cf576107cf6116ae565b905060200201358152602001908152602001600020548282815181106107f7576107f76116ae565b6020908102919091010152600101610769565b50949350505050565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336001600160a01b03871614806108b957506001600160a01b038616600090815260016020908152604080832033845290915290205460ff165b6108d55760405162461bcd60e51b81526004016102cf90611686565b6001600160a01b038616600090815260208181526040808320878452909152812080548592906109069084906116da565b90915550506001600160a01b0385166000908152602081815260408083208784529091528120805485929061093c9084906116ed565b909155505060408051858152602081018590526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0385163b15610a275760405163f23a6e6160e01b808252906001600160a01b0387169063f23a6e61906109d49033908b908a908a908a908a90600401611838565b6020604051808303816000875af11580156109f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1791906117f1565b6001600160e01b03191614610a34565b6001600160a01b03851615155b610a505760405162461bcd60e51b81526004016102cf9061180e565b505050505050565b6002546001600160a01b03163314610a825760405162461bcd60e51b81526004016102cf906112c1565b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b6002546001600160a01b03163314610af85760405162461bcd60e51b81526004016102cf906112c1565b60005b83811015610b4c57610b44858583818110610b1857610b186116ae565b9050602002016020810190610b2d9190611256565b848460405180602001604052806000815250610b53565b600101610afb565b5050505050565b6001600160a01b03841660009081526020818152604080832086845290915281208054849290610b849084906116ed565b909155505060408051848152602081018490526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0384163b15610c6c5760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e6190610c1990339060009089908990899060040161187f565b6020604051808303816000875af1158015610c38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5c91906117f1565b6001600160e01b03191614610c79565b6001600160a01b03841615155b61049b5760405162461bcd60e51b81526004016102cf9061180e565b80516060906000819003610cb9575050604080516020810190915260008152919050565b60006003610cc88360026116ed565b610cd291906118b9565b610cdd9060046118db565b90506000610cec8260206116ed565b6001600160401b03811115610d0357610d03611542565b6040519080825280601f01601f191660200182016040528015610d2d576020820181803683370190505b50905060006040518060600160405280604081526020016118f3604091399050600181016020830160005b86811015610db9576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101610d58565b506003860660018114610dd35760028114610de457610df0565b613d3d60f01b600119830152610df0565b603d60f81b6000198301525b505050918152949350505050565b80356001600160a01b0381168114610e1557600080fd5b919050565b600080600060608486031215610e2f57600080fd5b610e3884610dfe565b95602085013595506040909401359392505050565b60008060408385031215610e6057600080fd5b610e6983610dfe565b946020939093013593505050565b6001600160e01b031981168114610e8d57600080fd5b50565b600060208284031215610ea257600080fd5b8135610ead81610e77565b9392505050565b60005b83811015610ecf578181015183820152602001610eb7565b50506000910152565b60008151808452610ef0816020860160208601610eb4565b601f01601f19169290920160200192915050565b602081526000610ead6020830184610ed8565b600060208284031215610f2957600080fd5b5035919050565b60008083601f840112610f4257600080fd5b5081356001600160401b03811115610f5957600080fd5b602083019150836020828501011115610f7157600080fd5b9250929050565b600080600060408486031215610f8d57600080fd5b8335925060208401356001600160401b03811115610faa57600080fd5b610fb686828701610f30565b9497909650939450505050565b60008083601f840112610fd557600080fd5b5081356001600160401b03811115610fec57600080fd5b6020830191508360208260051b8501011115610f7157600080fd5b60008060008060008060008060a0898b03121561102357600080fd5b61102c89610dfe565b975061103a60208a01610dfe565b965060408901356001600160401b038082111561105657600080fd5b6110628c838d01610fc3565b909850965060608b013591508082111561107b57600080fd5b6110878c838d01610fc3565b909650945060808b01359150808211156110a057600080fd5b506110ad8b828c01610f30565b999c989b5096995094979396929594505050565b600080600080604085870312156110d757600080fd5b84356001600160401b03808211156110ee57600080fd5b6110fa88838901610fc3565b9096509450602087013591508082111561111357600080fd5b5061112087828801610fc3565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b8181101561116457835183529284019291840191600101611148565b50909695505050505050565b6000806040838503121561118357600080fd5b61118c83610dfe565b9150602083013580151581146111a157600080fd5b809150509250929050565b600080604083850312156111bf57600080fd5b6111c883610dfe565b91506111d660208401610dfe565b90509250929050565b60008060008060008060a087890312156111f857600080fd5b61120187610dfe565b955061120f60208801610dfe565b9450604087013593506060870135925060808701356001600160401b0381111561123857600080fd5b61124489828a01610f30565b979a9699509497509295939492505050565b60006020828403121561126857600080fd5b610ead82610dfe565b6000806000806060858703121561128757600080fd5b84356001600160401b0381111561129d57600080fd5b6112a987828801610fc3565b90989097506020870135966040013595509350505050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b600181811c908216806112fb57607f821691505b60208210810361131b57634e487b7160e01b600052602260045260246000fd5b50919050565b683d913730b6b2911d1160b91b81526c45786368616e6765205061737360981b60098201527f222c226465736372697074696f6e223a2245786368616e67652050617373206860168201527f6f6c6465727320676574206561726c792061636365737320746f206170702e6160368201526732bb37973c3cbd1160c11b60568201527f2c22696d616765223a2022697066733a2f2f62616679626569677276766e6b6b605e8201527f797063756e7674346d6966657a7271736b707432347475636b74656870357234607e8201527f6f717670623266657a7362696d2f707265766965772e706e6722000000000000609e8201527f2c22616e696d6174696f6e5f75726c223a2022697066733a2f2f62616679626560b88201527f69677276766e6b6b797063756e7674346d6966657a7271736b7074323474756360d88201527f6b746568703572346f717670623266657a7362696d2f6165766f2e676c74662260f88201527f2c2265787465726e616c5f75726c223a202268747470733a2f2f6170702e6165610118820152663b37973c3cbd1160c91b6101388201527f2c226261636b67726f756e645f636f6c6f72223a20222330363036304322000061013f820152607d60f81b61015d820152600061015e8201610344565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161153581601d850160208701610eb4565b91909101601d0192915050565b634e487b7160e01b600052604160045260246000fd5b601f8211156102f357600081815260208120601f850160051c8101602086101561157f5750805b601f850160051c820191505b81811015610a505782815560010161158b565b6001600160401b038311156115b5576115b5611542565b6115c9836115c383546112e7565b83611558565b6000601f8411600181146115fd57600085156115e55750838201355b600019600387901b1c1916600186901b178355610b4c565b600083815260209020601f19861690835b8281101561162e578685013582556020948501946001909201910161160e565b508682101561164b5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6020808252600f908201526e0988a9c8ea890be9a92a69a82a8869608b1b604082015260600190565b6020808252600e908201526d1393d517d055551213d49256915160921b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610344576103446116c4565b80820180821115610344576103446116c4565b81835260006001600160fb1b0383111561171957600080fd5b8260051b80836020870137939093016020019392505050565b604081526000611746604083018688611700565b8281036020840152611759818587611700565b979650505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0389811682528816602082015260a0604082018190526000906117ba908301888a611700565b82810360608401526117cd818789611700565b905082810360808401526117e2818587611764565b9b9a5050505050505050505050565b60006020828403121561180357600080fd5b8151610ead81610e77565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a0608082018190526000906118739083018486611764565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061175990830184610ed8565b6000826118d657634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610344576103446116c456fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220af1e9f97255418acae0ce6e64d3693b2c9311fc711f15c16826bb4f89b7b157c64736f6c63430008120033

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.