ETH Price: $3,251.60 (-3.68%)

Rug (RUG)
 

Overview

TokenID

6128

Total Transfers

-

Market

Price

$9.68 @ 0.002977 ETH (-0.01%)

Onchain Market Cap

$96,800.00

Circulating Supply Market Cap

$96,802.00

Other Info

Token Contract (WITH 18 Decimals)

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

OVERVIEW

We name this token $RUG. It is a birthmark of this collection. It helps us remember where we were from and how a community-driven project can have a second life from dust.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Rugged

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 4 : Rugged.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/utils/Strings.sol";

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;
    }
}

/// @notice Flippies based on ERC404
///         A gas-efficient, mixed ERC20 / ERC721 implementation
///         with native liquidity and fractionalization.
///
///         This is an experimental standard designed to integrate
///         with pre-existing ERC20 / ERC721 support as smoothly as
///         possible.
///
/// @dev    In order to support full functionality of ERC20 and ERC721
///         supply assumptions are made that slightly constraint usage.
///         Ensure decimals are sufficiently large (standard 18 recommended)
///         as ids are effectively encoded in the lowest range of amounts.
///
///         NFTs are spent on ERC20 functions in a FILO queue, this is by
///         design.
///
contract Rugged 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();
    error InvalidId();
    error IdNotAssigned();
    error PoolIsEmpty();
    error InvalidSetWhitelistCondition();

    // 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;

    /// NFT Metadata
    /// @dev Base URI for token metadata
    string public baseTokenURI;
    /// max supply of native tokens
    uint256 public erc721totalSupply;
    /// @dev Array of available ids
    uint256[] public tokenIdPool;

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

    // Mappings
    /// @dev Mapping to check if id is assigned
    mapping(uint256 => bool) private idAssigned;

    /// @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;
        erc721totalSupply = _totalNativeSupply;
        totalSupply = _totalNativeSupply * (10 ** decimals);
        whitelist[_owner] = true;
        balanceOf[_owner] = totalSupply;
    }

    /// @notice Initialization function to set pairs / etc
    ///         saving gas by avoiding mint / burn on unnecessary targets
    function setWhitelist(address target, bool state) public onlyOwner {
        /// only can set whitelist when target has no balance
        if (balanceOf[target] > 0) {
            revert InvalidSetWhitelistCondition();
        }
        whitelist[target] = state;
    }

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

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

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

    function tokenURI(uint256 id) public view returns (string memory) {
        if (id >= totalSupply || id <= 0) {
            revert InvalidId();
        }
        return
            string.concat(
                string.concat(baseTokenURI, Strings.toString(id)),
                ".json"
            );
    }

    /// @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 returns (bool) {
        if (amountOrId <= maxMintedId && 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 {
        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 {
        if (amountOrId <= erc721totalSupply) {
            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 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 {
        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 {
        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 _randomIdFromPool() private returns (uint256) {
        if (tokenIdPool.length == 0) {
            revert PoolIsEmpty();
        }
        uint256 randomIndex = uint256(
            keccak256(abi.encodePacked(block.timestamp, msg.sender,tokenIdPool.length))
        ) % tokenIdPool.length;
        uint256 id = tokenIdPool[randomIndex];
        tokenIdPool[randomIndex] = tokenIdPool[tokenIdPool.length - 1];
        tokenIdPool.pop();
        idAssigned[id] = true;
        return id;
    }

    function _returnIdToPool(uint256 id) private {
        if (!idAssigned[id]) {
            revert IdNotAssigned();
        }
        tokenIdPool.push(id);
        idAssigned[id] = false;
    }

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

        uint256 id;

        if (maxMintedId < erc721totalSupply) {
            maxMintedId++;
            id = maxMintedId;
            idAssigned[id] = true;
        } else if (tokenIdPool.length > 0) {
            id = _randomIdFromPool();
        } else {
            revert PoolIsEmpty();
        }

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

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

    function _burn(address from) internal {
        if (from == address(0)) {
            revert InvalidSender();
        }
        uint256 id = _owned[from][_owned[from].length - 1];
        _returnIdToPool(id);
        _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
    ) public onlyOwner {
        name = _name;
        symbol = _symbol;
    }

    function getTokenIdPool() public view returns (uint256[] memory) {
        return tokenIdPool;
    }
}

File 2 of 4 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

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

File 3 of 4 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
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;
    }
}

File 4 of 4 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

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

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"uint256","name":"_totalNativeSupply","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"IdNotAssigned","type":"error"},{"inputs":[],"name":"InvalidId","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"InvalidSetWhitelistCondition","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[],"name":"PoolIsEmpty","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":[],"name":"erc721totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenIdPool","outputs":[{"internalType":"uint256[]","name":"","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":"maxMintedId","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":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"setNameSymbol","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":"","type":"uint256"}],"name":"tokenIdPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]

60c06040523480156200001157600080fd5b5060405162002440380380620024408339810160408190526200003491620001f2565b806001600160a01b0381166200005d576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001620000b4868262000333565b506002620000c3858262000333565b5060ff831660808190526004839055620000df90600a62000514565b620000eb90836200052c565b60a08190526001600160a01b039091166000908152600f60209081526040808320805460ff191660011790556008909152902055506200054692505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200015257600080fd5b81516001600160401b03808211156200016f576200016f6200012a565b604051601f8301601f19908116603f011681019082821181831017156200019a576200019a6200012a565b8160405283815260209250866020858801011115620001b857600080fd5b600091505b83821015620001dc5785820183015181830184015290820190620001bd565b6000602085830101528094505050505092915050565b600080600080600060a086880312156200020b57600080fd5b85516001600160401b03808211156200022357600080fd5b6200023189838a0162000140565b965060208801519150808211156200024857600080fd5b50620002578882890162000140565b945050604086015160ff811681146200026f57600080fd5b6060870151608088015191945092506001600160a01b03811681146200029457600080fd5b809150509295509295909350565b600181811c90821680620002b757607f821691505b602082108103620002d857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200032e576000816000526020600020601f850160051c81016020861015620003095750805b601f850160051c820191505b818110156200032a5782815560010162000315565b5050505b505050565b81516001600160401b038111156200034f576200034f6200012a565b6200036781620003608454620002a2565b84620002de565b602080601f8311600181146200039f5760008415620003865750858301515b600019600386901b1c1916600185901b1785556200032a565b600085815260208120601f198616915b82811015620003d057888601518255948401946001909101908401620003af565b5085821015620003ef5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620004565781600019048211156200043a576200043a620003ff565b808516156200044857918102915b93841c93908002906200041a565b509250929050565b6000826200046f575060016200050e565b816200047e575060006200050e565b8160018114620004975760028114620004a257620004c2565b60019150506200050e565b60ff841115620004b657620004b6620003ff565b50506001821b6200050e565b5060208310610133831016604e8410600b8410161715620004e7575081810a6200050e565b620004f3838362000415565b80600019048211156200050a576200050a620003ff565b0290505b92915050565b60006200052560ff8416836200045e565b9392505050565b80820281158282048414176200050e576200050e620003ff565b60805160a051611ec66200057a600039600081816102670152610de60152600081816102b40152610f890152611ec66000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80638da5cb5b116100f9578063c87b56dd11610097578063dd62ed3e11610071578063dd62ed3e1461040e578063e0df5b6f14610439578063e985e9c51461044c578063f2fde38b1461047a57600080fd5b8063c87b56dd146103e0578063ca4c0e09146103f3578063d547cfb71461040657600080fd5b8063a22cb465116100d3578063a22cb46514610392578063a9059cbb146103a5578063a9e2880e146103b8578063b88d4fde146103cd57600080fd5b80638da5cb5b1461035457806395d89b41146103675780639b19251a1461036f57600080fd5b80632c88797e11610166578063504334c211610140578063504334c2146102fb57806353d6fd591461030e5780636352211e1461032157806370a082311461033457600080fd5b80632c88797e146102a6578063313ce567146102af57806342842e0e146102e857600080fd5b8063095ea7b3116101a2578063095ea7b31461023f57806318160ddd1461026257806323b872dd146102895780632b9689581461029e57600080fd5b806306fdde03146101c957806307c56001146101e7578063081812fc146101fe575b600080fd5b6101d161048d565b6040516101de9190611703565b60405180910390f35b6101f060065481565b6040519081526020016101de565b61022761020c366004611736565b600a602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101de565b61025261024d366004611766565b61051b565b60405190151581526020016101de565b6101f07f000000000000000000000000000000000000000000000000000000000000000081565b61029c610297366004611790565b61066c565b005b61029c6109f5565b6101f060045481565b6102d67f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016101de565b61029c6102f6366004611790565b610a5b565b61029c61030936600461186f565b610b30565b61029c61031c3660046118d3565b610b73565b61022761032f366004611736565b610bff565b6101f061034236600461190f565b60086020526000908152604090205481565b600054610227906001600160a01b031681565b6101d1610c3a565b61025261037d36600461190f565b600f6020526000908152604090205460ff1681565b61029c6103a03660046118d3565b610c47565b6102526103b3366004611766565b610cb3565b6103c0610cc7565b6040516101de919061192a565b61029c6103db36600461196e565b610d1f565b6101d16103ee366004611736565b610de2565b6101f0610401366004611736565b610e7e565b6101d1610e9f565b6101f061041c366004611a09565b600960209081526000928352604080842090915290825290205481565b61029c610447366004611a3c565b610eac565b61025261045a366004611a09565b600b60209081526000928352604080842090915290825290205460ff1681565b61029c61048836600461190f565b610ee6565b6001805461049a90611a79565b80601f01602080910402602001604051908101604052809291908181526020018280546104c690611a79565b80156105135780601f106104e857610100808354040283529160200191610513565b820191906000526020600020905b8154815290600101906020018083116104f657829003601f168201915b505050505081565b6000600654821115801561052f5750600082115b15610606576000828152600c60205260409020546001600160a01b031633811480159061058057506001600160a01b0381166000908152600b6020908152604080832033845290915290205460ff16155b1561059d576040516282b42960e81b815260040160405180910390fd5b6000838152600a602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610662565b3360008181526009602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6004548111610986576000818152600c60205260409020546001600160a01b038481169116146106af57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166106d657604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061071357506001600160a01b0383166000908152600b6020908152604080832033845290915290205460ff16155b801561073657506000818152600a60205260409020546001600160a01b03163314155b15610753576040516282b42960e81b815260040160405180910390fd5b61075b610f82565b6001600160a01b03841660009081526008602052604081208054909190610783908490611ac9565b909155506107919050610f82565b6001600160a01b0380841660008181526008602090815260408083208054909601909555858252600c815284822080546001600160a01b03199081169094179055600a815284822080549093169092559186168252600d905290812080546107fb90600190611ac9565b8154811061080b5761080b611adc565b60009182526020808320909101546001600160a01b0387168352600d82526040808420868552600e9093529092205481549293508392811061084f5761084f611adc565b60009182526020808320909101929092556001600160a01b0386168152600d9091526040902080548061088457610884611af2565b600082815260208082208301600019908101839055909201909255838252600e8152604080832054848452818420556001600160a01b038616808452600d835290832080546001818101835582865293852001869055925290546108e89190611ac9565b6000838152600e602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148761096f610f82565b60405190815260200160405180910390a350505050565b6001600160a01b038316600090815260096020908152604080832033845290915290205460001981146109e2576109bd8282611ac9565b6001600160a01b03851660009081526009602090815260408083203384529091529020555b6109ed848484610fb4565b50505b505050565b6000546001600160a01b03163314610a1f576040516282b42960e81b815260040160405180910390fd5b600080546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b610a6683838361066c565b6001600160a01b0382163b15801590610b125750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b059190611b08565b6001600160e01b03191614155b156109f057604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610b5a576040516282b42960e81b815260040160405180910390fd5b6001610b668382611b82565b5060026109f08282611b82565b6000546001600160a01b03163314610b9d576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03821660009081526008602052604090205415610bd457604051632f57ef6960e01b815260040160405180910390fd5b6001600160a01b03919091166000908152600f60205260409020805460ff1916911515919091179055565b6000818152600c60205260409020546001600160a01b031680610c355760405163c5723b5160e01b815260040160405180910390fd5b919050565b6002805461049a90611a79565b336000818152600b602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610cc0338484610fb4565b9392505050565b60606005805480602002602001604051908101604052809291908181526020018280548015610d1557602002820191906000526020600020905b815481526020019060010190808311610d01575b5050505050905090565b610d2a85858561066c565b6001600160a01b0384163b15801590610dc45750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d749033908a90899089908990600401611c42565b6020604051808303816000875af1158015610d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db79190611b08565b6001600160e01b03191614155b156109ed57604051633da6393160e01b815260040160405180910390fd5b60607f000000000000000000000000000000000000000000000000000000000000000082101580610e11575081155b15610e2f57604051631bf4348160e31b815260040160405180910390fd5b6003610e3a83611162565b604051602001610e4b929190611c96565b60408051601f1981840301815290829052610e6891602001611d1d565b6040516020818303038152906040529050919050565b60058181548110610e8e57600080fd5b600091825260209091200154905081565b6003805461049a90611a79565b6000546001600160a01b03163314610ed6576040516282b42960e81b815260040160405180910390fd5b6003610ee28282611b82565b5050565b6000546001600160a01b03163314610f10576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610f37576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000610faf7f0000000000000000000000000000000000000000000000000000000000000000600a611e2a565b905090565b600080610fbf610f82565b6001600160a01b038087166000818152600860205260408082208054948a1683529082205492825293945091929091869190610ffb8386611ac9565b90915550506001600160a01b03808716600090815260086020908152604080832080548a019055928a168252600f9052205460ff1661108d576001600160a01b038716600090815260086020526040812054611058908590611e4f565b6110628585611e4f565b61106c9190611ac9565b905060005b8181101561108a57611082896111f5565b600101611071565b50505b6001600160a01b0386166000908152600f602052604090205460ff166111085760006110b98483611e4f565b6001600160a01b0388166000908152600860205260409020546110dd908690611e4f565b6110e79190611ac9565b905060005b81811015611105576110fd88611319565b6001016110ec565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878760405161114d91815260200190565b60405180910390a35060019695505050505050565b6060600061116f83611459565b600101905060008167ffffffffffffffff81111561118f5761118f6117cc565b6040519080825280601f01601f1916602001820160405280156111b9576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846111c357509392505050565b6001600160a01b03811661121c57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381166000908152600d60205260408120805461124290600190611ac9565b8154811061125257611252611adc565b9060005260206000200154905061126881611531565b6001600160a01b0382166000908152600d6020526040902080548061128f5761128f611af2565b600082815260208082208301600019908101839055909201909255828252600e81526040808320839055600c825280832080546001600160a01b0319908116909155600a9092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03811661134057604051634e46966960e11b815260040160405180910390fd5b60006004546006541015611386576006805490600061135e83611e63565b90915550506006546000818152600760205260409020805460ff1916600117905590506113b6565b6005541561139d576113966115a8565b90506113b6565b60405163ed4421ad60e01b815260040160405180910390fd5b6000818152600c6020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600d8352908320805460018181018355828652938520018590559252905461140e9190611ac9565b6000828152600e602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114985772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106114c4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106114e257662386f26fc10000830492506010015b6305f5e10083106114fa576305f5e100830492506008015b612710831061150e57612710830492506004015b60648310611520576064830492506002015b600a83106106665760010192915050565b60008181526007602052604090205460ff16611560576040516335c0139560e21b815260040160405180910390fd5b60058054600181019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0018190556000908152600760205260409020805460ff19169055565b60055460009081036115cd5760405163ed4421ad60e01b815260040160405180910390fd5b600554604080514260208201526bffffffffffffffffffffffff193360601b169181019190915260548101829052600091906074016040516020818303038152906040528051906020012060001c6116259190611e7c565b905060006005828154811061163c5761163c611adc565b906000526020600020015490506005600160058054905061165d9190611ac9565b8154811061166d5761166d611adc565b90600052602060002001546005838154811061168b5761168b611adc565b60009182526020909120015560058054806116a8576116a8611af2565b6000828152602080822083016000199081018390559092019092558282526007905260409020805460ff1916600117905592915050565b60005b838110156116fa5781810151838201526020016116e2565b50506000910152565b60208152600082518060208401526117228160408501602087016116df565b601f01601f19169190910160400192915050565b60006020828403121561174857600080fd5b5035919050565b80356001600160a01b0381168114610c3557600080fd5b6000806040838503121561177957600080fd5b6117828361174f565b946020939093013593505050565b6000806000606084860312156117a557600080fd5b6117ae8461174f565b92506117bc6020850161174f565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126117f357600080fd5b813567ffffffffffffffff8082111561180e5761180e6117cc565b604051601f8301601f19908116603f01168101908282118183101715611836576118366117cc565b8160405283815286602085880101111561184f57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561188257600080fd5b823567ffffffffffffffff8082111561189a57600080fd5b6118a6868387016117e2565b935060208501359150808211156118bc57600080fd5b506118c9858286016117e2565b9150509250929050565b600080604083850312156118e657600080fd5b6118ef8361174f565b91506020830135801515811461190457600080fd5b809150509250929050565b60006020828403121561192157600080fd5b610cc08261174f565b6020808252825182820181905260009190848201906040850190845b8181101561196257835183529284019291840191600101611946565b50909695505050505050565b60008060008060006080868803121561198657600080fd5b61198f8661174f565b945061199d6020870161174f565b935060408601359250606086013567ffffffffffffffff808211156119c157600080fd5b818801915088601f8301126119d557600080fd5b8135818111156119e457600080fd5b8960208285010111156119f657600080fd5b9699959850939650602001949392505050565b60008060408385031215611a1c57600080fd5b611a258361174f565b9150611a336020840161174f565b90509250929050565b600060208284031215611a4e57600080fd5b813567ffffffffffffffff811115611a6557600080fd5b611a71848285016117e2565b949350505050565b600181811c90821680611a8d57607f821691505b602082108103611aad57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561066657610666611ab3565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215611b1a57600080fd5b81516001600160e01b031981168114610cc057600080fd5b601f8211156109f0576000816000526020600020601f850160051c81016020861015611b5b5750805b601f850160051c820191505b81811015611b7a57828155600101611b67565b505050505050565b815167ffffffffffffffff811115611b9c57611b9c6117cc565b611bb081611baa8454611a79565b84611b32565b602080601f831160018114611be55760008415611bcd5750858301515b600019600386901b1c1916600185901b178555611b7a565b600085815260208120601f198616915b82811015611c1457888601518255948401946001909101908401611bf5565b5085821015611c325787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000808454611ca481611a79565b60018281168015611cbc5760018114611cd157611d00565b60ff1984168752821515830287019450611d00565b8860005260208060002060005b85811015611cf75781548a820152908401908201611cde565b50505082870194505b505050508351611d148183602088016116df565b01949350505050565b60008251611d2f8184602087016116df565b64173539b7b760d91b920191825250600501919050565b600181815b80851115611d81578160001904821115611d6757611d67611ab3565b80851615611d7457918102915b93841c9390800290611d4b565b509250929050565b600082611d9857506001610666565b81611da557506000610666565b8160018114611dbb5760028114611dc557611de1565b6001915050610666565b60ff841115611dd657611dd6611ab3565b50506001821b610666565b5060208310610133831016604e8410600b8410161715611e04575081810a610666565b611e0e8383611d46565b8060001904821115611e2257611e22611ab3565b029392505050565b6000610cc060ff841683611d89565b634e487b7160e01b600052601260045260246000fd5b600082611e5e57611e5e611e39565b500490565b600060018201611e7557611e75611ab3565b5060010190565b600082611e8b57611e8b611e39565b50069056fea264697066735822122015a34b284eb2aeca1d771fccbe4b7ada9fc57beefd5ed10b7d6e3203496c1a1a64736f6c6343000816003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000002710000000000000000000000000c11b39accc09342ef65fa7492f3550bf33f82b9a0000000000000000000000000000000000000000000000000000000000000003527567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035255470000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80638da5cb5b116100f9578063c87b56dd11610097578063dd62ed3e11610071578063dd62ed3e1461040e578063e0df5b6f14610439578063e985e9c51461044c578063f2fde38b1461047a57600080fd5b8063c87b56dd146103e0578063ca4c0e09146103f3578063d547cfb71461040657600080fd5b8063a22cb465116100d3578063a22cb46514610392578063a9059cbb146103a5578063a9e2880e146103b8578063b88d4fde146103cd57600080fd5b80638da5cb5b1461035457806395d89b41146103675780639b19251a1461036f57600080fd5b80632c88797e11610166578063504334c211610140578063504334c2146102fb57806353d6fd591461030e5780636352211e1461032157806370a082311461033457600080fd5b80632c88797e146102a6578063313ce567146102af57806342842e0e146102e857600080fd5b8063095ea7b3116101a2578063095ea7b31461023f57806318160ddd1461026257806323b872dd146102895780632b9689581461029e57600080fd5b806306fdde03146101c957806307c56001146101e7578063081812fc146101fe575b600080fd5b6101d161048d565b6040516101de9190611703565b60405180910390f35b6101f060065481565b6040519081526020016101de565b61022761020c366004611736565b600a602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101de565b61025261024d366004611766565b61051b565b60405190151581526020016101de565b6101f07f00000000000000000000000000000000000000000000021e19e0c9bab240000081565b61029c610297366004611790565b61066c565b005b61029c6109f5565b6101f060045481565b6102d67f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff90911681526020016101de565b61029c6102f6366004611790565b610a5b565b61029c61030936600461186f565b610b30565b61029c61031c3660046118d3565b610b73565b61022761032f366004611736565b610bff565b6101f061034236600461190f565b60086020526000908152604090205481565b600054610227906001600160a01b031681565b6101d1610c3a565b61025261037d36600461190f565b600f6020526000908152604090205460ff1681565b61029c6103a03660046118d3565b610c47565b6102526103b3366004611766565b610cb3565b6103c0610cc7565b6040516101de919061192a565b61029c6103db36600461196e565b610d1f565b6101d16103ee366004611736565b610de2565b6101f0610401366004611736565b610e7e565b6101d1610e9f565b6101f061041c366004611a09565b600960209081526000928352604080842090915290825290205481565b61029c610447366004611a3c565b610eac565b61025261045a366004611a09565b600b60209081526000928352604080842090915290825290205460ff1681565b61029c61048836600461190f565b610ee6565b6001805461049a90611a79565b80601f01602080910402602001604051908101604052809291908181526020018280546104c690611a79565b80156105135780601f106104e857610100808354040283529160200191610513565b820191906000526020600020905b8154815290600101906020018083116104f657829003601f168201915b505050505081565b6000600654821115801561052f5750600082115b15610606576000828152600c60205260409020546001600160a01b031633811480159061058057506001600160a01b0381166000908152600b6020908152604080832033845290915290205460ff16155b1561059d576040516282b42960e81b815260040160405180910390fd5b6000838152600a602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610662565b3360008181526009602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6004548111610986576000818152600c60205260409020546001600160a01b038481169116146106af57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166106d657604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061071357506001600160a01b0383166000908152600b6020908152604080832033845290915290205460ff16155b801561073657506000818152600a60205260409020546001600160a01b03163314155b15610753576040516282b42960e81b815260040160405180910390fd5b61075b610f82565b6001600160a01b03841660009081526008602052604081208054909190610783908490611ac9565b909155506107919050610f82565b6001600160a01b0380841660008181526008602090815260408083208054909601909555858252600c815284822080546001600160a01b03199081169094179055600a815284822080549093169092559186168252600d905290812080546107fb90600190611ac9565b8154811061080b5761080b611adc565b60009182526020808320909101546001600160a01b0387168352600d82526040808420868552600e9093529092205481549293508392811061084f5761084f611adc565b60009182526020808320909101929092556001600160a01b0386168152600d9091526040902080548061088457610884611af2565b600082815260208082208301600019908101839055909201909255838252600e8152604080832054848452818420556001600160a01b038616808452600d835290832080546001818101835582865293852001869055925290546108e89190611ac9565b6000838152600e602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148761096f610f82565b60405190815260200160405180910390a350505050565b6001600160a01b038316600090815260096020908152604080832033845290915290205460001981146109e2576109bd8282611ac9565b6001600160a01b03851660009081526009602090815260408083203384529091529020555b6109ed848484610fb4565b50505b505050565b6000546001600160a01b03163314610a1f576040516282b42960e81b815260040160405180910390fd5b600080546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b610a6683838361066c565b6001600160a01b0382163b15801590610b125750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b059190611b08565b6001600160e01b03191614155b156109f057604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610b5a576040516282b42960e81b815260040160405180910390fd5b6001610b668382611b82565b5060026109f08282611b82565b6000546001600160a01b03163314610b9d576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03821660009081526008602052604090205415610bd457604051632f57ef6960e01b815260040160405180910390fd5b6001600160a01b03919091166000908152600f60205260409020805460ff1916911515919091179055565b6000818152600c60205260409020546001600160a01b031680610c355760405163c5723b5160e01b815260040160405180910390fd5b919050565b6002805461049a90611a79565b336000818152600b602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610cc0338484610fb4565b9392505050565b60606005805480602002602001604051908101604052809291908181526020018280548015610d1557602002820191906000526020600020905b815481526020019060010190808311610d01575b5050505050905090565b610d2a85858561066c565b6001600160a01b0384163b15801590610dc45750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d749033908a90899089908990600401611c42565b6020604051808303816000875af1158015610d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db79190611b08565b6001600160e01b03191614155b156109ed57604051633da6393160e01b815260040160405180910390fd5b60607f00000000000000000000000000000000000000000000021e19e0c9bab240000082101580610e11575081155b15610e2f57604051631bf4348160e31b815260040160405180910390fd5b6003610e3a83611162565b604051602001610e4b929190611c96565b60408051601f1981840301815290829052610e6891602001611d1d565b6040516020818303038152906040529050919050565b60058181548110610e8e57600080fd5b600091825260209091200154905081565b6003805461049a90611a79565b6000546001600160a01b03163314610ed6576040516282b42960e81b815260040160405180910390fd5b6003610ee28282611b82565b5050565b6000546001600160a01b03163314610f10576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610f37576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000610faf7f0000000000000000000000000000000000000000000000000000000000000012600a611e2a565b905090565b600080610fbf610f82565b6001600160a01b038087166000818152600860205260408082208054948a1683529082205492825293945091929091869190610ffb8386611ac9565b90915550506001600160a01b03808716600090815260086020908152604080832080548a019055928a168252600f9052205460ff1661108d576001600160a01b038716600090815260086020526040812054611058908590611e4f565b6110628585611e4f565b61106c9190611ac9565b905060005b8181101561108a57611082896111f5565b600101611071565b50505b6001600160a01b0386166000908152600f602052604090205460ff166111085760006110b98483611e4f565b6001600160a01b0388166000908152600860205260409020546110dd908690611e4f565b6110e79190611ac9565b905060005b81811015611105576110fd88611319565b6001016110ec565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878760405161114d91815260200190565b60405180910390a35060019695505050505050565b6060600061116f83611459565b600101905060008167ffffffffffffffff81111561118f5761118f6117cc565b6040519080825280601f01601f1916602001820160405280156111b9576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846111c357509392505050565b6001600160a01b03811661121c57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381166000908152600d60205260408120805461124290600190611ac9565b8154811061125257611252611adc565b9060005260206000200154905061126881611531565b6001600160a01b0382166000908152600d6020526040902080548061128f5761128f611af2565b600082815260208082208301600019908101839055909201909255828252600e81526040808320839055600c825280832080546001600160a01b0319908116909155600a9092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03811661134057604051634e46966960e11b815260040160405180910390fd5b60006004546006541015611386576006805490600061135e83611e63565b90915550506006546000818152600760205260409020805460ff1916600117905590506113b6565b6005541561139d576113966115a8565b90506113b6565b60405163ed4421ad60e01b815260040160405180910390fd5b6000818152600c6020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600d8352908320805460018181018355828652938520018590559252905461140e9190611ac9565b6000828152600e602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114985772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106114c4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106114e257662386f26fc10000830492506010015b6305f5e10083106114fa576305f5e100830492506008015b612710831061150e57612710830492506004015b60648310611520576064830492506002015b600a83106106665760010192915050565b60008181526007602052604090205460ff16611560576040516335c0139560e21b815260040160405180910390fd5b60058054600181019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0018190556000908152600760205260409020805460ff19169055565b60055460009081036115cd5760405163ed4421ad60e01b815260040160405180910390fd5b600554604080514260208201526bffffffffffffffffffffffff193360601b169181019190915260548101829052600091906074016040516020818303038152906040528051906020012060001c6116259190611e7c565b905060006005828154811061163c5761163c611adc565b906000526020600020015490506005600160058054905061165d9190611ac9565b8154811061166d5761166d611adc565b90600052602060002001546005838154811061168b5761168b611adc565b60009182526020909120015560058054806116a8576116a8611af2565b6000828152602080822083016000199081018390559092019092558282526007905260409020805460ff1916600117905592915050565b60005b838110156116fa5781810151838201526020016116e2565b50506000910152565b60208152600082518060208401526117228160408501602087016116df565b601f01601f19169190910160400192915050565b60006020828403121561174857600080fd5b5035919050565b80356001600160a01b0381168114610c3557600080fd5b6000806040838503121561177957600080fd5b6117828361174f565b946020939093013593505050565b6000806000606084860312156117a557600080fd5b6117ae8461174f565b92506117bc6020850161174f565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126117f357600080fd5b813567ffffffffffffffff8082111561180e5761180e6117cc565b604051601f8301601f19908116603f01168101908282118183101715611836576118366117cc565b8160405283815286602085880101111561184f57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561188257600080fd5b823567ffffffffffffffff8082111561189a57600080fd5b6118a6868387016117e2565b935060208501359150808211156118bc57600080fd5b506118c9858286016117e2565b9150509250929050565b600080604083850312156118e657600080fd5b6118ef8361174f565b91506020830135801515811461190457600080fd5b809150509250929050565b60006020828403121561192157600080fd5b610cc08261174f565b6020808252825182820181905260009190848201906040850190845b8181101561196257835183529284019291840191600101611946565b50909695505050505050565b60008060008060006080868803121561198657600080fd5b61198f8661174f565b945061199d6020870161174f565b935060408601359250606086013567ffffffffffffffff808211156119c157600080fd5b818801915088601f8301126119d557600080fd5b8135818111156119e457600080fd5b8960208285010111156119f657600080fd5b9699959850939650602001949392505050565b60008060408385031215611a1c57600080fd5b611a258361174f565b9150611a336020840161174f565b90509250929050565b600060208284031215611a4e57600080fd5b813567ffffffffffffffff811115611a6557600080fd5b611a71848285016117e2565b949350505050565b600181811c90821680611a8d57607f821691505b602082108103611aad57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561066657610666611ab3565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215611b1a57600080fd5b81516001600160e01b031981168114610cc057600080fd5b601f8211156109f0576000816000526020600020601f850160051c81016020861015611b5b5750805b601f850160051c820191505b81811015611b7a57828155600101611b67565b505050505050565b815167ffffffffffffffff811115611b9c57611b9c6117cc565b611bb081611baa8454611a79565b84611b32565b602080601f831160018114611be55760008415611bcd5750858301515b600019600386901b1c1916600185901b178555611b7a565b600085815260208120601f198616915b82811015611c1457888601518255948401946001909101908401611bf5565b5085821015611c325787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000808454611ca481611a79565b60018281168015611cbc5760018114611cd157611d00565b60ff1984168752821515830287019450611d00565b8860005260208060002060005b85811015611cf75781548a820152908401908201611cde565b50505082870194505b505050508351611d148183602088016116df565b01949350505050565b60008251611d2f8184602087016116df565b64173539b7b760d91b920191825250600501919050565b600181815b80851115611d81578160001904821115611d6757611d67611ab3565b80851615611d7457918102915b93841c9390800290611d4b565b509250929050565b600082611d9857506001610666565b81611da557506000610666565b8160018114611dbb5760028114611dc557611de1565b6001915050610666565b60ff841115611dd657611dd6611ab3565b50506001821b610666565b5060208310610133831016604e8410600b8410161715611e04575081810a610666565b611e0e8383611d46565b8060001904821115611e2257611e22611ab3565b029392505050565b6000610cc060ff841683611d89565b634e487b7160e01b600052601260045260246000fd5b600082611e5e57611e5e611e39565b500490565b600060018201611e7557611e75611ab3565b5060010190565b600082611e8b57611e8b611e39565b50069056fea264697066735822122015a34b284eb2aeca1d771fccbe4b7ada9fc57beefd5ed10b7d6e3203496c1a1a64736f6c63430008160033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000002710000000000000000000000000c11b39accc09342ef65fa7492f3550bf33f82b9a0000000000000000000000000000000000000000000000000000000000000003527567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035255470000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Rug
Arg [1] : _symbol (string): RUG
Arg [2] : _decimals (uint8): 18
Arg [3] : _totalNativeSupply (uint256): 10000
Arg [4] : _owner (address): 0xC11b39accC09342EF65Fa7492F3550bF33F82b9a

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [4] : 000000000000000000000000c11b39accc09342ef65fa7492f3550bf33f82b9a
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 5275670000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 5255470000000000000000000000000000000000000000000000000000000000


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.