Token Ryu404

 

Overview [ERC-20]

Price
$0.00 @ 0.000000 Eth
Fully Diluted Market Cap
Max Total Supply:
10,000 RYU

Holders:
0

Transfers:
-

Contract:
0x21bdba2e3b8f53a4ce949b573f5661827201b7690x21bdba2e3B8f53a4Ce949b573f5661827201B769

Decimals:
18

Social Profiles:
Not Available, Update ?

 
Loading
[ Download CSV Export  ] 
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:
Ryu404

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 1000 runs

Other Settings:
paris EvmVersion
File 1 of 6 : 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 2 of 6 : 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);
        }
    }
}

File 3 of 6 : 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 4 of 6 : Ryu404.sol
//SPDX-License-Identifier: UNLICENSED

// Twitter: https://twitter.com/Ryuerc404
// Telegram: https://t.me/Ryu404BASE

pragma solidity ^0.8.20;

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

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

contract Ryu404 is Ownable {
  /// NFT Metadata
  string public baseTokenURI = "https://pink-general-cod-824.mypinata.cloud/ipfs/QmYES4KsM79EgS3cFgKuZ4e9Wnt8ZD5dNHzHGHYrmnGrEF/";
  uint256 public erc721totalSupply = 10000;
  uint256[] public tokenIdPool;
  uint256 public maxMintedId;

  // Metadata
  string public name = "Ryu404";
  string public symbol =  "RYU";
  uint8 public decimals = 18;
  uint256 public immutable totalSupply = erc721totalSupply * (10 ** decimals);

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

  bool public tradingEnabled = false;
  bool public limits = true;
  uint256 public maxTokensAmountPerWallet = 5 * 1e18;

  // Constructor
  constructor(address _owner) Ownable(_owner) {
    whitelist[_owner] = true;
    balanceOf[_owner] = totalSupply;
  }

  function setTradingEnabled(bool _tradingEnabled) public onlyOwner {
    tradingEnabled = _tradingEnabled;
  }

    function setLimits(bool _limits) public onlyOwner {
        limits = _limits;
    }

    function setMaxTokensAmountPerWallet(uint256 _maxTokensAmountPerWallet) public onlyOwner {
        maxTokensAmountPerWallet = _maxTokensAmountPerWallet * 1e18;
    }

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

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

  /// @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 SharedStructs.NotFound();
  }

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

  /// @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 SharedStructs.Approval(owner, spender, amountOrId);
    } else {
      allowance[msg.sender][spender] = amountOrId;
      emit SharedStructs.Approval(msg.sender, spender, amountOrId);
    }

    return true;
  }

  /// @notice Function native approvals
  function setApprovalForAll(address operator, bool approved) public {
    isApprovedForAll[msg.sender][operator] = approved;
    emit SharedStructs.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 SharedStructs.InvalidSender();
      if (to == address(0)) revert SharedStructs.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 SharedStructs.Transfer(from, to, amountOrId);
      emit SharedStructs.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 SharedStructs.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 SharedStructs.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;
    }

    require(tradingEnabled || from == owner || to == owner, "Trading not enabled");

    // 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]) {
        if (limits) {
                if (balanceOf[to] > maxTokensAmountPerWallet) {
                    revert("Max tokens amount per wallet exceeded");
                }
            }

      uint256 tokens_to_mint = (balanceOf[to] / unit) - (balanceBeforeReceiver / unit);
      for (uint256 i = 0; i < tokens_to_mint; i++) {
        _mint(to);
      }
    }

    emit SharedStructs.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 SharedStructs.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 SharedStructs.IdNotAssigned();
    tokenIdPool.push(id);
    idAssigned[id] = false;
  }

  function _mint(address to) internal {
    if (to == address(0)) revert SharedStructs.InvalidRecipient();
    uint256 id;
    if (maxMintedId < erc721totalSupply) {
      maxMintedId++;
      id = maxMintedId;
      idAssigned[id] = true;
    } else if (tokenIdPool.length > 0) {
      id = _randomIdFromPool();
    } else {
      revert SharedStructs.PoolIsEmpty();
    }
    _ownerOf[id] = to;
    _owned[to].push(id);
    _ownedIndex[id] = _owned[to].length - 1;
    emit SharedStructs.Transfer(address(0), to, id);
  }

  function _burn(address from) internal {
    if (from == address(0)) revert SharedStructs.InvalidSender();
    uint256 id = _owned[from][_owned[from].length - 1];
    _returnIdToPool(id);
    _owned[from].pop();
    delete _ownedIndex[id];
    delete _ownerOf[id];
    delete getApproved[id];
    emit SharedStructs.Transfer(from, address(0), id);
  }

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

File 5 of 6 : Ownable.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;

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

File 6 of 6 : Structs.sol
library SharedStructs {
  // 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();
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"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":"limits","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":"maxTokensAmountPerWallet","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":"bool","name":"_limits","type":"bool"}],"name":"setLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokensAmountPerWallet","type":"uint256"}],"name":"setMaxTokensAmountPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_tradingEnabled","type":"bool"}],"name":"setTradingEnabled","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":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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"}]

610120604052606060a0818152906200260660c03960019062000023908262000249565b50612710600255604080518082019091526006815265149e5d4d0c0d60d21b602082015260059062000056908262000249565b5060408051808201909152600381526252595560e81b602082015260069062000080908262000249565b506007805460ff191660129081179091556200009e90600a6200042a565b600254620000ad919062000442565b6080526011805461ffff1916610100179055674563918244f40000601255348015620000d857600080fd5b506040516200266638038062002666833981016040819052620000fb916200045c565b806001600160a01b03811662000124576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b03166000908152601060209081526040808320805460ff1916600117905560805160099092529091205562000487565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001cf57607f821691505b602082108103620001f057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200024457600081815260208120601f850160051c810160208610156200021f5750805b601f850160051c820191505b8181101562000240578281556001016200022b565b5050505b505050565b81516001600160401b03811115620002655762000265620001a4565b6200027d81620002768454620001ba565b84620001f6565b602080601f831160018114620002b557600084156200029c5750858301515b600019600386901b1c1916600185901b17855562000240565b600085815260208120601f198616915b82811015620002e657888601518255948401946001909101908401620002c5565b5085821015620003055787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200036c57816000190482111562000350576200035062000315565b808516156200035e57918102915b93841c939080029062000330565b509250929050565b600082620003855750600162000424565b81620003945750600062000424565b8160018114620003ad5760028114620003b857620003d8565b600191505062000424565b60ff841115620003cc57620003cc62000315565b50506001821b62000424565b5060208310610133831016604e8410600b8410161715620003fd575081810a62000424565b6200040983836200032b565b806000190482111562000420576200042062000315565b0290505b92915050565b60006200043b60ff84168362000374565b9392505050565b808202811582820484141762000424576200042462000315565b6000602082840312156200046f57600080fd5b81516001600160a01b03811681146200043b57600080fd5b60805161215c620004aa600039600081816102ae0152610f43015261215c6000f3fe608060405234801561001057600080fd5b506004361061020b5760003560e01c80638da5cb5b1161012a578063b88d4fde116100bd578063d547cfb71161008c578063e0df5b6f11610071578063e0df5b6f146104b4578063e985e9c5146104c7578063f2fde38b146104f557600080fd5b8063d547cfb714610481578063dd62ed3e1461048957600080fd5b8063b88d4fde14610435578063c2e5ec0414610448578063c87b56dd1461045b578063ca4c0e091461046e57600080fd5b80639b19251a116100f95780639b19251a146103d7578063a22cb465146103fa578063a9059cbb1461040d578063a9e2880e1461042057600080fd5b80638da5cb5b146103a057806394c52938146103b357806395d89b41146103bc5780639adce734146103c457600080fd5b8063313ce567116101a25780636352211e116101715780636352211e1461034857806363fc61a71461035b57806370a082311461036e578063860aefcf1461038e57600080fd5b8063313ce567146102f657806342842e0e146103155780634ada218b1461032857806353d6fd591461033557600080fd5b806318160ddd116101de57806318160ddd146102a957806323b872dd146102d05780632b968958146102e55780632c88797e146102ed57600080fd5b806306fdde031461021057806307c560011461022e578063081812fc14610245578063095ea7b314610286575b600080fd5b610218610508565b60405161022591906119d1565b60405180910390f35b61023760045481565b604051908152602001610225565b61026e610253366004611a04565b600b602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610225565b610299610294366004611a34565b610596565b6040519015158152602001610225565b6102377f000000000000000000000000000000000000000000000000000000000000000081565b6102e36102de366004611a5e565b6106e7565b005b6102e3610a70565b61023760025481565b6007546103039060ff1681565b60405160ff9091168152602001610225565b6102e3610323366004611a5e565b610ad6565b6011546102999060ff1681565b6102e3610343366004611aaa565b610bc3565b61026e610356366004611a04565b610c68565b6102e3610369366004611a04565b610cbc565b61023761037c366004611add565b60096020526000908152604090205481565b60115461029990610100900460ff1681565b60005461026e906001600160a01b031681565b61023760125481565b610218610cfe565b6102e36103d2366004611af8565b610d0b565b6102996103e5366004611add565b60106020526000908152604090205460ff1681565b6102e3610408366004611aaa565b610d4f565b61029961041b366004611a34565b610dbb565b610428610dcf565b6040516102259190611b13565b6102e3610443366004611b57565b610e27565b6102e3610456366004611af8565b610f02565b610218610469366004611a04565b610f3f565b61023761047c366004611a04565b610fd7565b610218610ff8565b610237610497366004611bf2565b600a60209081526000928352604080842090915290825290205481565b6102e36104c2366004611c32565b611005565b6102996104d5366004611bf2565b600c60209081526000928352604080842090915290825290205460ff1681565b6102e3610503366004611add565b61103f565b6005805461051590611ce3565b80601f016020809104026020016040519081016040528092919081815260200182805461054190611ce3565b801561058e5780601f106105635761010080835404028352916020019161058e565b820191906000526020600020905b81548152906001019060200180831161057157829003601f168201915b505050505081565b600060045482111580156105aa5750600082115b15610681576000828152600d60205260409020546001600160a01b03163381148015906105fb57506001600160a01b0381166000908152600c6020908152604080832033845290915290205460ff16155b15610618576040516282b42960e81b815260040160405180910390fd5b6000838152600b602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3506106dd565b336000818152600a602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6002548111610a01576000818152600d60205260409020546001600160a01b0384811691161461072a57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661075157604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061078e57506001600160a01b0383166000908152600c6020908152604080832033845290915290205460ff16155b80156107b157506000818152600b60205260409020546001600160a01b03163314155b156107ce576040516282b42960e81b815260040160405180910390fd5b6107d66110f4565b6001600160a01b038416600090815260096020526040812080549091906107fe908490611d33565b9091555061080c90506110f4565b6001600160a01b0380841660008181526009602090815260408083208054909601909555858252600d815284822080546001600160a01b03199081169094179055600b815284822080549093169092559186168252600e9052908120805461087690600190611d33565b8154811061088657610886611d46565b60009182526020808320909101546001600160a01b0387168352600e82526040808420868552600f909352909220548154929350839281106108ca576108ca611d46565b60009182526020808320909101929092556001600160a01b0386168152600e909152604090208054806108ff576108ff611d5c565b600082815260208082208301600019908101839055909201909255838252600f8152604080832054848452818420556001600160a01b038616808452600e835290832080546001818101835582865293852001869055925290546109639190611d33565b6000838152600f602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314876109ea6110f4565b60405190815260200160405180910390a350505050565b6001600160a01b0383166000908152600a602090815260408083203384529091529020546000198114610a5d57610a388282611d33565b6001600160a01b0385166000908152600a602090815260408083203384529091529020555b610a6884848461110d565b50505b505050565b6000546001600160a01b03163314610a9a576040516282b42960e81b815260040160405180910390fd5b600080546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b610ae18383836106e7565b6001600160a01b0382163b15801590610ba55750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610b5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b809190611d72565b7fffffffff000000000000000000000000000000000000000000000000000000001614155b15610a6b57604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610bed576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03821660009081526009602052604090205415610c3d576040517f2f57ef6900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03919091166000908152601060205260409020805460ff1916911515919091179055565b6000818152600d60205260409020546001600160a01b031680610cb7576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000546001600160a01b03163314610ce6576040516282b42960e81b815260040160405180910390fd5b610cf881670de0b6b3a7640000611db4565b60125550565b6006805461051590611ce3565b6000546001600160a01b03163314610d35576040516282b42960e81b815260040160405180910390fd5b601180549115156101000261ff0019909216919091179055565b336000818152600c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610dc833848461110d565b9392505050565b60606003805480602002602001604051908101604052809291908181526020018280548015610e1d57602002820191906000526020600020905b815481526020019060010190808311610e09575b5050505050905090565b610e328585856106e7565b6001600160a01b0384163b15801590610ee45750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610e7c9033908a90899089908990600401611dcb565b6020604051808303816000875af1158015610e9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebf9190611d72565b7fffffffff000000000000000000000000000000000000000000000000000000001614155b15610a6857604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610f2c576040516282b42960e81b815260040160405180910390fd5b6011805460ff1916911515919091179055565b60607f000000000000000000000000000000000000000000000000000000000000000082101580610f6e575081155b15610fa5576040517fdfa1a40800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001610fb083611400565b604051602001610fc1929190611e1f565b6040516020818303038152906040529050919050565b60038181548110610fe757600080fd5b600091825260209091200154905081565b6001805461051590611ce3565b6000546001600160a01b0316331461102f576040516282b42960e81b815260040160405180910390fd5b600161103b8282611f1c565b5050565b6000546001600160a01b03163314611069576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381166110a9576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6007546000906111089060ff16600a6120c0565b905090565b6000806111186110f4565b6001600160a01b038087166000818152600960205260408082208054948a16835290822054928252939450919290918691906111548386611d33565b90915550506001600160a01b038616600090815260096020526040902080548601905560115460ff168061119557506000546001600160a01b038881169116145b806111ad57506000546001600160a01b038781169116145b6111fe5760405162461bcd60e51b815260206004820152601360248201527f54726164696e67206e6f7420656e61626c65640000000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b03871660009081526010602052604090205460ff16611281576001600160a01b0387166000908152600960205260408120546112429085906120e5565b61124c85856120e5565b6112569190611d33565b905060005b8181101561127e5761126c896114a0565b80611276816120f9565b91505061125b565b50505b6001600160a01b03861660009081526010602052604090205460ff166113a657601154610100900460ff1615611341576012546001600160a01b03871660009081526009602052604090205411156113415760405162461bcd60e51b815260206004820152602560248201527f4d617820746f6b656e7320616d6f756e74207065722077616c6c65742065786360448201527f656564656400000000000000000000000000000000000000000000000000000060648201526084016111f5565b600061134d84836120e5565b6001600160a01b0388166000908152600960205260409020546113719086906120e5565b61137b9190611d33565b905060005b818110156113a357611391886115c4565b8061139b816120f9565b915050611380565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487876040516113eb91815260200190565b60405180910390a35060019695505050505050565b6060600061140d83611704565b600101905060008167ffffffffffffffff81111561142d5761142d611c1c565b6040519080825280601f01601f191660200182016040528015611457576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461146157509392505050565b6001600160a01b0381166114c757604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381166000908152600e6020526040812080546114ed90600190611d33565b815481106114fd576114fd611d46565b90600052602060002001549050611513816117e6565b6001600160a01b0382166000908152600e6020526040902080548061153a5761153a611d5c565b600082815260208082208301600019908101839055909201909255828252600f81526040808320839055600d825280832080546001600160a01b0319908116909155600b9092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0381166115eb57604051634e46966960e11b815260040160405180910390fd5b600060025460045410156116315760048054906000611609836120f9565b90915550506004546000818152600860205260409020805460ff191660011790559050611661565b6003541561164857611641611876565b9050611661565b60405163ed4421ad60e01b815260040160405180910390fd5b6000818152600d6020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600e835290832080546001818101835582865293852001859055925290546116b99190611d33565b6000828152600f602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061174d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611779576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061179757662386f26fc10000830492506010015b6305f5e10083106117af576305f5e100830492506008015b61271083106117c357612710830492506004015b606483106117d5576064830492506002015b600a83106106e15760010192915050565b60008181526008602052604090205460ff1661182e576040517fd7004e5400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038054600181019091557fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b018190556000908152600860205260409020805460ff19169055565b600354600090810361189b5760405163ed4421ad60e01b815260040160405180910390fd5b600354604080514260208201526bffffffffffffffffffffffff193360601b169181019190915260548101829052600091906074016040516020818303038152906040528051906020012060001c6118f39190612112565b905060006003828154811061190a5761190a611d46565b906000526020600020015490506003600160038054905061192b9190611d33565b8154811061193b5761193b611d46565b90600052602060002001546003838154811061195957611959611d46565b600091825260209091200155600380548061197657611976611d5c565b6000828152602080822083016000199081018390559092019092558282526008905260409020805460ff1916600117905592915050565b60005b838110156119c85781810151838201526020016119b0565b50506000910152565b60208152600082518060208401526119f08160408501602087016119ad565b601f01601f19169190910160400192915050565b600060208284031215611a1657600080fd5b5035919050565b80356001600160a01b0381168114610cb757600080fd5b60008060408385031215611a4757600080fd5b611a5083611a1d565b946020939093013593505050565b600080600060608486031215611a7357600080fd5b611a7c84611a1d565b9250611a8a60208501611a1d565b9150604084013590509250925092565b80358015158114610cb757600080fd5b60008060408385031215611abd57600080fd5b611ac683611a1d565b9150611ad460208401611a9a565b90509250929050565b600060208284031215611aef57600080fd5b610dc882611a1d565b600060208284031215611b0a57600080fd5b610dc882611a9a565b6020808252825182820181905260009190848201906040850190845b81811015611b4b57835183529284019291840191600101611b2f565b50909695505050505050565b600080600080600060808688031215611b6f57600080fd5b611b7886611a1d565b9450611b8660208701611a1d565b935060408601359250606086013567ffffffffffffffff80821115611baa57600080fd5b818801915088601f830112611bbe57600080fd5b813581811115611bcd57600080fd5b896020828501011115611bdf57600080fd5b9699959850939650602001949392505050565b60008060408385031215611c0557600080fd5b611c0e83611a1d565b9150611ad460208401611a1d565b634e487b7160e01b600052604160045260246000fd5b600060208284031215611c4457600080fd5b813567ffffffffffffffff80821115611c5c57600080fd5b818401915084601f830112611c7057600080fd5b813581811115611c8257611c82611c1c565b604051601f8201601f19908116603f01168101908382118183101715611caa57611caa611c1c565b81604052828152876020848701011115611cc357600080fd5b826020860160208301376000928101602001929092525095945050505050565b600181811c90821680611cf757607f821691505b602082108103611d1757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156106e1576106e1611d1d565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215611d8457600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114610dc857600080fd5b80820281158282048414176106e1576106e1611d1d565b60006001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000808454611e2d81611ce3565b60018281168015611e455760018114611e5a57611e89565b60ff1984168752821515830287019450611e89565b8860005260208060002060005b85811015611e805781548a820152908401908201611e67565b50505082870194505b505050508351611e9d8183602088016119ad565b7f2e706e67000000000000000000000000000000000000000000000000000000009101908152600401949350505050565b601f821115610a6b57600081815260208120601f850160051c81016020861015611ef55750805b601f850160051c820191505b81811015611f1457828155600101611f01565b505050505050565b815167ffffffffffffffff811115611f3657611f36611c1c565b611f4a81611f448454611ce3565b84611ece565b602080601f831160018114611f7f5760008415611f675750858301515b600019600386901b1c1916600185901b178555611f14565b600085815260208120601f198616915b82811015611fae57888601518255948401946001909101908401611f8f565b5085821015611fcc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600181815b80851115612017578160001904821115611ffd57611ffd611d1d565b8085161561200a57918102915b93841c9390800290611fe1565b509250929050565b60008261202e575060016106e1565b8161203b575060006106e1565b8160018114612051576002811461205b57612077565b60019150506106e1565b60ff84111561206c5761206c611d1d565b50506001821b6106e1565b5060208310610133831016604e8410600b841016171561209a575081810a6106e1565b6120a48383611fdc565b80600019048211156120b8576120b8611d1d565b029392505050565b6000610dc860ff84168361201f565b634e487b7160e01b600052601260045260246000fd5b6000826120f4576120f46120cf565b500490565b60006001820161210b5761210b611d1d565b5060010190565b600082612121576121216120cf565b50069056fea26469706673582212202f12ff0a86320699ef4def0444d03971f92585f0c96c6df0ebd9d68c0498f2ae64736f6c6343000814003368747470733a2f2f70696e6b2d67656e6572616c2d636f642d3832342e6d7970696e6174612e636c6f75642f697066732f516d594553344b734d3739456753336346674b755a346539576e74385a4435644e487a48474859726d6e477245462f0000000000000000000000007f07212deb055984f6daf0a9779ef80fa71b25e7

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061020b5760003560e01c80638da5cb5b1161012a578063b88d4fde116100bd578063d547cfb71161008c578063e0df5b6f11610071578063e0df5b6f146104b4578063e985e9c5146104c7578063f2fde38b146104f557600080fd5b8063d547cfb714610481578063dd62ed3e1461048957600080fd5b8063b88d4fde14610435578063c2e5ec0414610448578063c87b56dd1461045b578063ca4c0e091461046e57600080fd5b80639b19251a116100f95780639b19251a146103d7578063a22cb465146103fa578063a9059cbb1461040d578063a9e2880e1461042057600080fd5b80638da5cb5b146103a057806394c52938146103b357806395d89b41146103bc5780639adce734146103c457600080fd5b8063313ce567116101a25780636352211e116101715780636352211e1461034857806363fc61a71461035b57806370a082311461036e578063860aefcf1461038e57600080fd5b8063313ce567146102f657806342842e0e146103155780634ada218b1461032857806353d6fd591461033557600080fd5b806318160ddd116101de57806318160ddd146102a957806323b872dd146102d05780632b968958146102e55780632c88797e146102ed57600080fd5b806306fdde031461021057806307c560011461022e578063081812fc14610245578063095ea7b314610286575b600080fd5b610218610508565b60405161022591906119d1565b60405180910390f35b61023760045481565b604051908152602001610225565b61026e610253366004611a04565b600b602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610225565b610299610294366004611a34565b610596565b6040519015158152602001610225565b6102377f00000000000000000000000000000000000000000000021e19e0c9bab240000081565b6102e36102de366004611a5e565b6106e7565b005b6102e3610a70565b61023760025481565b6007546103039060ff1681565b60405160ff9091168152602001610225565b6102e3610323366004611a5e565b610ad6565b6011546102999060ff1681565b6102e3610343366004611aaa565b610bc3565b61026e610356366004611a04565b610c68565b6102e3610369366004611a04565b610cbc565b61023761037c366004611add565b60096020526000908152604090205481565b60115461029990610100900460ff1681565b60005461026e906001600160a01b031681565b61023760125481565b610218610cfe565b6102e36103d2366004611af8565b610d0b565b6102996103e5366004611add565b60106020526000908152604090205460ff1681565b6102e3610408366004611aaa565b610d4f565b61029961041b366004611a34565b610dbb565b610428610dcf565b6040516102259190611b13565b6102e3610443366004611b57565b610e27565b6102e3610456366004611af8565b610f02565b610218610469366004611a04565b610f3f565b61023761047c366004611a04565b610fd7565b610218610ff8565b610237610497366004611bf2565b600a60209081526000928352604080842090915290825290205481565b6102e36104c2366004611c32565b611005565b6102996104d5366004611bf2565b600c60209081526000928352604080842090915290825290205460ff1681565b6102e3610503366004611add565b61103f565b6005805461051590611ce3565b80601f016020809104026020016040519081016040528092919081815260200182805461054190611ce3565b801561058e5780601f106105635761010080835404028352916020019161058e565b820191906000526020600020905b81548152906001019060200180831161057157829003601f168201915b505050505081565b600060045482111580156105aa5750600082115b15610681576000828152600d60205260409020546001600160a01b03163381148015906105fb57506001600160a01b0381166000908152600c6020908152604080832033845290915290205460ff16155b15610618576040516282b42960e81b815260040160405180910390fd5b6000838152600b602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3506106dd565b336000818152600a602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6002548111610a01576000818152600d60205260409020546001600160a01b0384811691161461072a57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661075157604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061078e57506001600160a01b0383166000908152600c6020908152604080832033845290915290205460ff16155b80156107b157506000818152600b60205260409020546001600160a01b03163314155b156107ce576040516282b42960e81b815260040160405180910390fd5b6107d66110f4565b6001600160a01b038416600090815260096020526040812080549091906107fe908490611d33565b9091555061080c90506110f4565b6001600160a01b0380841660008181526009602090815260408083208054909601909555858252600d815284822080546001600160a01b03199081169094179055600b815284822080549093169092559186168252600e9052908120805461087690600190611d33565b8154811061088657610886611d46565b60009182526020808320909101546001600160a01b0387168352600e82526040808420868552600f909352909220548154929350839281106108ca576108ca611d46565b60009182526020808320909101929092556001600160a01b0386168152600e909152604090208054806108ff576108ff611d5c565b600082815260208082208301600019908101839055909201909255838252600f8152604080832054848452818420556001600160a01b038616808452600e835290832080546001818101835582865293852001869055925290546109639190611d33565b6000838152600f602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314876109ea6110f4565b60405190815260200160405180910390a350505050565b6001600160a01b0383166000908152600a602090815260408083203384529091529020546000198114610a5d57610a388282611d33565b6001600160a01b0385166000908152600a602090815260408083203384529091529020555b610a6884848461110d565b50505b505050565b6000546001600160a01b03163314610a9a576040516282b42960e81b815260040160405180910390fd5b600080546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b610ae18383836106e7565b6001600160a01b0382163b15801590610ba55750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610b5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b809190611d72565b7fffffffff000000000000000000000000000000000000000000000000000000001614155b15610a6b57604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610bed576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03821660009081526009602052604090205415610c3d576040517f2f57ef6900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03919091166000908152601060205260409020805460ff1916911515919091179055565b6000818152600d60205260409020546001600160a01b031680610cb7576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000546001600160a01b03163314610ce6576040516282b42960e81b815260040160405180910390fd5b610cf881670de0b6b3a7640000611db4565b60125550565b6006805461051590611ce3565b6000546001600160a01b03163314610d35576040516282b42960e81b815260040160405180910390fd5b601180549115156101000261ff0019909216919091179055565b336000818152600c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610dc833848461110d565b9392505050565b60606003805480602002602001604051908101604052809291908181526020018280548015610e1d57602002820191906000526020600020905b815481526020019060010190808311610e09575b5050505050905090565b610e328585856106e7565b6001600160a01b0384163b15801590610ee45750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610e7c9033908a90899089908990600401611dcb565b6020604051808303816000875af1158015610e9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebf9190611d72565b7fffffffff000000000000000000000000000000000000000000000000000000001614155b15610a6857604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610f2c576040516282b42960e81b815260040160405180910390fd5b6011805460ff1916911515919091179055565b60607f00000000000000000000000000000000000000000000021e19e0c9bab240000082101580610f6e575081155b15610fa5576040517fdfa1a40800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001610fb083611400565b604051602001610fc1929190611e1f565b6040516020818303038152906040529050919050565b60038181548110610fe757600080fd5b600091825260209091200154905081565b6001805461051590611ce3565b6000546001600160a01b0316331461102f576040516282b42960e81b815260040160405180910390fd5b600161103b8282611f1c565b5050565b6000546001600160a01b03163314611069576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381166110a9576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6007546000906111089060ff16600a6120c0565b905090565b6000806111186110f4565b6001600160a01b038087166000818152600960205260408082208054948a16835290822054928252939450919290918691906111548386611d33565b90915550506001600160a01b038616600090815260096020526040902080548601905560115460ff168061119557506000546001600160a01b038881169116145b806111ad57506000546001600160a01b038781169116145b6111fe5760405162461bcd60e51b815260206004820152601360248201527f54726164696e67206e6f7420656e61626c65640000000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b03871660009081526010602052604090205460ff16611281576001600160a01b0387166000908152600960205260408120546112429085906120e5565b61124c85856120e5565b6112569190611d33565b905060005b8181101561127e5761126c896114a0565b80611276816120f9565b91505061125b565b50505b6001600160a01b03861660009081526010602052604090205460ff166113a657601154610100900460ff1615611341576012546001600160a01b03871660009081526009602052604090205411156113415760405162461bcd60e51b815260206004820152602560248201527f4d617820746f6b656e7320616d6f756e74207065722077616c6c65742065786360448201527f656564656400000000000000000000000000000000000000000000000000000060648201526084016111f5565b600061134d84836120e5565b6001600160a01b0388166000908152600960205260409020546113719086906120e5565b61137b9190611d33565b905060005b818110156113a357611391886115c4565b8061139b816120f9565b915050611380565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487876040516113eb91815260200190565b60405180910390a35060019695505050505050565b6060600061140d83611704565b600101905060008167ffffffffffffffff81111561142d5761142d611c1c565b6040519080825280601f01601f191660200182016040528015611457576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461146157509392505050565b6001600160a01b0381166114c757604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381166000908152600e6020526040812080546114ed90600190611d33565b815481106114fd576114fd611d46565b90600052602060002001549050611513816117e6565b6001600160a01b0382166000908152600e6020526040902080548061153a5761153a611d5c565b600082815260208082208301600019908101839055909201909255828252600f81526040808320839055600d825280832080546001600160a01b0319908116909155600b9092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0381166115eb57604051634e46966960e11b815260040160405180910390fd5b600060025460045410156116315760048054906000611609836120f9565b90915550506004546000818152600860205260409020805460ff191660011790559050611661565b6003541561164857611641611876565b9050611661565b60405163ed4421ad60e01b815260040160405180910390fd5b6000818152600d6020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600e835290832080546001818101835582865293852001859055925290546116b99190611d33565b6000828152600f602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061174d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611779576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061179757662386f26fc10000830492506010015b6305f5e10083106117af576305f5e100830492506008015b61271083106117c357612710830492506004015b606483106117d5576064830492506002015b600a83106106e15760010192915050565b60008181526008602052604090205460ff1661182e576040517fd7004e5400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038054600181019091557fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b018190556000908152600860205260409020805460ff19169055565b600354600090810361189b5760405163ed4421ad60e01b815260040160405180910390fd5b600354604080514260208201526bffffffffffffffffffffffff193360601b169181019190915260548101829052600091906074016040516020818303038152906040528051906020012060001c6118f39190612112565b905060006003828154811061190a5761190a611d46565b906000526020600020015490506003600160038054905061192b9190611d33565b8154811061193b5761193b611d46565b90600052602060002001546003838154811061195957611959611d46565b600091825260209091200155600380548061197657611976611d5c565b6000828152602080822083016000199081018390559092019092558282526008905260409020805460ff1916600117905592915050565b60005b838110156119c85781810151838201526020016119b0565b50506000910152565b60208152600082518060208401526119f08160408501602087016119ad565b601f01601f19169190910160400192915050565b600060208284031215611a1657600080fd5b5035919050565b80356001600160a01b0381168114610cb757600080fd5b60008060408385031215611a4757600080fd5b611a5083611a1d565b946020939093013593505050565b600080600060608486031215611a7357600080fd5b611a7c84611a1d565b9250611a8a60208501611a1d565b9150604084013590509250925092565b80358015158114610cb757600080fd5b60008060408385031215611abd57600080fd5b611ac683611a1d565b9150611ad460208401611a9a565b90509250929050565b600060208284031215611aef57600080fd5b610dc882611a1d565b600060208284031215611b0a57600080fd5b610dc882611a9a565b6020808252825182820181905260009190848201906040850190845b81811015611b4b57835183529284019291840191600101611b2f565b50909695505050505050565b600080600080600060808688031215611b6f57600080fd5b611b7886611a1d565b9450611b8660208701611a1d565b935060408601359250606086013567ffffffffffffffff80821115611baa57600080fd5b818801915088601f830112611bbe57600080fd5b813581811115611bcd57600080fd5b896020828501011115611bdf57600080fd5b9699959850939650602001949392505050565b60008060408385031215611c0557600080fd5b611c0e83611a1d565b9150611ad460208401611a1d565b634e487b7160e01b600052604160045260246000fd5b600060208284031215611c4457600080fd5b813567ffffffffffffffff80821115611c5c57600080fd5b818401915084601f830112611c7057600080fd5b813581811115611c8257611c82611c1c565b604051601f8201601f19908116603f01168101908382118183101715611caa57611caa611c1c565b81604052828152876020848701011115611cc357600080fd5b826020860160208301376000928101602001929092525095945050505050565b600181811c90821680611cf757607f821691505b602082108103611d1757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156106e1576106e1611d1d565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215611d8457600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114610dc857600080fd5b80820281158282048414176106e1576106e1611d1d565b60006001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000808454611e2d81611ce3565b60018281168015611e455760018114611e5a57611e89565b60ff1984168752821515830287019450611e89565b8860005260208060002060005b85811015611e805781548a820152908401908201611e67565b50505082870194505b505050508351611e9d8183602088016119ad565b7f2e706e67000000000000000000000000000000000000000000000000000000009101908152600401949350505050565b601f821115610a6b57600081815260208120601f850160051c81016020861015611ef55750805b601f850160051c820191505b81811015611f1457828155600101611f01565b505050505050565b815167ffffffffffffffff811115611f3657611f36611c1c565b611f4a81611f448454611ce3565b84611ece565b602080601f831160018114611f7f5760008415611f675750858301515b600019600386901b1c1916600185901b178555611f14565b600085815260208120601f198616915b82811015611fae57888601518255948401946001909101908401611f8f565b5085821015611fcc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600181815b80851115612017578160001904821115611ffd57611ffd611d1d565b8085161561200a57918102915b93841c9390800290611fe1565b509250929050565b60008261202e575060016106e1565b8161203b575060006106e1565b8160018114612051576002811461205b57612077565b60019150506106e1565b60ff84111561206c5761206c611d1d565b50506001821b6106e1565b5060208310610133831016604e8410600b841016171561209a575081810a6106e1565b6120a48383611fdc565b80600019048211156120b8576120b8611d1d565b029392505050565b6000610dc860ff84168361201f565b634e487b7160e01b600052601260045260246000fd5b6000826120f4576120f46120cf565b500490565b60006001820161210b5761210b611d1d565b5060010190565b600082612121576121216120cf565b50069056fea26469706673582212202f12ff0a86320699ef4def0444d03971f92585f0c96c6df0ebd9d68c0498f2ae64736f6c63430008140033

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

0000000000000000000000007f07212deb055984f6daf0a9779ef80fa71b25e7

-----Decoded View---------------
Arg [0] : _owner (address): 0x7f07212deB055984F6Daf0a9779ef80fA71b25E7

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007f07212deb055984f6daf0a9779ef80fa71b25e7


Loading