ETH Price: $2,408.69 (-0.51%)

Shibits (SHIBITS)
 

Overview

TokenID

1901

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

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

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

Contract Source Code Verified (Exact Match)

Contract Name:
Shibits

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

//SPDX-License-Identifier: UNLICENSED

/*

   Website:https://shibits.com/

   TG: https://t.me/shibits404

   Twitter X: https://twitter.com/Shibits404

*/


pragma solidity ^0.8.0;

abstract contract Ownable {
    event OwnershipTransferred(address indexed user, address indexed newOwner);

    error Unauthorized();
    error InvalidOwner();

    address public owner;

    modifier onlyOwner() virtual {
        if (msg.sender != owner) revert Unauthorized();

        _;
    }

    constructor(address _owner) {
        if (_owner == address(0)) revert InvalidOwner();

        owner = _owner;

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

    function transferOwnership(address _owner) public virtual onlyOwner {
        if (_owner == address(0)) revert InvalidOwner();

        owner = _owner;

        emit OwnershipTransferred(msg.sender, _owner);
    }

    function revokeOwnership() public virtual onlyOwner {
        owner = address(0);

        emit OwnershipTransferred(msg.sender, address(0));
    }
}

abstract contract ERC721Receiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721Receiver.onERC721Received.selector;
    }
}

abstract contract ERC404 is Ownable {
    // Events
    event ERC20Transfer(
        address indexed from,
        address indexed to,
        uint256 amount
    );
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 amount
    );
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 indexed id
    );
    event ERC721Approval(
        address indexed owner,
        address indexed spender,
        uint256 indexed id
    );
    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );

    // Errors
    error NotFound();
    error AlreadyExists();
    error InvalidRecipient();
    error InvalidSender();
    error UnsafeRecipient();

    // Metadata
    /// @dev Token name
    string public name;

    /// @dev Token symbol
    string public symbol;

    /// @dev Decimals for fractional representation
    uint8 public immutable decimals;

    /// @dev Total supply in fractionalized representation
    uint256 public immutable totalSupply;

    /// @dev Current mint counter, monotonically increasing to ensure accurate ownership
    uint256 public minted;

    // Mappings
    /// @dev Balance of user in fractional representation
    mapping(address => uint256) public balanceOf;

    /// @dev Allowance of user in fractional representation
    mapping(address => mapping(address => uint256)) public allowance;

    /// @dev Approval in native representaion
    mapping(uint256 => address) public getApproved;

    /// @dev Approval for all in native representation
    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /// @dev Owner of id in native representation
    mapping(uint256 => address) internal _ownerOf;

    /// @dev Array of owned ids in native representation
    mapping(address => uint256[]) internal _owned;

    /// @dev Tracks indices for the _owned mapping
    mapping(uint256 => uint256) internal _ownedIndex;

    /// @dev Addresses whitelisted from minting / burning for gas savings (pairs, routers, etc)
    mapping(address => bool) public whitelist;

    // Constructor
    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals,
        uint256 _totalNativeSupply,
        address _owner
    ) Ownable(_owner) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;
        totalSupply = _totalNativeSupply * (10 ** decimals);
    }

    /// @notice Initialization function to set pairs / etc
    ///         saving gas by avoiding mint / burn on unnecessary targets
    function setWhitelist(address target, bool state) public onlyOwner {
        whitelist[target] = state;
    }

    /// @notice Function to find owner of a given native token
    function ownerOf(uint256 id) public view virtual returns (address owner) {
        owner = _ownerOf[id];

        if (owner == address(0)) {
            revert NotFound();
        }
    }

    /// @notice tokenURI must be implemented by child contract
    function tokenURI(uint256 id) public view virtual returns (string memory);

    /// @notice Function for token approvals
    /// @dev This function assumes id / native if amount less than or equal to current max id
    function approve(
        address spender,
        uint256 amountOrId
    ) public virtual returns (bool) {
        if (amountOrId <= minted && amountOrId > 0) {
            address owner = _ownerOf[amountOrId];

            if (msg.sender != owner && !isApprovedForAll[owner][msg.sender]) {
                revert Unauthorized();
            }

            getApproved[amountOrId] = spender;

            emit Approval(owner, spender, amountOrId);
        } else {
            allowance[msg.sender][spender] = amountOrId;

            emit Approval(msg.sender, spender, amountOrId);
        }

        return true;
    }

    /// @notice Function native approvals
    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

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

    /// @notice Function for mixed transfers
    /// @dev This function assumes id / native if amount less than or equal to current max id
    function transferFrom(
        address from,
        address to,
        uint256 amountOrId
    ) public virtual {
        if (amountOrId <= minted) {
            if (from != _ownerOf[amountOrId]) {
                revert InvalidSender();
            }

            if (to == address(0)) {
                revert InvalidRecipient();
            }

            if (
                msg.sender != from &&
                !isApprovedForAll[from][msg.sender] &&
                msg.sender != getApproved[amountOrId]
            ) {
                revert Unauthorized();
            }

            balanceOf[from] -= _getUnit();

            unchecked {
                balanceOf[to] += _getUnit();
            }

            _ownerOf[amountOrId] = to;
            delete getApproved[amountOrId];

            // update _owned for sender
            uint256 updatedId = _owned[from][_owned[from].length - 1];
            _owned[from][_ownedIndex[amountOrId]] = updatedId;
            // pop
            _owned[from].pop();
            // update index for the moved id
            _ownedIndex[updatedId] = _ownedIndex[amountOrId];
            // push token to to owned
            _owned[to].push(amountOrId);
            // update index for to owned
            _ownedIndex[amountOrId] = _owned[to].length - 1;

            emit Transfer(from, to, amountOrId);
            emit ERC20Transfer(from, to, _getUnit());
        } else {
            uint256 allowed = allowance[from][msg.sender];

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

            _transfer(from, to, amountOrId);
        }
    }

    /// @notice Function for fractional transfers
    function transfer(
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        return _transfer(msg.sender, to, amount);
    }

    /// @notice Function for native transfers with contract support
    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        if (
            to.code.length != 0 &&
            ERC721Receiver(to).onERC721Received(msg.sender, from, id, "") !=
            ERC721Receiver.onERC721Received.selector
        ) {
            revert UnsafeRecipient();
        }
    }

    /// @notice Function for native transfers with contract support and callback data
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        if (
            to.code.length != 0 &&
            ERC721Receiver(to).onERC721Received(msg.sender, from, id, data) !=
            ERC721Receiver.onERC721Received.selector
        ) {
            revert UnsafeRecipient();
        }
    }

    /// @notice Internal function for fractional transfers
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal returns (bool) {
        uint256 unit = _getUnit();
        uint256 balanceBeforeSender = balanceOf[from];
        uint256 balanceBeforeReceiver = balanceOf[to];

        balanceOf[from] -= amount;

        unchecked {
            balanceOf[to] += amount;
        }

        // Skip burn for certain addresses to save gas
        if (!whitelist[from]) {
            uint256 tokens_to_burn = (balanceBeforeSender / unit) -
                (balanceOf[from] / unit);
            for (uint256 i = 0; i < tokens_to_burn; i++) {
                _burn(from);
            }
        }

        // Skip minting for certain addresses to save gas
        if (!whitelist[to]) {
            uint256 tokens_to_mint = (balanceOf[to] / unit) -
                (balanceBeforeReceiver / unit);
            for (uint256 i = 0; i < tokens_to_mint; i++) {
                _mint(to);
            }
        }

        emit ERC20Transfer(from, to, amount);
        return true;
    }

    // Internal utility logic
    function _getUnit() internal view returns (uint256) {
        return 10 ** decimals;
    }

    function _mint(address to) internal virtual {
        if (to == address(0)) {
            revert InvalidRecipient();
        }

        unchecked {
            minted++;
        }

        uint256 id = minted;

        if (_ownerOf[id] != address(0)) {
            revert AlreadyExists();
        }

        _ownerOf[id] = to;
        _owned[to].push(id);
        _ownedIndex[id] = _owned[to].length - 1;

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

    function _burn(address from) internal virtual {
        if (from == address(0)) {
            revert InvalidSender();
        }

        uint256 id = _owned[from][_owned[from].length - 1];
        _owned[from].pop();
        delete _ownedIndex[id];
        delete _ownerOf[id];
        delete getApproved[id];

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

    function _setNameSymbol(
        string memory _name,
        string memory _symbol
    ) internal {
        name = _name;
        symbol = _symbol;
    }
}

library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}
/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

contract Shibits is ERC404 {
    string public baseTokenURI = "https://aqua-wonderful-impala-495.mypinata.cloud/ipfs/QmNYVkwC99KnouCf84LDuVrSxba8BkL5HkTpg89qD4FTiT/";


    constructor(
    ) ERC404("Shibits","SHIBITS", 18, 2560, 0x1ce723548bC5cFCa99b56EFdD37Dca05a70F3666) {
        balanceOf[0x1ce723548bC5cFCa99b56EFdD37Dca05a70F3666] = 2560 * 10 ** 18;

        //WhiteList Owner
        whitelist[owner] = true;
        //Qouter V3
        whitelist[0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6] = true;
        //Qouter v3
        whitelist[0x61fFE014bA17989E743c5F6cB21bF9697530B21e] = true;
        //Position NFT V3
        whitelist[0xC36442b4a4522E871399CD717aBDD847Ab11FE88] = true;

    }

    function setTokenURI(string memory _tokenURI) public onlyOwner {
        baseTokenURI = _tokenURI;
    }

    function tokenURI(uint256 id) public view override returns (string memory) {
        string memory endingJson = '.json';
        return string.concat(baseTokenURI, string.concat(Strings.toString(id)),endingJson);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"ERC721Approval","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revokeOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","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":"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":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

610160604052606560c08181529062001e6f60e039600c90620000239082620002a2565b5034801562000030575f80fd5b506040805180820182526007808252665368696269747360c81b6020808401919091528351808501909452908352665348494249545360c81b90830152906012610a00731ce723548bc5cfca99b56efdd37dca05a70f3666805f80546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001620000df8682620002a2565b506002620000ee8582620002a2565b5060ff831660808190526200010590600a6200047d565b62000111908362000494565b60a0525050688ac7230489e80000007f4fa53a601f32836a879f3a1347ac0d68ddb4f17d6a53e2716eff476fe2078bf25550505f80546001600160a01b03168152600b602052604081208054600160ff1991821681179092557f1604174ebc462c8eaf2ec7e83589cabf07a8c461522803c7fe8839a32124f16e80548216831790557fd82dc0f48717dc6ad9a8b44a0e4c0d4f96336a800fe257e2a8ec3a46bcef447d805482168317905573c36442b4a4522e871399cd717abdd847ab11fe889092527f261dbc521cfb88228382cf8de21f356151cff14d33341356eb6ebce563202ddd805490921617905550620004ae565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200022d57607f821691505b6020821081036200024c57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200029d57805f5260205f20601f840160051c81016020851015620002795750805b601f840160051c820191505b818110156200029a575f815560010162000285565b50505b505050565b81516001600160401b03811115620002be57620002be62000204565b620002d681620002cf845462000218565b8462000252565b602080601f8311600181146200030c575f8415620002f45750858301515b5f19600386901b1c1916600185901b17855562000366565b5f85815260208120601f198616915b828110156200033c578886015182559484019460019091019084016200031b565b50858210156200035a57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52601160045260245ffd5b600181815b80851115620003c257815f1904821115620003a657620003a66200036e565b80851615620003b457918102915b93841c939080029062000387565b509250929050565b5f82620003da5750600162000477565b81620003e857505f62000477565b81600181146200040157600281146200040c576200042c565b600191505062000477565b60ff8411156200042057620004206200036e565b50506001821b62000477565b5060208310610133831016604e8410600b841016171562000451575081810a62000477565b6200045d838362000382565b805f19048211156200047357620004736200036e565b0290505b92915050565b5f6200048d60ff841683620003ca565b9392505050565b80820281158282048414176200047757620004776200036e565b60805160a051611998620004d75f395f6101dd01525f818161022f0152610d8801526119985ff3fe608060405234801561000f575f80fd5b5060043610610153575f3560e01c80638da5cb5b116100bf578063c87b56dd11610079578063c87b56dd14610339578063d547cfb71461034c578063dd62ed3e14610354578063e0df5b6f1461037e578063e985e9c514610391578063f2fde38b146103be575f80fd5b80638da5cb5b146102c457806395d89b41146102d65780639b19251a146102de578063a22cb46514610300578063a9059cbb14610313578063b88d4fde14610326575f80fd5b8063313ce56711610110578063313ce5671461022a57806342842e0e146102635780634f02c4201461027657806353d6fd591461027f5780636352211e1461029257806370a08231146102a5575f80fd5b806306fdde0314610157578063081812fc14610175578063095ea7b3146101b557806318160ddd146101d857806323b872dd1461020d5780632b96895814610222575b5f80fd5b61015f6103d1565b60405161016c919061130a565b60405180910390f35b61019d61018336600461133c565b60066020525f90815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161016c565b6101c86101c3366004611369565b61045d565b604051901515815260200161016c565b6101ff7f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161016c565b61022061021b366004611391565b6105a8565b005b610220610924565b6102517f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff909116815260200161016c565b610220610271366004611391565b610988565b6101ff60035481565b61022061028d3660046113ca565b610a59565b61019d6102a036600461133c565b610aac565b6101ff6102b3366004611403565b60046020525f908152604090205481565b5f5461019d906001600160a01b031681565b61015f610ae6565b6101c86102ec366004611403565b600b6020525f908152604090205460ff1681565b61022061030e3660046113ca565b610af3565b6101c8610321366004611369565b610b5e565b61022061033436600461141c565b610b71565b61015f61034736600461133c565b610c31565b61015f610ca2565b6101ff6103623660046114af565b600560209081525f928352604080842090915290825290205481565b61022061038c3660046114f4565b610caf565b6101c861039f3660046114af565b600760209081525f928352604080842090915290825290205460ff1681565b6102206103cc366004611403565b610ce8565b600180546103de9061159f565b80601f016020809104026020016040519081016040528092919081815260200182805461040a9061159f565b80156104555780601f1061042c57610100808354040283529160200191610455565b820191905f5260205f20905b81548152906001019060200180831161043857829003601f168201915b505050505081565b5f600354821115801561046f57505f82115b15610543575f828152600860205260409020546001600160a01b03163381148015906104be57506001600160a01b0381165f90815260076020908152604080832033845290915290205460ff16155b156104db576040516282b42960e81b815260040160405180910390fd5b5f8381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35061059e565b335f8181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b60035481116108b8575f818152600860205260409020546001600160a01b038481169116146105ea57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661061157604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061064d57506001600160a01b0383165f90815260076020908152604080832033845290915290205460ff16155b801561066f57505f818152600660205260409020546001600160a01b03163314155b1561068c576040516282b42960e81b815260040160405180910390fd5b610694610d82565b6001600160a01b0384165f90815260046020526040812080549091906106bb9084906115eb565b909155506106c99050610d82565b6001600160a01b038084165f81815260046020908152604080832080549096019095558582526008815284822080546001600160a01b031990811690941790556006815284822080549093169092559186168252600990529081208054610732906001906115eb565b81548110610742576107426115fe565b5f9182526020808320909101546001600160a01b0387168352600982526040808420868552600a90935290922054815492935083928110610785576107856115fe565b5f9182526020808320909101929092556001600160a01b03861681526009909152604090208054806107b9576107b9611612565b5f828152602080822083015f19908101839055909201909255838252600a8152604080832054848452818420556001600160a01b03861680845260098352908320805460018181018355828652938520018690559252905461081b91906115eb565b5f838152600a602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314876108a1610d82565b60405190815260200160405180910390a350505050565b6001600160a01b0383165f9081526005602090815260408083203384529091529020545f198114610911576108ed82826115eb565b6001600160a01b0385165f9081526005602090815260408083203384529091529020555b61091c848484610db3565b50505b505050565b5f546001600160a01b0316331461094d576040516282b42960e81b815260040160405180910390fd5b5f80546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b6109938383836105a8565b6001600160a01b0382163b15801590610a3b5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af1158015610a0a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2e9190611626565b6001600160e01b03191614155b1561091f57604051633da6393160e01b815260040160405180910390fd5b5f546001600160a01b03163314610a82576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091165f908152600b60205260409020805460ff1916911515919091179055565b5f818152600860205260409020546001600160a01b031680610ae15760405163c5723b5160e01b815260040160405180910390fd5b919050565b600280546103de9061159f565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b5f610b6a338484610db3565b9392505050565b610b7c8585856105a8565b6001600160a01b0384163b15801590610c135750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610bc69033908a9089908990899060040161164d565b6020604051808303815f875af1158015610be2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c069190611626565b6001600160e01b03191614155b1561091c57604051633da6393160e01b815260040160405180910390fd5b604080518082019091526005815264173539b7b760d91b6020820152606090600c610c5b84610f58565b604051602001610c6b919061169f565b60408051601f1981840301815290829052610c8b929184906020016116ba565b604051602081830303815290604052915050919050565b600c80546103de9061159f565b5f546001600160a01b03163314610cd8576040516282b42960e81b815260040160405180910390fd5b600c610ce48282611795565b5050565b5f546001600160a01b03163314610d11576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610d38576040516349e27cff60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b5f610dae7f0000000000000000000000000000000000000000000000000000000000000000600a611935565b905090565b5f80610dbd610d82565b6001600160a01b038087165f818152600460205260408082208054948a1683529082205492825293945091929091869190610df883866115eb565b90915550506001600160a01b038087165f90815260046020908152604080832080548a019055928a168252600b9052205460ff16610e87576001600160a01b0387165f90815260046020526040812054610e53908590611943565b610e5d8585611943565b610e6791906115eb565b90505f5b81811015610e8457610e7c89610fe8565b600101610e6b565b50505b6001600160a01b0386165f908152600b602052604090205460ff16610efe575f610eb18483611943565b6001600160a01b0388165f90815260046020526040902054610ed4908690611943565b610ede91906115eb565b90505f5b81811015610efb57610ef388611109565b600101610ee2565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148787604051610f4391815260200190565b60405180910390a35060019695505050505050565b60605f610f6483611211565b60010190505f8167ffffffffffffffff811115610f8357610f836114e0565b6040519080825280601f01601f191660200182016040528015610fad576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610fb757509392505050565b6001600160a01b03811661100f57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f9081526009602052604081208054611034906001906115eb565b81548110611044576110446115fe565b905f5260205f200154905060095f836001600160a01b03166001600160a01b031681526020019081526020015f2080548061108157611081611612565b5f828152602080822083015f19908101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b031990811690915560069092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03811661113057604051634e46966960e11b815260040160405180910390fd5b60038054600101908190555f818152600860205260409020546001600160a01b0316156111705760405163119b4fd360e11b815260040160405180910390fd5b5f81815260086020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558084526009835290832080546001818101835582865293852001859055925290546111c791906115eb565b5f828152600a602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061124f5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061127b576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061129957662386f26fc10000830492506010015b6305f5e10083106112b1576305f5e100830492506008015b61271083106112c557612710830492506004015b606483106112d7576064830492506002015b600a83106105a25760010192915050565b5f5b838110156113025781810151838201526020016112ea565b50505f910152565b602081525f82518060208401526113288160408501602087016112e8565b601f01601f19169190910160400192915050565b5f6020828403121561134c575f80fd5b5035919050565b80356001600160a01b0381168114610ae1575f80fd5b5f806040838503121561137a575f80fd5b61138383611353565b946020939093013593505050565b5f805f606084860312156113a3575f80fd5b6113ac84611353565b92506113ba60208501611353565b9150604084013590509250925092565b5f80604083850312156113db575f80fd5b6113e483611353565b9150602083013580151581146113f8575f80fd5b809150509250929050565b5f60208284031215611413575f80fd5b610b6a82611353565b5f805f805f60808688031215611430575f80fd5b61143986611353565b945061144760208701611353565b935060408601359250606086013567ffffffffffffffff8082111561146a575f80fd5b818801915088601f83011261147d575f80fd5b81358181111561148b575f80fd5b89602082850101111561149c575f80fd5b9699959850939650602001949392505050565b5f80604083850312156114c0575f80fd5b6114c983611353565b91506114d760208401611353565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215611504575f80fd5b813567ffffffffffffffff8082111561151b575f80fd5b818401915084601f83011261152e575f80fd5b813581811115611540576115406114e0565b604051601f8201601f19908116603f01168101908382118183101715611568576115686114e0565b81604052828152876020848701011115611580575f80fd5b826020860160208301375f928101602001929092525095945050505050565b600181811c908216806115b357607f821691505b6020821081036115d157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156105a2576105a26115d7565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b5f60208284031215611636575f80fd5b81516001600160e01b031981168114610b6a575f80fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290525f828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b5f82516116b08184602087016112e8565b9190910192915050565b5f8085546116c78161159f565b600182811680156116df57600181146116f457611720565b60ff1984168752821515830287019450611720565b895f526020805f205f5b858110156117175781548a8201529084019082016116fe565b50505082870194505b5050505084516117348183602089016112e8565b84519101906117478183602088016112e8565b0195945050505050565b601f82111561091f57805f5260205f20601f840160051c810160208510156117765750805b601f840160051c820191505b8181101561091c575f8155600101611782565b815167ffffffffffffffff8111156117af576117af6114e0565b6117c3816117bd845461159f565b84611751565b602080601f8311600181146117f6575f84156117df5750858301515b5f19600386901b1c1916600185901b17855561184d565b5f85815260208120601f198616915b8281101561182457888601518255948401946001909101908401611805565b508582101561184157878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b600181815b8085111561188f57815f1904821115611875576118756115d7565b8085161561188257918102915b93841c939080029061185a565b509250929050565b5f826118a5575060016105a2565b816118b157505f6105a2565b81600181146118c757600281146118d1576118ed565b60019150506105a2565b60ff8411156118e2576118e26115d7565b50506001821b6105a2565b5060208310610133831016604e8410600b8410161715611910575081810a6105a2565b61191a8383611855565b805f190482111561192d5761192d6115d7565b029392505050565b5f610b6a60ff841683611897565b5f8261195d57634e487b7160e01b5f52601260045260245ffd5b50049056fea26469706673582212207f953e903a389e41c5c043ba4da8442adc861446a0d203eab7e99d56e3c214fe64736f6c6343000818003368747470733a2f2f617175612d776f6e64657266756c2d696d70616c612d3439352e6d7970696e6174612e636c6f75642f697066732f516d4e59566b774339394b6e6f75436638344c447556725378626138426b4c35486b5470673839714434465469542f

Deployed Bytecode

0x608060405234801561000f575f80fd5b5060043610610153575f3560e01c80638da5cb5b116100bf578063c87b56dd11610079578063c87b56dd14610339578063d547cfb71461034c578063dd62ed3e14610354578063e0df5b6f1461037e578063e985e9c514610391578063f2fde38b146103be575f80fd5b80638da5cb5b146102c457806395d89b41146102d65780639b19251a146102de578063a22cb46514610300578063a9059cbb14610313578063b88d4fde14610326575f80fd5b8063313ce56711610110578063313ce5671461022a57806342842e0e146102635780634f02c4201461027657806353d6fd591461027f5780636352211e1461029257806370a08231146102a5575f80fd5b806306fdde0314610157578063081812fc14610175578063095ea7b3146101b557806318160ddd146101d857806323b872dd1461020d5780632b96895814610222575b5f80fd5b61015f6103d1565b60405161016c919061130a565b60405180910390f35b61019d61018336600461133c565b60066020525f90815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161016c565b6101c86101c3366004611369565b61045d565b604051901515815260200161016c565b6101ff7f00000000000000000000000000000000000000000000008ac7230489e800000081565b60405190815260200161016c565b61022061021b366004611391565b6105a8565b005b610220610924565b6102517f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff909116815260200161016c565b610220610271366004611391565b610988565b6101ff60035481565b61022061028d3660046113ca565b610a59565b61019d6102a036600461133c565b610aac565b6101ff6102b3366004611403565b60046020525f908152604090205481565b5f5461019d906001600160a01b031681565b61015f610ae6565b6101c86102ec366004611403565b600b6020525f908152604090205460ff1681565b61022061030e3660046113ca565b610af3565b6101c8610321366004611369565b610b5e565b61022061033436600461141c565b610b71565b61015f61034736600461133c565b610c31565b61015f610ca2565b6101ff6103623660046114af565b600560209081525f928352604080842090915290825290205481565b61022061038c3660046114f4565b610caf565b6101c861039f3660046114af565b600760209081525f928352604080842090915290825290205460ff1681565b6102206103cc366004611403565b610ce8565b600180546103de9061159f565b80601f016020809104026020016040519081016040528092919081815260200182805461040a9061159f565b80156104555780601f1061042c57610100808354040283529160200191610455565b820191905f5260205f20905b81548152906001019060200180831161043857829003601f168201915b505050505081565b5f600354821115801561046f57505f82115b15610543575f828152600860205260409020546001600160a01b03163381148015906104be57506001600160a01b0381165f90815260076020908152604080832033845290915290205460ff16155b156104db576040516282b42960e81b815260040160405180910390fd5b5f8381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35061059e565b335f8181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b60035481116108b8575f818152600860205260409020546001600160a01b038481169116146105ea57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661061157604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061064d57506001600160a01b0383165f90815260076020908152604080832033845290915290205460ff16155b801561066f57505f818152600660205260409020546001600160a01b03163314155b1561068c576040516282b42960e81b815260040160405180910390fd5b610694610d82565b6001600160a01b0384165f90815260046020526040812080549091906106bb9084906115eb565b909155506106c99050610d82565b6001600160a01b038084165f81815260046020908152604080832080549096019095558582526008815284822080546001600160a01b031990811690941790556006815284822080549093169092559186168252600990529081208054610732906001906115eb565b81548110610742576107426115fe565b5f9182526020808320909101546001600160a01b0387168352600982526040808420868552600a90935290922054815492935083928110610785576107856115fe565b5f9182526020808320909101929092556001600160a01b03861681526009909152604090208054806107b9576107b9611612565b5f828152602080822083015f19908101839055909201909255838252600a8152604080832054848452818420556001600160a01b03861680845260098352908320805460018181018355828652938520018690559252905461081b91906115eb565b5f838152600a602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314876108a1610d82565b60405190815260200160405180910390a350505050565b6001600160a01b0383165f9081526005602090815260408083203384529091529020545f198114610911576108ed82826115eb565b6001600160a01b0385165f9081526005602090815260408083203384529091529020555b61091c848484610db3565b50505b505050565b5f546001600160a01b0316331461094d576040516282b42960e81b815260040160405180910390fd5b5f80546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b6109938383836105a8565b6001600160a01b0382163b15801590610a3b5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af1158015610a0a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2e9190611626565b6001600160e01b03191614155b1561091f57604051633da6393160e01b815260040160405180910390fd5b5f546001600160a01b03163314610a82576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091165f908152600b60205260409020805460ff1916911515919091179055565b5f818152600860205260409020546001600160a01b031680610ae15760405163c5723b5160e01b815260040160405180910390fd5b919050565b600280546103de9061159f565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b5f610b6a338484610db3565b9392505050565b610b7c8585856105a8565b6001600160a01b0384163b15801590610c135750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610bc69033908a9089908990899060040161164d565b6020604051808303815f875af1158015610be2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c069190611626565b6001600160e01b03191614155b1561091c57604051633da6393160e01b815260040160405180910390fd5b604080518082019091526005815264173539b7b760d91b6020820152606090600c610c5b84610f58565b604051602001610c6b919061169f565b60408051601f1981840301815290829052610c8b929184906020016116ba565b604051602081830303815290604052915050919050565b600c80546103de9061159f565b5f546001600160a01b03163314610cd8576040516282b42960e81b815260040160405180910390fd5b600c610ce48282611795565b5050565b5f546001600160a01b03163314610d11576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610d38576040516349e27cff60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b5f610dae7f0000000000000000000000000000000000000000000000000000000000000012600a611935565b905090565b5f80610dbd610d82565b6001600160a01b038087165f818152600460205260408082208054948a1683529082205492825293945091929091869190610df883866115eb565b90915550506001600160a01b038087165f90815260046020908152604080832080548a019055928a168252600b9052205460ff16610e87576001600160a01b0387165f90815260046020526040812054610e53908590611943565b610e5d8585611943565b610e6791906115eb565b90505f5b81811015610e8457610e7c89610fe8565b600101610e6b565b50505b6001600160a01b0386165f908152600b602052604090205460ff16610efe575f610eb18483611943565b6001600160a01b0388165f90815260046020526040902054610ed4908690611943565b610ede91906115eb565b90505f5b81811015610efb57610ef388611109565b600101610ee2565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148787604051610f4391815260200190565b60405180910390a35060019695505050505050565b60605f610f6483611211565b60010190505f8167ffffffffffffffff811115610f8357610f836114e0565b6040519080825280601f01601f191660200182016040528015610fad576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610fb757509392505050565b6001600160a01b03811661100f57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f9081526009602052604081208054611034906001906115eb565b81548110611044576110446115fe565b905f5260205f200154905060095f836001600160a01b03166001600160a01b031681526020019081526020015f2080548061108157611081611612565b5f828152602080822083015f19908101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b031990811690915560069092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03811661113057604051634e46966960e11b815260040160405180910390fd5b60038054600101908190555f818152600860205260409020546001600160a01b0316156111705760405163119b4fd360e11b815260040160405180910390fd5b5f81815260086020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558084526009835290832080546001818101835582865293852001859055925290546111c791906115eb565b5f828152600a602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061124f5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061127b576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061129957662386f26fc10000830492506010015b6305f5e10083106112b1576305f5e100830492506008015b61271083106112c557612710830492506004015b606483106112d7576064830492506002015b600a83106105a25760010192915050565b5f5b838110156113025781810151838201526020016112ea565b50505f910152565b602081525f82518060208401526113288160408501602087016112e8565b601f01601f19169190910160400192915050565b5f6020828403121561134c575f80fd5b5035919050565b80356001600160a01b0381168114610ae1575f80fd5b5f806040838503121561137a575f80fd5b61138383611353565b946020939093013593505050565b5f805f606084860312156113a3575f80fd5b6113ac84611353565b92506113ba60208501611353565b9150604084013590509250925092565b5f80604083850312156113db575f80fd5b6113e483611353565b9150602083013580151581146113f8575f80fd5b809150509250929050565b5f60208284031215611413575f80fd5b610b6a82611353565b5f805f805f60808688031215611430575f80fd5b61143986611353565b945061144760208701611353565b935060408601359250606086013567ffffffffffffffff8082111561146a575f80fd5b818801915088601f83011261147d575f80fd5b81358181111561148b575f80fd5b89602082850101111561149c575f80fd5b9699959850939650602001949392505050565b5f80604083850312156114c0575f80fd5b6114c983611353565b91506114d760208401611353565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215611504575f80fd5b813567ffffffffffffffff8082111561151b575f80fd5b818401915084601f83011261152e575f80fd5b813581811115611540576115406114e0565b604051601f8201601f19908116603f01168101908382118183101715611568576115686114e0565b81604052828152876020848701011115611580575f80fd5b826020860160208301375f928101602001929092525095945050505050565b600181811c908216806115b357607f821691505b6020821081036115d157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156105a2576105a26115d7565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b5f60208284031215611636575f80fd5b81516001600160e01b031981168114610b6a575f80fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290525f828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b5f82516116b08184602087016112e8565b9190910192915050565b5f8085546116c78161159f565b600182811680156116df57600181146116f457611720565b60ff1984168752821515830287019450611720565b895f526020805f205f5b858110156117175781548a8201529084019082016116fe565b50505082870194505b5050505084516117348183602089016112e8565b84519101906117478183602088016112e8565b0195945050505050565b601f82111561091f57805f5260205f20601f840160051c810160208510156117765750805b601f840160051c820191505b8181101561091c575f8155600101611782565b815167ffffffffffffffff8111156117af576117af6114e0565b6117c3816117bd845461159f565b84611751565b602080601f8311600181146117f6575f84156117df5750858301515b5f19600386901b1c1916600185901b17855561184d565b5f85815260208120601f198616915b8281101561182457888601518255948401946001909101908401611805565b508582101561184157878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b600181815b8085111561188f57815f1904821115611875576118756115d7565b8085161561188257918102915b93841c939080029061185a565b509250929050565b5f826118a5575060016105a2565b816118b157505f6105a2565b81600181146118c757600281146118d1576118ed565b60019150506105a2565b60ff8411156118e2576118e26115d7565b50506001821b6105a2565b5060208310610133831016604e8410600b8410161715611910575081810a6105a2565b61191a8383611855565b805f190482111561192d5761192d6115d7565b029392505050565b5f610b6a60ff841683611897565b5f8261195d57634e487b7160e01b5f52601260045260245ffd5b50049056fea26469706673582212207f953e903a389e41c5c043ba4da8442adc861446a0d203eab7e99d56e3c214fe64736f6c63430008180033

Deployed Bytecode Sourcemap

30546:1062:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2214:18;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2925:46;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;2925:46:0;;;;;;-1:-1:-1;;;;;1019:32:1;;;1001:51;;989:2;974:18;2925:46:0;855:203:1;4756:642:0;;;;;;:::i;:::-;;:::i;:::-;;;1665:14:1;;1658:22;1640:41;;1628:2;1613:18;4756:642:0;1500:187:1;2450:36:0;;;;;;;;1838:25:1;;;1826:2;1811:18;2450:36:0;1692:177:1;5805:1716:0;;;;;;:::i;:::-;;:::i;:::-;;930:151;;;:::i;2350:31::-;;;;;;;;2379:4:1;2367:17;;;2349:36;;2337:2;2322:18;2350:31:0;2207:184:1;7817:405:0;;;;;;:::i;:::-;;:::i;2585:21::-;;;;;;4085:111;;;;;;:::i;:::-;;:::i;4268:193::-;;;;;;:::i;:::-;;:::i;2691:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;371:20;;;;;-1:-1:-1;;;;;371:20:0;;;2268;;;:::i;3536:41::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;5449:207;;;;;;:::i;:::-;;:::i;7580:160::-;;;;;;:::i;:::-;;:::i;8317:437::-;;;;;;:::i;:::-;;:::i;31384:221::-;;;;;;:::i;:::-;;:::i;30580:132::-;;;:::i;2805:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;31270:106;;;;;;:::i;:::-;;:::i;3036:68::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;703:219;;;;;;:::i;:::-;;:::i;2214:18::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;4756:642::-;4859:4;4894:6;;4880:10;:20;;:38;;;;;4917:1;4904:10;:14;4880:38;4876:491;;;4935:13;4951:20;;;:8;:20;;;;;;-1:-1:-1;;;;;4951:20:0;4992:10;:19;;;;;:59;;-1:-1:-1;;;;;;5016:23:0;;;;;;:16;:23;;;;;;;;5040:10;5016:35;;;;;;;;;;5015:36;4992:59;4988:121;;;5079:14;;-1:-1:-1;;;5079:14:0;;;;;;;;;;;4988:121;5125:23;;;;:11;:23;;;;;;;;;:33;;-1:-1:-1;;;;;;5125:33:0;-1:-1:-1;;;;;5125:33:0;;;;;;;;;5180:36;;1838:25:1;;;5180:36:0;;;;;;1811:18:1;5180:36:0;;;;;;;4920:308;4876:491;;;5259:10;5249:21;;;;:9;:21;;;;;;;;-1:-1:-1;;;;;5249:30:0;;;;;;;;;;;;:43;;;5314:41;1838:25:1;;;5249:30:0;;5259:10;5314:41;;1811:18:1;5314:41:0;;;;;;;4876:491;-1:-1:-1;5386:4:0;4756:642;;;;;:::o;5805:1716::-;5951:6;;5937:10;:20;5933:1581;;5986:20;;;;:8;:20;;;;;;-1:-1:-1;;;;;5978:28:0;;;5986:20;;5978:28;5974:91;;6034:15;;-1:-1:-1;;;6034:15:0;;;;;;;;;;;5974:91;-1:-1:-1;;;;;6085:16:0;;6081:82;;6129:18;;-1:-1:-1;;;6129:18:0;;;;;;;;;;;6081:82;6201:10;-1:-1:-1;;;;;6201:18:0;;;;;;:74;;-1:-1:-1;;;;;;6241:22:0;;;;;;:16;:22;;;;;;;;6264:10;6241:34;;;;;;;;;;6240:35;6201:74;:132;;;;-1:-1:-1;6310:23:0;;;;:11;:23;;;;;;-1:-1:-1;;;;;6310:23:0;6296:10;:37;;6201:132;6179:226;;;6375:14;;-1:-1:-1;;;6375:14:0;;;;;;;;;;;6179:226;6440:10;:8;:10::i;:::-;-1:-1:-1;;;;;6421:15:0;;;;;;:9;:15;;;;;:29;;:15;;;:29;;;;;:::i;:::-;;;;-1:-1:-1;6513:10:0;;-1:-1:-1;6513:8:0;:10::i;:::-;-1:-1:-1;;;;;6496:13:0;;;;;;;:9;:13;;;;;;;;:27;;;;;;;;6555:20;;;:8;:20;;;;;:25;;-1:-1:-1;;;;;;6555:25:0;;;;;;;;6602:11;:23;;;;;6595:30;;;;;;;;6703:12;;;;;:6;:12;;;;;6716:19;;:23;;-1:-1:-1;;6716:23:0;:::i;:::-;6703:37;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;6755:12:0;;;;:6;:12;;;;;;6768:23;;;:11;:23;;;;;;;6755:37;;6703;;-1:-1:-1;6703:37:0;;6755;;;;;;:::i;:::-;;;;;;;;;;;;:49;;;;-1:-1:-1;;;;;6839:12:0;;;;:6;:12;;;;;;:18;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;6839:18:0;;;;;;;;;;;;6943:23;;;:11;:23;;;;;;;6918:22;;;;;;:48;-1:-1:-1;;;;;7020:10:0;;;;;:6;:10;;;;;:27;;6839:18;7020:27;;;;;;;;;;;;;;;7130:10;;:17;;:21;;6839:18;7130:21;:::i;:::-;7104:23;;;;:11;:23;;;;;;:47;;;;7173:30;;7116:10;;-1:-1:-1;;;;;7173:30:0;;;;;;;;;;;7243:2;-1:-1:-1;;;;;7223:35:0;7237:4;-1:-1:-1;;;;;7223:35:0;;7247:10;:8;:10::i;:::-;7223:35;;1838:25:1;;;1826:2;1811:18;7223:35:0;;;;;;;5959:1311;5805:1716;;;:::o;5933:1581::-;-1:-1:-1;;;;;7309:15:0;;7291;7309;;;:9;:15;;;;;;;;7325:10;7309:27;;;;;;;;-1:-1:-1;;7357:28:0;;7353:101;;7434:20;7444:10;7434:7;:20;:::i;:::-;-1:-1:-1;;;;;7404:15:0;;;;;;:9;:15;;;;;;;;7420:10;7404:27;;;;;;;:50;7353:101;7471:31;7481:4;7487:2;7491:10;7471:9;:31::i;:::-;;7276:238;5933:1581;5805:1716;;;:::o;930:151::-;458:5;;-1:-1:-1;;;;;458:5:0;444:10;:19;440:46;;472:14;;-1:-1:-1;;;472:14:0;;;;;;;;;;;440:46;1009:1:::1;993:18:::0;;-1:-1:-1;;;;;;993:18:0::1;::::0;;1029:44:::1;::::0;1050:10:::1;::::0;1029:44:::1;::::0;1009:1;;1029:44:::1;930:151::o:0;7817:405::-;7941:26;7954:4;7960:2;7964;7941:12;:26::i;:::-;-1:-1:-1;;;;;7998:14:0;;;:19;;;;:154;;-1:-1:-1;8034:61:0;;-1:-1:-1;;;8034:61:0;;;8070:10;8034:61;;;6295:34:1;-1:-1:-1;;;;;6365:15:1;;;6345:18;;;6338:43;6397:18;;;6390:34;;;6460:3;6440:18;;;6433:31;-1:-1:-1;6480:19:1;;;6473:30;8112:40:0;;8034:35;;;;8112:40;;6520:19:1;;8034:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;8034:118:0;;;7998:154;7980:235;;;8186:17;;-1:-1:-1;;;8186:17:0;;;;;;;;;;;4085:111;458:5;;-1:-1:-1;;;;;458:5:0;444:10;:19;440:46;;472:14;;-1:-1:-1;;;472:14:0;;;;;;;;;;;440:46;-1:-1:-1;;;;;4163:17:0;;;::::1;;::::0;;;:9:::1;:17;::::0;;;;:25;;-1:-1:-1;;4163:25:0::1;::::0;::::1;;::::0;;;::::1;::::0;;4085:111::o;4268:193::-;4326:13;4360:12;;;:8;:12;;;;;;-1:-1:-1;;;;;4360:12:0;;4385:69;;4432:10;;-1:-1:-1;;;4432:10:0;;;;;;;;;;;4385:69;4268:193;;;:::o;2268:20::-;;;;;;;:::i;5449:207::-;5552:10;5535:28;;;;:16;:28;;;;;;;;-1:-1:-1;;;;;5535:38:0;;;;;;;;;;;;:49;;-1:-1:-1;;5535:49:0;;;;;;;;;;5602:46;;1640:41:1;;;5535:38:0;;5552:10;5602:46;;1613:18:1;5602:46:0;;;;;;;5449:207;;:::o;7580:160::-;7675:4;7699:33;7709:10;7721:2;7725:6;7699:9;:33::i;:::-;7692:40;7580:160;-1:-1:-1;;;7580:160:0:o;8317:437::-;8471:26;8484:4;8490:2;8494;8471:12;:26::i;:::-;-1:-1:-1;;;;;8528:14:0;;;:19;;;;:156;;-1:-1:-1;8564:63:0;;-1:-1:-1;;;8564:63:0;;;8644:40;-1:-1:-1;;;;;8564:35:0;;;8644:40;;8564:63;;8600:10;;8612:4;;8618:2;;8622:4;;;;8564:63;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;8564:120:0;;;8528:156;8510:237;;;8718:17;;-1:-1:-1;;;8718:17:0;;;;;;;;;;;31384:221;31470:34;;;;;;;;;;;;-1:-1:-1;;;31470:34:0;;;;31444:13;;31536:12;31564:20;31581:2;31564:16;:20::i;:::-;31550:35;;;;;;;;:::i;:::-;;;;-1:-1:-1;;31550:35:0;;;;;;;;;;31522:75;;;31586:10;;31550:35;31522:75;;:::i;:::-;;;;;;;;;;;;;31515:82;;;31384:221;;;:::o;30580:132::-;;;;;;;:::i;31270:106::-;458:5;;-1:-1:-1;;;;;458:5:0;444:10;:19;440:46;;472:14;;-1:-1:-1;;;472:14:0;;;;;;;;;;;440:46;31344:12:::1;:24;31359:9:::0;31344:12;:24:::1;:::i;:::-;;31270:106:::0;:::o;703:219::-;458:5;;-1:-1:-1;;;;;458:5:0;444:10;:19;440:46;;472:14;;-1:-1:-1;;;472:14:0;;;;;;;;;;;440:46;-1:-1:-1;;;;;786:20:0;::::1;782:47;;815:14;;-1:-1:-1::0;;;815:14:0::1;;;;;;;;;;;782:47;842:5;:14:::0;;-1:-1:-1;;;;;;842:14:0::1;-1:-1:-1::0;;;;;842:14:0;::::1;::::0;;::::1;::::0;;874:40:::1;::::0;842:14;;895:10:::1;::::0;874:40:::1;::::0;842:5;874:40:::1;703:219:::0;:::o;9954:92::-;9997:7;10024:14;10030:8;10024:2;:14;:::i;:::-;10017:21;;9954:92;:::o;8822:1093::-;8935:4;8952:12;8967:10;:8;:10::i;:::-;-1:-1:-1;;;;;9018:15:0;;;8988:27;9018:15;;;:9;:15;;;;;;;;9076:13;;;;;;;;;9102:15;;;8952:25;;-1:-1:-1;9018:15:0;;9076:13;;9121:6;;9018:15;9102:25;9121:6;9018:15;9102:25;:::i;:::-;;;;-1:-1:-1;;;;;;;9165:13:0;;;;;;;:9;:13;;;;;;;;:23;;;;;;9273:15;;;;;:9;:15;;;;;;9268:251;;-1:-1:-1;;;;;9379:15:0;;9305:22;9379:15;;;:9;:15;;;;;;:22;;9397:4;;9379:22;:::i;:::-;9331:26;9353:4;9331:19;:26;:::i;:::-;9330:72;;;;:::i;:::-;9305:97;;9422:9;9417:91;9441:14;9437:1;:18;9417:91;;;9481:11;9487:4;9481:5;:11::i;:::-;9457:3;;9417:91;;;;9290:229;9268:251;-1:-1:-1;;;;;9595:13:0;;;;;;:9;:13;;;;;;;;9590:247;;9625:22;9693:28;9717:4;9693:21;:28;:::i;:::-;-1:-1:-1;;;;;9651:13:0;;;;;;:9;:13;;;;;;:20;;9667:4;;9651:20;:::i;:::-;9650:72;;;;:::i;:::-;9625:97;;9742:9;9737:89;9761:14;9757:1;:18;9737:89;;;9801:9;9807:2;9801:5;:9::i;:::-;9777:3;;9737:89;;;;9610:227;9590:247;9874:2;-1:-1:-1;;;;;9854:31:0;9868:4;-1:-1:-1;;;;;9854:31:0;;9878:6;9854:31;;;;1838:25:1;;1826:2;1811:18;;1692:177;9854:31:0;;;;;;;;-1:-1:-1;9903:4:0;;8822:1093;-1:-1:-1;;;;;;8822:1093:0:o;28011:718::-;28067:13;28118:14;28135:17;28146:5;28135:10;:17::i;:::-;28155:1;28135:21;28118:38;;28171:20;28205:6;28194:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28194:18:0;-1:-1:-1;28171:41:0;-1:-1:-1;28336:28:0;;;28352:2;28336:28;28393:290;-1:-1:-1;;28425:5:0;-1:-1:-1;;;28562:2:0;28551:14;;28546:32;28425:5;28533:46;28625:2;28616:11;;;-1:-1:-1;28646:21:0;28393:290;28646:21;-1:-1:-1;28704:6:0;28011:718;-1:-1:-1;;;28011:718:0:o;10536:373::-;-1:-1:-1;;;;;10597:18:0;;10593:73;;10639:15;;-1:-1:-1;;;10639:15:0;;;;;;;;;;;10593:73;-1:-1:-1;;;;;10691:12:0;;10678:10;10691:12;;;:6;:12;;;;;10704:19;;:23;;10726:1;;10704:23;:::i;:::-;10691:37;;;;;;;;:::i;:::-;;;;;;;;;10678:50;;10739:6;:12;10746:4;-1:-1:-1;;;;;10739:12:0;-1:-1:-1;;;;;10739:12:0;;;;;;;;;;;;:18;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;10739:18:0;;;;;;;;;;;;10775:15;;;:11;:15;;;;;;10768:22;;;10808:8;:12;;;;;10801:19;;-1:-1:-1;;;;;;10801:19:0;;;;;;10838:11;:15;;;;;;10831:22;;;;;;;;10871:30;10787:2;;10739:18;-1:-1:-1;;;;;10871:30:0;;;;;10739:18;;10871:30;10582:327;10536:373;:::o;10054:474::-;-1:-1:-1;;;;;10113:16:0;;10109:74;;10153:18;;-1:-1:-1;;;10153:18:0;;;;;;;;;;;10109:74;10220:6;:8;;;;;;;;:6;10288:12;;;:8;:12;;;;;;-1:-1:-1;;;;;10288:12:0;:26;10284:81;;10338:15;;-1:-1:-1;;;10338:15:0;;;;;;;;;;;10284:81;10377:12;;;;:8;:12;;;;;;;;:17;;-1:-1:-1;;;;;;10377:17:0;-1:-1:-1;;;;;10377:17:0;;;;;;;;10405:10;;;:6;:10;;;;;:19;;-1:-1:-1;10405:19:0;;;;;;;;;;;;;;;10453:10;;:17;;:21;;-1:-1:-1;10453:21:0;:::i;:::-;10435:15;;;;:11;:15;;;;;;:39;;;;10492:28;;10447:2;;-1:-1:-1;;;;;10492:28:0;;;;;10435:15;;10492:28;10098:430;10054:474;:::o;23407:948::-;23460:7;;-1:-1:-1;;;23538:17:0;;23534:106;;-1:-1:-1;;;23576:17:0;;;-1:-1:-1;23622:2:0;23612:12;23534:106;23667:8;23658:5;:17;23654:106;;23705:8;23696:17;;;-1:-1:-1;23742:2:0;23732:12;23654:106;23787:8;23778:5;:17;23774:106;;23825:8;23816:17;;;-1:-1:-1;23862:2:0;23852:12;23774:106;23907:7;23898:5;:16;23894:103;;23944:7;23935:16;;;-1:-1:-1;23980:1:0;23970:11;23894:103;24024:7;24015:5;:16;24011:103;;24061:7;24052:16;;;-1:-1:-1;24097:1:0;24087:11;24011:103;24141:7;24132:5;:16;24128:103;;24178:7;24169:16;;;-1:-1:-1;24214:1:0;24204:11;24128:103;24258:7;24249:5;:16;24245:68;;24296:1;24286:11;24341:6;23407:948;-1:-1:-1;;23407:948:0:o;14:250:1:-;99:1;109:113;123:6;120:1;117:13;109:113;;;199:11;;;193:18;180:11;;;173:39;145:2;138:10;109:113;;;-1:-1:-1;;256:1:1;238:16;;231:27;14:250::o;269:396::-;418:2;407:9;400:21;381:4;450:6;444:13;493:6;488:2;477:9;473:18;466:34;509:79;581:6;576:2;565:9;561:18;556:2;548:6;544:15;509:79;:::i;:::-;649:2;628:15;-1:-1:-1;;624:29:1;609:45;;;;656:2;605:54;;269:396;-1:-1:-1;;269:396:1:o;670:180::-;729:6;782:2;770:9;761:7;757:23;753:32;750:52;;;798:1;795;788:12;750:52;-1:-1:-1;821:23:1;;670:180;-1:-1:-1;670:180:1:o;1063:173::-;1131:20;;-1:-1:-1;;;;;1180:31:1;;1170:42;;1160:70;;1226:1;1223;1216:12;1241:254;1309:6;1317;1370:2;1358:9;1349:7;1345:23;1341:32;1338:52;;;1386:1;1383;1376:12;1338:52;1409:29;1428:9;1409:29;:::i;:::-;1399:39;1485:2;1470:18;;;;1457:32;;-1:-1:-1;;;1241:254:1:o;1874:328::-;1951:6;1959;1967;2020:2;2008:9;1999:7;1995:23;1991:32;1988:52;;;2036:1;2033;2026:12;1988:52;2059:29;2078:9;2059:29;:::i;:::-;2049:39;;2107:38;2141:2;2130:9;2126:18;2107:38;:::i;:::-;2097:48;;2192:2;2181:9;2177:18;2164:32;2154:42;;1874:328;;;;;:::o;2396:347::-;2461:6;2469;2522:2;2510:9;2501:7;2497:23;2493:32;2490:52;;;2538:1;2535;2528:12;2490:52;2561:29;2580:9;2561:29;:::i;:::-;2551:39;;2640:2;2629:9;2625:18;2612:32;2687:5;2680:13;2673:21;2666:5;2663:32;2653:60;;2709:1;2706;2699:12;2653:60;2732:5;2722:15;;;2396:347;;;;;:::o;2748:186::-;2807:6;2860:2;2848:9;2839:7;2835:23;2831:32;2828:52;;;2876:1;2873;2866:12;2828:52;2899:29;2918:9;2899:29;:::i;2939:808::-;3036:6;3044;3052;3060;3068;3121:3;3109:9;3100:7;3096:23;3092:33;3089:53;;;3138:1;3135;3128:12;3089:53;3161:29;3180:9;3161:29;:::i;:::-;3151:39;;3209:38;3243:2;3232:9;3228:18;3209:38;:::i;:::-;3199:48;;3294:2;3283:9;3279:18;3266:32;3256:42;;3349:2;3338:9;3334:18;3321:32;3372:18;3413:2;3405:6;3402:14;3399:34;;;3429:1;3426;3419:12;3399:34;3467:6;3456:9;3452:22;3442:32;;3512:7;3505:4;3501:2;3497:13;3493:27;3483:55;;3534:1;3531;3524:12;3483:55;3574:2;3561:16;3600:2;3592:6;3589:14;3586:34;;;3616:1;3613;3606:12;3586:34;3661:7;3656:2;3647:6;3643:2;3639:15;3635:24;3632:37;3629:57;;;3682:1;3679;3672:12;3629:57;2939:808;;;;-1:-1:-1;2939:808:1;;-1:-1:-1;3713:2:1;3705:11;;3735:6;2939:808;-1:-1:-1;;;2939:808:1:o;3752:260::-;3820:6;3828;3881:2;3869:9;3860:7;3856:23;3852:32;3849:52;;;3897:1;3894;3887:12;3849:52;3920:29;3939:9;3920:29;:::i;:::-;3910:39;;3968:38;4002:2;3991:9;3987:18;3968:38;:::i;:::-;3958:48;;3752:260;;;;;:::o;4017:127::-;4078:10;4073:3;4069:20;4066:1;4059:31;4109:4;4106:1;4099:15;4133:4;4130:1;4123:15;4149:922;4218:6;4271:2;4259:9;4250:7;4246:23;4242:32;4239:52;;;4287:1;4284;4277:12;4239:52;4327:9;4314:23;4356:18;4397:2;4389:6;4386:14;4383:34;;;4413:1;4410;4403:12;4383:34;4451:6;4440:9;4436:22;4426:32;;4496:7;4489:4;4485:2;4481:13;4477:27;4467:55;;4518:1;4515;4508:12;4467:55;4554:2;4541:16;4576:2;4572;4569:10;4566:36;;;4582:18;;:::i;:::-;4657:2;4651:9;4625:2;4711:13;;-1:-1:-1;;4707:22:1;;;4731:2;4703:31;4699:40;4687:53;;;4755:18;;;4775:22;;;4752:46;4749:72;;;4801:18;;:::i;:::-;4841:10;4837:2;4830:22;4876:2;4868:6;4861:18;4916:7;4911:2;4906;4902;4898:11;4894:20;4891:33;4888:53;;;4937:1;4934;4927:12;4888:53;4993:2;4988;4984;4980:11;4975:2;4967:6;4963:15;4950:46;5038:1;5016:15;;;5033:2;5012:24;5005:35;;;;-1:-1:-1;5020:6:1;4149:922;-1:-1:-1;;;;;4149:922:1:o;5076:380::-;5155:1;5151:12;;;;5198;;;5219:61;;5273:4;5265:6;5261:17;5251:27;;5219:61;5326:2;5318:6;5315:14;5295:18;5292:38;5289:161;;5372:10;5367:3;5363:20;5360:1;5353:31;5407:4;5404:1;5397:15;5435:4;5432:1;5425:15;5289:161;;5076:380;;;:::o;5461:127::-;5522:10;5517:3;5513:20;5510:1;5503:31;5553:4;5550:1;5543:15;5577:4;5574:1;5567:15;5593:128;5660:9;;;5681:11;;;5678:37;;;5695:18;;:::i;5726:127::-;5787:10;5782:3;5778:20;5775:1;5768:31;5818:4;5815:1;5808:15;5842:4;5839:1;5832:15;5858:127;5919:10;5914:3;5910:20;5907:1;5900:31;5950:4;5947:1;5940:15;5974:4;5971:1;5964:15;6550:290;6619:6;6672:2;6660:9;6651:7;6647:23;6643:32;6640:52;;;6688:1;6685;6678:12;6640:52;6714:16;;-1:-1:-1;;;;;;6759:32:1;;6749:43;;6739:71;;6806:1;6803;6796:12;6845:662;-1:-1:-1;;;;;7124:15:1;;;7106:34;;7176:15;;7171:2;7156:18;;7149:43;7223:2;7208:18;;7201:34;;;7271:3;7266:2;7251:18;;7244:31;;;7291:19;;7284:35;;;7049:4;7312:6;7362;7086:3;7341:19;;7328:49;7427:1;7421:3;7412:6;7401:9;7397:22;7393:32;7386:43;7497:3;7490:2;7486:7;7481:2;7473:6;7469:15;7465:29;7454:9;7450:45;7446:55;7438:63;;6845:662;;;;;;;;:::o;7512:289::-;7643:3;7681:6;7675:13;7697:66;7756:6;7751:3;7744:4;7736:6;7732:17;7697:66;:::i;:::-;7779:16;;;;;7512:289;-1:-1:-1;;7512:289:1:o;7932:1228::-;8156:3;8185:1;8218:6;8212:13;8248:36;8274:9;8248:36;:::i;:::-;8303:1;8320:17;;;8346:133;;;;8493:1;8488:358;;;;8313:533;;8346:133;-1:-1:-1;;8379:24:1;;8367:37;;8452:14;;8445:22;8433:35;;8424:45;;;-1:-1:-1;8346:133:1;;8488:358;8519:6;8516:1;8509:17;8549:4;8594;8591:1;8581:18;8621:1;8635:165;8649:6;8646:1;8643:13;8635:165;;;8727:14;;8714:11;;;8707:35;8770:16;;;;8664:10;;8635:165;;;8639:3;;;8829:6;8824:3;8820:16;8813:23;;8313:533;;;;;8877:6;8871:13;8893:68;8952:8;8947:3;8940:4;8932:6;8928:17;8893:68;:::i;:::-;9026:13;;8983:18;;;9048:70;9026:13;8983:18;9095:4;9083:17;;9048:70;:::i;:::-;9134:20;;7932:1228;-1:-1:-1;;;;;7932:1228:1:o;9165:518::-;9267:2;9262:3;9259:11;9256:421;;;9303:5;9300:1;9293:16;9347:4;9344:1;9334:18;9417:2;9405:10;9401:19;9398:1;9394:27;9388:4;9384:38;9453:4;9441:10;9438:20;9435:47;;;-1:-1:-1;9476:4:1;9435:47;9531:2;9526:3;9522:12;9519:1;9515:20;9509:4;9505:31;9495:41;;9586:81;9604:2;9597:5;9594:13;9586:81;;;9663:1;9649:16;;9630:1;9619:13;9586:81;;9859:1345;9985:3;9979:10;10012:18;10004:6;10001:30;9998:56;;;10034:18;;:::i;:::-;10063:97;10153:6;10113:38;10145:4;10139:11;10113:38;:::i;:::-;10107:4;10063:97;:::i;:::-;10215:4;;10272:2;10261:14;;10289:1;10284:663;;;;10991:1;11008:6;11005:89;;;-1:-1:-1;11060:19:1;;;11054:26;11005:89;-1:-1:-1;;9816:1:1;9812:11;;;9808:24;9804:29;9794:40;9840:1;9836:11;;;9791:57;11107:81;;10254:944;;10284:663;7879:1;7872:14;;;7916:4;7903:18;;-1:-1:-1;;10320:20:1;;;10438:236;10452:7;10449:1;10446:14;10438:236;;;10541:19;;;10535:26;10520:42;;10633:27;;;;10601:1;10589:14;;;;10468:19;;10438:236;;;10442:3;10702:6;10693:7;10690:19;10687:201;;;10763:19;;;10757:26;-1:-1:-1;;10846:1:1;10842:14;;;10858:3;10838:24;10834:37;10830:42;10815:58;10800:74;;10687:201;;;10934:1;10925:6;10922:1;10918:14;10914:22;10908:4;10901:36;10254:944;;;;;9859:1345;;:::o;11209:416::-;11298:1;11335:5;11298:1;11349:270;11370:7;11360:8;11357:21;11349:270;;;11429:4;11425:1;11421:6;11417:17;11411:4;11408:27;11405:53;;;11438:18;;:::i;:::-;11488:7;11478:8;11474:22;11471:55;;;11508:16;;;;11471:55;11587:22;;;;11547:15;;;;11349:270;;;11353:3;11209:416;;;;;:::o;11630:806::-;11679:5;11709:8;11699:80;;-1:-1:-1;11750:1:1;11764:5;;11699:80;11798:4;11788:76;;-1:-1:-1;11835:1:1;11849:5;;11788:76;11880:4;11898:1;11893:59;;;;11966:1;11961:130;;;;11873:218;;11893:59;11923:1;11914:10;;11937:5;;;11961:130;11998:3;11988:8;11985:17;11982:43;;;12005:18;;:::i;:::-;-1:-1:-1;;12061:1:1;12047:16;;12076:5;;11873:218;;12175:2;12165:8;12162:16;12156:3;12150:4;12147:13;12143:36;12137:2;12127:8;12124:16;12119:2;12113:4;12110:12;12106:35;12103:77;12100:159;;;-1:-1:-1;12212:19:1;;;12244:5;;12100:159;12291:34;12316:8;12310:4;12291:34;:::i;:::-;12361:6;12357:1;12353:6;12349:19;12340:7;12337:32;12334:58;;;12372:18;;:::i;:::-;12410:20;;11630:806;-1:-1:-1;;;11630:806:1:o;12441:140::-;12499:5;12528:47;12569:4;12559:8;12555:19;12549:4;12528:47;:::i;12718:217::-;12758:1;12784;12774:132;;12828:10;12823:3;12819:20;12816:1;12809:31;12863:4;12860:1;12853:15;12891:4;12888:1;12881:15;12774:132;-1:-1:-1;12920:9:1;;12718:217::o

Swarm Source

ipfs://7f953e903a389e41c5c043ba4da8442adc861446a0d203eab7e99d56e3c214fe
Loading...
Loading
Loading...
Loading
[ 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.