Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
5719
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
MJ404
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC404.sol"; import "./Strings.sol"; contract MJ404 is ERC404 { error InvalidMintCount(); error InvalidOwnerBalance(); error InvalidMintPrice(); error InvalidMintTime(); mapping(uint256 => uint32) public attributes; bool public mintTime = false; uint256 public mintPrice = 0.0404 ether; mapping(address => uint32) public mintCount; uint32 public goldSuffixCount = 100; uint32 public normalSuffixCount = 900; uint32 public constant PROP_DIVISOR = 1_0000; uint32[] public goldProps = [1000, 1404]; uint32[] public propCounts = [1, 10]; uint32 public campCount = 3; uint32[] public cardCounts = [9, 9, 9]; string public uriPrefix; string public uriSuffix = ".json"; address public _admin; uint32 public maxMintCount = 3000; uint32 public totalMintCount = 0; uint32 public maxPerWallet = 4; uint32 public constant MAX_SUPPLY = 4040; constructor(address _owner, address _royaltyReceiver) ERC404("Mahjong404", "MJ404", 18, uint256(MAX_SUPPLY), _owner) { _admin = _owner; royaltyReceiver = _royaltyReceiver; balanceOf[_admin] = uint256(MAX_SUPPLY) * 10 ** 18; setWhitelist(_admin, true); setWhitelist(_royaltyReceiver, true); } modifier onlyAdmin() { require(_admin == msg.sender || owner == msg.sender, "Admin: caller is not the admin"); _; } function admin() public view returns (address) { return _admin; } function tokenURI(uint256 id) public view override returns (string memory) { uint32 attr = attributes[id]; require(attr > 0, "ERC404Metadata: URI query for nonexistent token"); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0? string.concat(currentBaseURI, Strings.toString(id), ".", Strings.toString(attr), uriSuffix): ''; } function _baseURI() internal view virtual returns (string memory) { return uriPrefix; } function setAdmin(address newAdmin) public onlyAdmin { require(newAdmin != address(0), "Admin: new admin is the zero address"); _admin = newAdmin; } function setUriPrefix(string memory _uriPrefix) public onlyAdmin { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyAdmin { uriSuffix = _uriSuffix; } function setSuffixCount(uint32 goldCount, uint32 normalCount) public onlyAdmin { goldSuffixCount = goldCount; normalSuffixCount = normalCount; } function setCards(uint32[] memory counts) public onlyAdmin { cardCounts = counts; campCount = uint32(counts.length); } function setProp(uint32[] memory props, uint32[] memory counts) public onlyAdmin { goldProps = props; propCounts = counts; } function setMintPrice(uint256 price) public onlyAdmin { mintPrice = price; } function setMaxPerWallet(uint32 maxCount) public onlyAdmin { maxPerWallet = maxCount; } function setMintTime(bool isTime) public onlyAdmin { mintTime = isTime; } function setMaxMint(uint32 maxCount) public onlyAdmin { maxMintCount = maxCount; } function isMintTime() public view returns (bool) { return mintTime; } function setNameSymbol( string memory _name, string memory _symbol ) public onlyAdmin { _setNameSymbol(_name, _symbol); } function royaltyInfo( uint256 _salePrice ) public view virtual override returns (address, uint256) { return (royaltyReceiver, (_salePrice * royaltyFee) / ROYALTY_DIVISOR); } function setRoyaltyFee(uint256 _royaltyFee) public override onlyAdmin { require(_royaltyFee <= ROYALTY_DIVISOR, "ERC404: Royalty fee too high."); royaltyFee = _royaltyFee; } function setRoyaltyReceiver(address _royaltyReceiver) public override onlyAdmin { require(_royaltyReceiver != address(0), "ERC404: Invalid receiver address."); royaltyReceiver = _royaltyReceiver; } function withdrawEth(address to) public onlyAdmin { uint256 balance = address(this).balance; require(balance > 0, "MJ404: balance is zero"); payable(to).transfer(balance); } function balanceEth() public view returns (uint256) { return address(this).balance; } function _random(uint256 tokenId, uint32 number) internal view returns (uint32) { return uint32(uint256(keccak256(abi.encodePacked(block.timestamp, block.number, tokenId, msg.sender))) % number); } function _getGoldProp(uint256 totalCount) internal view returns (uint256) { if (totalCount <= 0) { return 0; } for (uint256 i = 0; i < (propCounts.length - 1); i++) { if (totalCount >= propCounts[i] && totalCount < propCounts[i + 1]) { return goldProps[i]; } } return goldProps[propCounts.length - 1]; } function _afterMint( uint256 tokenId, uint256 totalCount ) internal override { uint32 prop = _random(tokenId, PROP_DIVISOR); // 1: gold; 2: normal uint32 quality = prop < _getGoldProp(totalCount)? 1: 2; uint32 suffixCount = quality == 1? goldSuffixCount: normalSuffixCount; uint32 suffix = _random(tokenId, suffixCount); uint32 camp = _random(tokenId, campCount); uint32 card = _random(tokenId, cardCounts[camp]); uint32 campCard = camp * 10 + card; attributes[tokenId] = suffix * 1000 + campCard * 10 + quality; } function _afterBurn( uint256 tokenId ) internal override { delete attributes[tokenId]; } modifier onlyMintTime() { if (!mintTime) { revert InvalidMintTime(); } _; } modifier checkPrice(uint256 price, uint256 nftAmount) { if (price * nftAmount != msg.value) { revert InvalidMintPrice(); } _; } modifier checkCount(uint32 count) { if (count <= 0 || (totalMintCount + count) > maxMintCount || (mintCount[msg.sender] + count) > maxPerWallet) { revert InvalidMintCount(); } _; } function mint(uint32 count) public payable onlyMintTime checkPrice(mintPrice, uint256(count)) checkCount(count) { uint256 amount = uint256(count) * _getUnit(); if (balanceOf[owner] < amount) { revert InvalidOwnerBalance(); } mintCount[msg.sender] += count; totalMintCount += count; super._transfer(owner, msg.sender, amount); } function getMintCount(address addr) public view returns (uint32) { return mintCount[addr]; } function getTotalMintCount() public view returns (uint256) { return totalMintCount; } function getAttribute(uint256 tokenId) public view returns (uint256) { return attributes[tokenId]; } function getOwnerNftCount(address addr) public view returns (uint256) { return _owned[addr].length; } function getOwnerNftList(address addr, uint32 offset, uint32 limit) public view returns (uint256[] memory) { if (limit > 20) { limit = 20; } uint32 length = uint32(_owned[addr].length); if (offset >= length) { return new uint256[](0); } uint32 count = limit; if (length < (offset + limit)) { count = length - offset; } uint256[] storage tokens = _owned[addr]; uint256[] memory results = new uint256[](count); for (uint32 i = offset; i < (offset + limit) && i < length; i ++) { results[i - offset] = tokens[i]; } return results; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import "./Math.sol"; import "./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)); } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; abstract contract Ownable { event OwnershipTransferred(address indexed user, address indexed newOwner); error Unauthorized(); error InvalidOwner(); address public owner; modifier onlyOwner() virtual { if (msg.sender != owner) revert Unauthorized(); _; } constructor(address _owner) { if (_owner == address(0)) revert InvalidOwner(); owner = _owner; emit OwnershipTransferred(address(0), _owner); } function transferOwnership(address _owner) public virtual onlyOwner { if (_owner == address(0)) revert InvalidOwner(); owner = _owner; emit OwnershipTransferred(msg.sender, _owner); } function revokeOwnership() public virtual onlyOwner { owner = address(0); emit OwnershipTransferred(msg.sender, address(0)); } } abstract contract ERC721Receiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721Receiver.onERC721Received.selector; } } /// @notice 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. /// abstract contract ERC404 is Ownable { // Events event ERC20Transfer( address indexed from, address indexed to, uint256 amount ); event Approval( address indexed owner, address indexed spender, uint256 amount ); event Transfer( address indexed from, address indexed to, uint256 indexed id ); event ERC721Approval( address indexed owner, address indexed spender, uint256 indexed id ); event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); // Errors error NotFound(); error AlreadyExists(); error InvalidRecipient(); error InvalidSender(); error UnsafeRecipient(); error InsufficientBalance(); // Metadata /// @dev Token name string public name; /// @dev Token symbol string public symbol; /// @dev Decimals for fractional representation uint8 public immutable decimals; /// @dev Total supply in fractionalized representation uint256 public immutable totalSupply; /// @dev Current mint counter, monotonically increasing to ensure accurate ownership uint256 public minted; // Mappings /// @dev Balance of user in fractional representation mapping(address => uint256) public balanceOf; /// @dev _allowance of user in fractional representation mapping(address => mapping(address => uint256)) public _allowance; /// @dev Approval in native representaion mapping(uint256 => address) public getApproved; /// @dev Approval for all in native representation mapping(address => mapping(address => bool)) public isApprovedForAll; /// @dev Owner of id in native representation mapping(uint256 => address) internal _ownerOf; /// @dev Array of owned ids in native representation mapping(address => uint256[]) internal _owned; /// @dev Tracks indices for the _owned mapping mapping(uint256 => uint256) internal _ownedIndex; /// @dev Addresses whitelisted from minting / burning for gas savings (pairs, routers, etc) mapping(address => bool) public whitelist; uint256 public constant ROYALTY_DIVISOR = 1_0000; // Royalty state uint256 public royaltyFee = 500; address public royaltyReceiver; // Constructor constructor( string memory _name, string memory _symbol, uint8 _decimals, uint256 _totalNativeSupply, address _owner ) Ownable(_owner) { name = _name; symbol = _symbol; decimals = _decimals; totalSupply = _totalNativeSupply * (10 ** decimals); } /// @notice Initialization function to set pairs / etc /// saving gas by avoiding mint / burn on unnecessary targets function setWhitelist(address target, bool state) public onlyOwner { whitelist[target] = state; } /// @notice Function to find owner of a given native token function ownerOf(uint256 id) public view virtual returns (address owner) { owner = _ownerOf[id]; if (owner == address(0)) { revert NotFound(); } } /// @notice tokenURI must be implemented by child contract function tokenURI(uint256 id) public view virtual returns (string memory); /// @notice Function for token approvals /// @dev This function assumes id / native if amount less than or equal to current max id function approve( address spender, uint256 amountOrId ) public virtual returns (bool) { if (amountOrId <= minted && amountOrId > 0) { address owner = _ownerOf[amountOrId]; if (msg.sender != owner && !isApprovedForAll[owner][msg.sender]) { revert Unauthorized(); } getApproved[amountOrId] = spender; emit Approval(owner, spender, amountOrId); } else { _allowance[msg.sender][spender] = amountOrId; emit Approval(msg.sender, spender, amountOrId); } return true; } /// @notice Function native approvals function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } /// @notice Function for mixed transfers /// @dev This function assumes id / native if amount less than or equal to current max id function transferFrom( address from, address to, uint256 amountOrId ) public virtual { if (amountOrId <= minted) { if (from != _ownerOf[amountOrId]) { revert InvalidSender(); } if (to == address(0)) { revert InvalidRecipient(); } if ( msg.sender != from && !isApprovedForAll[from][msg.sender] && msg.sender != getApproved[amountOrId] ) { revert Unauthorized(); } balanceOf[from] -= _getUnit(); unchecked { balanceOf[to] += _getUnit(); } _ownerOf[amountOrId] = to; delete getApproved[amountOrId]; // update _owned for sender uint256 updatedId = _owned[from][_owned[from].length - 1]; _owned[from][_ownedIndex[amountOrId]] = updatedId; // pop _owned[from].pop(); // update index for the moved id _ownedIndex[updatedId] = _ownedIndex[amountOrId]; // push token to to owned _owned[to].push(amountOrId); // update index for to owned _ownedIndex[amountOrId] = _owned[to].length - 1; emit Transfer(from, to, amountOrId); emit ERC20Transfer(from, to, _getUnit()); } else { uint256 allowed = _allowance[from][msg.sender]; if (allowed != type(uint256).max) _allowance[from][msg.sender] = allowed - amountOrId; _transfer(from, to, amountOrId); } } /// @notice Function for fractional transfers function transfer( address to, uint256 amount ) public virtual returns (bool) { return _transfer(msg.sender, to, amount); } /// @notice Function for native transfers with contract support function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); if ( to.code.length != 0 && ERC721Receiver(to).onERC721Received(msg.sender, from, id, "") != ERC721Receiver.onERC721Received.selector ) { revert UnsafeRecipient(); } } /// @notice Function for native transfers with contract support and callback data function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); if ( to.code.length != 0 && ERC721Receiver(to).onERC721Received(msg.sender, from, id, data) != ERC721Receiver.onERC721Received.selector ) { revert UnsafeRecipient(); } } /// @notice Internal function for fractional transfers function _transfer( address from, address to, uint256 amount ) internal returns (bool) { bool isWhiteFrom = whitelist[from]; uint256 unit = _getUnit(); uint256 balanceBeforeSender = balanceOf[from]; uint256 balanceBeforeReceiver = balanceOf[to]; uint256 getAmount = amount; if (balanceBeforeSender < amount) { revert InsufficientBalance(); } balanceOf[from] -= amount; if (!isWhiteFrom && royaltyFee > 0 && royaltyReceiver != address(0)) { uint256 fee = (amount * royaltyFee) / ROYALTY_DIVISOR; balanceOf[royaltyReceiver] += fee; getAmount -= fee; } unchecked { balanceOf[to] += getAmount; } // Skip burn for certain addresses to save gas if (!isWhiteFrom) { 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 , tokens_to_mint); } } emit ERC20Transfer(from, to, amount); return true; } // Internal utility logic function _getUnit() internal view returns (uint256) { return 10 ** decimals; } function _mint(address to, uint256 totalCount ) internal virtual { if (to == address(0)) { revert InvalidRecipient(); } unchecked { minted++; } uint256 id = minted; if (_ownerOf[id] != address(0)) { revert AlreadyExists(); } _ownerOf[id] = to; _owned[to].push(id); _ownedIndex[id] = _owned[to].length - 1; _afterMint(id, totalCount); emit Transfer(address(0), to, id); } function _burn(address from) internal virtual { if (from == address(0)) { revert InvalidSender(); } uint256 id = _owned[from][_owned[from].length - 1]; _owned[from].pop(); delete _ownedIndex[id]; delete _ownerOf[id]; delete getApproved[id]; _afterBurn(id); emit Transfer(from, address(0), id); } function _setNameSymbol( string memory _name, string memory _symbol ) internal { name = _name; symbol = _symbol; } function _afterMint(uint256 tokenId, uint256 totalCount) internal virtual; function _afterBurn(uint256 tokenId) internal virtual; function royaltyInfo(uint256 _salePrice) public view virtual returns (address, uint256); function setRoyaltyFee(uint256 _royaltyFee) public virtual; function setRoyaltyReceiver(address _royaltyReceiver) public virtual; function allowance(address owner, address spender) public view returns (uint256) { return _allowance[owner][spender]; } }
// 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); } } }
// 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_royaltyReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"InvalidMintCount","type":"error"},{"inputs":[],"name":"InvalidMintPrice","type":"error"},{"inputs":[],"name":"InvalidMintTime","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidOwnerBalance","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"ERC721Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROP_DIVISOR","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"_allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","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":"uint256","name":"","type":"uint256"}],"name":"attributes","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"campCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardCounts","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAttribute","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getMintCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getOwnerNftCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint32","name":"offset","type":"uint32"},{"internalType":"uint32","name":"limit","type":"uint32"}],"name":"getOwnerNftList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"goldProps","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goldSuffixCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":"isMintTime","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"count","type":"uint32"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintTime","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"normalSuffixCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"propCounts","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revokeOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"newAdmin","type":"address"}],"name":"setAdmin","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":"uint32[]","name":"counts","type":"uint32[]"}],"name":"setCards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"maxCount","type":"uint32"}],"name":"setMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"maxCount","type":"uint32"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isTime","type":"bool"}],"name":"setMintTime","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":"uint32[]","name":"props","type":"uint32[]"},{"internalType":"uint32[]","name":"counts","type":"uint32[]"}],"name":"setProp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_royaltyFee","type":"uint256"}],"name":"setRoyaltyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyReceiver","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"goldCount","type":"uint32"},{"internalType":"uint32","name":"normalCount","type":"uint32"}],"name":"setSuffixCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101f4600c55600f805460ff19169055668f879600ed0000601055601280546001600160401b031916650384000000641790556101006040526103e860c090815261057c60e0526200005690601390600262000323565b506040805180820190915260018152600a60208201526200007c906014906002620003d4565b506015805463ffffffff191660039081179091556040805160608101825260098082526020820181905291810191909152620000bc9160169190620003d4565b50604080518082019091526005815264173539b7b760d91b6020820152601890620000e89082620004f2565b50601980546001600160a01b03167c040000000000000bb8000000000000000000000000000000000000000017905534801562000123575f80fd5b5060405162003dd538038062003dd58339810160408190526200014691620005da565b604080518082018252600a81526913585a1a9bdb99cd0c0d60b21b6020808301919091528251808401909352600583526413528d0c0d60da1b90830152906012610fc885806001600160a01b038116620001b3576040516349e27cff60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001620002098682620004f2565b506002620002188582620004f2565b5060ff831660808190526200022f90600a6200071f565b6200023b908362000736565b60a0525050601980546001600160a01b038088166001600160a01b031992831617909255600d805492871692909116919091179055506200028b9150610fc89050670de0b6b3a764000062000736565b601980546001600160a01b039081165f9081526004602052604090209290925554620002ba91166001620002cf565b620002c7816001620002cf565b505062000750565b5f546001600160a01b03163314620002f9576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091165f908152600b60205260409020805460ff1916911515919091179055565b828054828255905f5260205f2090600701600890048101928215620003c2579160200282015f5b838211156200038e57835183826101000a81548163ffffffff021916908361ffff16021790555092602001926004016020816003010492830192600103026200034a565b8015620003c05782816101000a81549063ffffffff02191690556004016020816003010492830192600103026200038e565b505b50620003d09291506200043e565b5090565b828054828255905f5260205f2090600701600890048101928215620003c2579160200282015f5b838211156200038e57835183826101000a81548163ffffffff021916908360ff1602179055509260200192600401602081600301049283019260010302620003fb565b5b80821115620003d0575f81556001016200043f565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200047d57607f821691505b6020821081036200049c57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620004ed57805f5260205f20601f840160051c81016020851015620004c95750805b601f840160051c820191505b81811015620004ea575f8155600101620004d5565b50505b505050565b81516001600160401b038111156200050e576200050e62000454565b62000526816200051f845462000468565b84620004a2565b602080601f8311600181146200055c575f8415620005445750858301515b5f19600386901b1c1916600185901b178555620005b6565b5f85815260208120601f198616915b828110156200058c578886015182559484019460019091019084016200056b565b5085821015620005aa57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b80516001600160a01b0381168114620005d5575f80fd5b919050565b5f8060408385031215620005ec575f80fd5b620005f783620005be565b91506200060760208401620005be565b90509250929050565b634e487b7160e01b5f52601160045260245ffd5b600181815b808511156200066457815f190482111562000648576200064862000610565b808516156200065657918102915b93841c939080029062000629565b509250929050565b5f826200067c5750600162000719565b816200068a57505f62000719565b8160018114620006a35760028114620006ae57620006ce565b600191505062000719565b60ff841115620006c257620006c262000610565b50506001821b62000719565b5060208310610133831016604e8410600b8410161715620006f3575081810a62000719565b620006ff838362000624565b805f190482111562000715576200071562000610565b0290505b92915050565b5f6200072f60ff8416836200066c565b9392505050565b808202811582820484141762000719576200071962000610565b60805160a05161365c620007795f395f61050901525f81816105da0152612188015261365c5ff3fe6080604052600436106103df575f3560e01c806375ad0d05116101ff578063b88d4fde11610113578063d05dcc6a116100a8578063ed9ec88811610078578063ed9ec88814610c95578063f2ebde8e14610cc6578063f2fde38b14610ce5578063f4a0a52814610d04578063f851a44014610d23575f80fd5b8063d05dcc6a14610bb1578063dd336c1214610be2578063dd62ed3e14610c18578063e985e9c514610c5c575f80fd5b8063c2bf2ced116100e3578063c2bf2ced14610b23578063c675e06114610b38578063c87b56dd14610b54578063cef6d36814610b73575f80fd5b8063b88d4fde14610ab1578063b8997a9714610ad0578063bb47b6db14610ae5578063c23bfefd14610b04575f80fd5b806395d89b41116101945780639fbc8713116101645780639fbc871314610a07578063a22cb46514610a26578063a2801f5714610a45578063a71bbebe14610a7f578063a9059cbb14610a92575f80fd5b806395d89b411461098d5780639b19251a146109a15780639b8ab691146109cf5780639efd3b80146109f0575f80fd5b80638da5cb5b116101cf5780638da5cb5b1461091c5780638dc251e31461093a5780638f0a44e51461095957806391912ddf1461096e575f80fd5b806375ad0d05146108955780637a0d2302146108c15780637ec4a659146108e45780638647812214610903575f80fd5b8063453c2310116102f65780635a2d63061161028b5780636352211e1161025b5780636352211e146107f357806366f76ddb146108125780636817c76c14610836578063704b6c021461084b57806370a082311461086a575f80fd5b80635a2d63061461077a5780635cdad9c2146107ae578063625e331a146107c057806362b99ad4146107df575f80fd5b8063504334c2116102c6578063504334c21461070c578063522140ec1461072b57806353d6fd59146107475780635503a0e814610766575f80fd5b8063453c231014610684578063493fe80f146106a75780634a7aae38146106d85780634f02c420146106f7575f80fd5b806325e1606311610377578063313ce56711610347578063313ce567146105c957806332c60eef1461060e57806332cb6b0c146106315780633e4086e51461064657806342842e0e14610665575f80fd5b806325e160631461055857806328d3b399146105775780632b968958146105965780633006b543146105aa575f80fd5b806312fb9167116103b257806312fb9167146104a357806316ba10e0146104d757806318160ddd146104f857806323b872dd14610539575f80fd5b806301bc45c9146103e357806306fdde031461041f578063081812fc14610440578063095ea7b314610474575b5f80fd5b3480156103ee575f80fd5b50601954610402906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561042a575f80fd5b50610433610d40565b6040516104169190612c3b565b34801561044b575f80fd5b5061040261045a366004612c6d565b60066020525f90815260409020546001600160a01b031681565b34801561047f575f80fd5b5061049361048e366004612c9a565b610dcc565b6040519015158152602001610416565b3480156104ae575f80fd5b506104c26104bd366004612c6d565b610f17565b60405163ffffffff9091168152602001610416565b3480156104e2575f80fd5b506104f66104f1366004612d73565b610f4e565b005b348015610503575f80fd5b5061052b7f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610416565b348015610544575f80fd5b506104f6610553366004612da5565b610fa5565b348015610563575f80fd5b506104f6610572366004612dde565b611321565b348015610582575f80fd5b506104c2610591366004612c6d565b6113d9565b3480156105a1575f80fd5b506104f66113e8565b3480156105b5575f80fd5b506104f66105c4366004612e0a565b61144c565b3480156105d4575f80fd5b506105fc7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610416565b348015610619575f80fd5b506019546104c290600160a01b900463ffffffff1681565b34801561063c575f80fd5b506104c2610fc881565b348015610651575f80fd5b506104f6610660366004612c6d565b6114af565b348015610670575f80fd5b506104f661067f366004612da5565b611544565b34801561068f575f80fd5b506019546104c290600160e01b900463ffffffff1681565b3480156106b2575f80fd5b5061052b6106c1366004612c6d565b5f908152600e602052604090205463ffffffff1690565b3480156106e3575f80fd5b506104f66106f2366004612e32565b611615565b348015610702575f80fd5b5061052b60035481565b348015610717575f80fd5b506104f6610726366004612e4b565b611666565b348015610736575f80fd5b506012546104c29063ffffffff1681565b348015610752575f80fd5b506104f6610761366004612eab565b6116ae565b348015610771575f80fd5b50610433611701565b348015610785575f80fd5b5061052b610794366004612dde565b6001600160a01b03165f9081526009602052604090205490565b3480156107b9575f80fd5b504761052b565b3480156107cb575f80fd5b506104f66107da366004612e0a565b61170e565b3480156107ea575f80fd5b50610433611772565b3480156107fe575f80fd5b5061040261080d366004612c6d565b61177f565b34801561081d575f80fd5b506012546104c290640100000000900463ffffffff1681565b348015610841575f80fd5b5061052b60105481565b348015610856575f80fd5b506104f6610865366004612dde565b6117b9565b348015610875575f80fd5b5061052b610884366004612dde565b60046020525f908152604090205481565b3480156108a0575f80fd5b506108b46108af366004612edc565b61187b565b6040516104169190612f1c565b3480156108cc575f80fd5b506019546104c290600160c01b900463ffffffff1681565b3480156108ef575f80fd5b506104f66108fe366004612d73565b611a01565b34801561090e575f80fd5b50600f546104939060ff1681565b348015610927575f80fd5b505f54610402906001600160a01b031681565b348015610945575f80fd5b506104f6610954366004612dde565b611a4b565b348015610964575f80fd5b506104c261271081565b348015610979575f80fd5b506104f6610988366004612f5f565b611b0b565b348015610998575f80fd5b50610433611b79565b3480156109ac575f80fd5b506104936109bb366004612dde565b600b6020525f908152604090205460ff1681565b3480156109da575f80fd5b50601954600160c01b900463ffffffff1661052b565b3480156109fb575f80fd5b50600f5460ff16610493565b348015610a12575f80fd5b50600d54610402906001600160a01b031681565b348015610a31575f80fd5b506104f6610a40366004612eab565b611b86565b348015610a50575f80fd5b506104c2610a5f366004612dde565b6001600160a01b03165f9081526011602052604090205463ffffffff1690565b6104f6610a8d366004612e0a565b611bf1565b348015610a9d575f80fd5b50610493610aac366004612c9a565b611dd7565b348015610abc575f80fd5b506104f6610acb366004612f87565b611de3565b348015610adb575f80fd5b5061052b600c5481565b348015610af0575f80fd5b506104f6610aff36600461309e565b611ea3565b348015610b0f575f80fd5b506104c2610b1e366004612c6d565b611f08565b348015610b2e575f80fd5b5061052b61271081565b348015610b43575f80fd5b506015546104c29063ffffffff1681565b348015610b5f575f80fd5b50610433610b6e366004612c6d565b611f17565b348015610b7e575f80fd5b50610b92610b8d366004612c6d565b612000565b604080516001600160a01b039093168352602083019190915201610416565b348015610bbc575f80fd5b506104c2610bcb366004612c6d565b600e6020525f908152604090205463ffffffff1681565b348015610bed575f80fd5b5061052b610bfc3660046130f4565b600560209081525f928352604080842090915290825290205481565b348015610c23575f80fd5b5061052b610c323660046130f4565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205490565b348015610c67575f80fd5b50610493610c763660046130f4565b600760209081525f928352604080842090915290825290205460ff1681565b348015610ca0575f80fd5b506104c2610caf366004612dde565b60116020525f908152604090205463ffffffff1681565b348015610cd1575f80fd5b506104f6610ce036600461311c565b612037565b348015610cf0575f80fd5b506104f6610cff366004612dde565b6120a5565b348015610d0f575f80fd5b506104f6610d1e366004612c6d565b61213f565b348015610d2e575f80fd5b506019546001600160a01b0316610402565b60018054610d4d9061314e565b80601f0160208091040260200160405190810160405280929190818152602001828054610d799061314e565b8015610dc45780601f10610d9b57610100808354040283529160200191610dc4565b820191905f5260205f20905b815481529060010190602001808311610da757829003601f168201915b505050505081565b5f6003548211158015610dde57505f82115b15610eb2575f828152600860205260409020546001600160a01b0316338114801590610e2d57506001600160a01b0381165f90815260076020908152604080832033845290915290205460ff16155b15610e4a576040516282b42960e81b815260040160405180910390fd5b5f8381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610f0d565b335f8181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b60168181548110610f26575f80fd5b905f5260205f209060089182820401919006600402915054906101000a900463ffffffff1681565b6019546001600160a01b0316331480610f7057505f546001600160a01b031633145b610f955760405162461bcd60e51b8152600401610f8c90613186565b60405180910390fd5b6018610fa18282613201565b5050565b60035481116112b5575f818152600860205260409020546001600160a01b03848116911614610fe757604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661100e57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061104a57506001600160a01b0383165f90815260076020908152604080832033845290915290205460ff16155b801561106c57505f818152600660205260409020546001600160a01b03163314155b15611089576040516282b42960e81b815260040160405180910390fd5b611091612182565b6001600160a01b0384165f90815260046020526040812080549091906110b89084906132d1565b909155506110c69050612182565b6001600160a01b038084165f81815260046020908152604080832080549096019095558582526008815284822080546001600160a01b03199081169094179055600681528482208054909316909255918616825260099052908120805461112f906001906132d1565b8154811061113f5761113f6132e4565b5f9182526020808320909101546001600160a01b0387168352600982526040808420868552600a90935290922054815492935083928110611182576111826132e4565b5f9182526020808320909101929092556001600160a01b03861681526009909152604090208054806111b6576111b66132f8565b5f828152602080822083015f19908101839055909201909255838252600a8152604080832054848452818420556001600160a01b03861680845260098352908320805460018181018355828652938520018690559252905461121891906132d1565b5f838152600a602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148761129e612182565b60405190815260200160405180910390a350505050565b6001600160a01b0383165f9081526005602090815260408083203384529091529020545f19811461130e576112ea82826132d1565b6001600160a01b0385165f9081526005602090815260408083203384529091529020555b6113198484846121b3565b50505b505050565b6019546001600160a01b031633148061134357505f546001600160a01b031633145b61135f5760405162461bcd60e51b8152600401610f8c90613186565b47806113a65760405162461bcd60e51b81526020600482015260166024820152754d4a3430343a2062616c616e6365206973207a65726f60501b6044820152606401610f8c565b6040516001600160a01b0383169082156108fc029083905f818181858888f1935050505015801561131c573d5f803e3d5ffd5b60138181548110610f26575f80fd5b5f546001600160a01b03163314611411576040516282b42960e81b815260040160405180910390fd5b5f80546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b6019546001600160a01b031633148061146e57505f546001600160a01b031633145b61148a5760405162461bcd60e51b8152600401610f8c90613186565b6019805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b6019546001600160a01b03163314806114d157505f546001600160a01b031633145b6114ed5760405162461bcd60e51b8152600401610f8c90613186565b61271081111561153f5760405162461bcd60e51b815260206004820152601d60248201527f4552433430343a20526f79616c74792066656520746f6f20686967682e0000006044820152606401610f8c565b600c55565b61154f838383610fa5565b6001600160a01b0382163b158015906115f75750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af11580156115c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115ea919061330c565b6001600160e01b03191614155b1561131c57604051633da6393160e01b815260040160405180910390fd5b6019546001600160a01b031633148061163757505f546001600160a01b031633145b6116535760405162461bcd60e51b8152600401610f8c90613186565b600f805460ff1916911515919091179055565b6019546001600160a01b031633148061168857505f546001600160a01b031633145b6116a45760405162461bcd60e51b8152600401610f8c90613186565b610fa18282612420565b5f546001600160a01b031633146116d7576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091165f908152600b60205260409020805460ff1916911515919091179055565b60188054610d4d9061314e565b6019546001600160a01b031633148061173057505f546001600160a01b031633145b61174c5760405162461bcd60e51b8152600401610f8c90613186565b6019805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b60178054610d4d9061314e565b5f818152600860205260409020546001600160a01b0316806117b45760405163c5723b5160e01b815260040160405180910390fd5b919050565b6019546001600160a01b03163314806117db57505f546001600160a01b031633145b6117f75760405162461bcd60e51b8152600401610f8c90613186565b6001600160a01b0381166118595760405162461bcd60e51b8152602060048201526024808201527f41646d696e3a206e65772061646d696e20697320746865207a65726f206164646044820152637265737360e01b6064820152608401610f8c565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b606060148263ffffffff16111561189157601491505b6001600160a01b0384165f9081526009602052604090205463ffffffff808216908516106118ce575050604080515f8152602081019091526119fa565b826118d98186613333565b63ffffffff168263ffffffff1610156118f9576118f68583613357565b90505b6001600160a01b0386165f9081526009602052604081209063ffffffff831667ffffffffffffffff81111561193057611930612cc2565b604051908082528060200260200182016040528015611959578160200160208202803683370190505b509050865b6119688789613333565b63ffffffff168163ffffffff1610801561198d57508463ffffffff168163ffffffff16105b156119f357828163ffffffff16815481106119aa576119aa6132e4565b905f5260205f2001548289836119c09190613357565b63ffffffff16815181106119d6576119d66132e4565b6020908102919091010152806119eb81613374565b91505061195e565b5093505050505b9392505050565b6019546001600160a01b0316331480611a2357505f546001600160a01b031633145b611a3f5760405162461bcd60e51b8152600401610f8c90613186565b6017610fa18282613201565b6019546001600160a01b0316331480611a6d57505f546001600160a01b031633145b611a895760405162461bcd60e51b8152600401610f8c90613186565b6001600160a01b038116611ae95760405162461bcd60e51b815260206004820152602160248201527f4552433430343a20496e76616c696420726563656976657220616464726573736044820152601760f91b6064820152608401610f8c565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6019546001600160a01b0316331480611b2d57505f546001600160a01b031633145b611b495760405162461bcd60e51b8152600401610f8c90613186565b6012805463ffffffff9283166401000000000267ffffffffffffffff199091169290931691909117919091179055565b60028054610d4d9061314e565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f5460ff16611c145760405163917ad38160e01b815260040160405180910390fd5b60105463ffffffff821634611c298284613396565b14611c475760405163020b5e0b60e11b815260040160405180910390fd5b8263ffffffff81161580611c83575060195463ffffffff600160a01b8204811691611c7b918491600160c01b900416613333565b63ffffffff16115b80611cbf5750601954335f9081526011602052604090205463ffffffff600160e01b909204821691611cb791849116613333565b63ffffffff16115b15611cdd576040516372cf415160e11b815260040160405180910390fd5b5f611ce6612182565b611cf69063ffffffff8716613396565b5f80546001600160a01b0316815260046020526040902054909150811115611d315760405163f5819e0760e01b815260040160405180910390fd5b335f9081526011602052604081208054879290611d5590849063ffffffff16613333565b92506101000a81548163ffffffff021916908363ffffffff16021790555084601960188282829054906101000a900463ffffffff16611d949190613333565b92506101000a81548163ffffffff021916908363ffffffff160217905550611dcf5f8054906101000a90046001600160a01b031633836121b3565b505050505050565b5f6119fa3384846121b3565b611dee858585610fa5565b6001600160a01b0384163b15801590611e855750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290611e389033908a908990899089906004016133ad565b6020604051808303815f875af1158015611e54573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e78919061330c565b6001600160e01b03191614155b1561131957604051633da6393160e01b815260040160405180910390fd5b6019546001600160a01b0316331480611ec557505f546001600160a01b031633145b611ee15760405162461bcd60e51b8152600401610f8c90613186565b8151611ef4906013906020850190612b59565b50805161131c906014906020840190612b59565b60148181548110610f26575f80fd5b5f818152600e602052604090205460609063ffffffff1680611f935760405162461bcd60e51b815260206004820152602f60248201527f4552433430344d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610f8c565b5f611f9c612439565b90505f815111611fba5760405180602001604052805f815250611ff8565b80611fc4856124c9565b611fd38463ffffffff166124c9565b6018604051602001611fe894939291906133ff565b6040516020818303038152906040525b949350505050565b600d54600c545f9182916001600160a01b0390911690612710906120249086613396565b61202e91906134d7565b91509150915091565b6019546001600160a01b031633148061205957505f546001600160a01b031633145b6120755760405162461bcd60e51b8152600401610f8c90613186565b8051612088906016906020840190612b59565b50516015805463ffffffff191663ffffffff909216919091179055565b5f546001600160a01b031633146120ce576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381166120f5576040516349e27cff60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6019546001600160a01b031633148061216157505f546001600160a01b031633145b61217d5760405162461bcd60e51b8152600401610f8c90613186565b601055565b5f6121ae7f0000000000000000000000000000000000000000000000000000000000000000600a6135ca565b905090565b6001600160a01b0383165f908152600b602052604081205460ff16816121d7612182565b6001600160a01b038088165f9081526004602052604080822054928916825290205491925090858083101561221f57604051631e9acf1760e31b815260040160405180910390fd5b6001600160a01b0389165f90815260046020526040812080548992906122469084906132d1565b90915550508415801561225a57505f600c54115b80156122705750600d546001600160a01b031615155b156122d3575f612710600c54896122879190613396565b61229191906134d7565b600d546001600160a01b03165f908152600460205260408120805492935083929091906122bf9084906135d8565b909155506122cf905081836132d1565b9150505b6001600160a01b0388165f9081526004602052604090208054820190558461234c576001600160a01b0389165f908152600460205260408120546123189086906134d7565b61232286866134d7565b61232c91906132d1565b90505f5b81811015612349576123418b612559565b600101612330565b50505b6001600160a01b0388165f908152600b602052604090205460ff166123c4575f61237685846134d7565b6001600160a01b038a165f908152600460205260409020546123999087906134d7565b6123a391906132d1565b90505f5b818110156123c1576123b98a8361268d565b6001016123a7565b50505b876001600160a01b0316896001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878960405161240991815260200190565b60405180910390a350600198975050505050505050565b600161242c8382613201565b50600261131c8282613201565b6060601780546124489061314e565b80601f01602080910402602001604051908101604052809291908181526020018280546124749061314e565b80156124bf5780601f10612496576101008083540402835291602001916124bf565b820191905f5260205f20905b8154815290600101906020018083116124a257829003601f168201915b5050505050905090565b60605f6124d58361279f565b60010190505f8167ffffffffffffffff8111156124f4576124f4612cc2565b6040519080825280601f01601f19166020018201604052801561251e576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461252857509392505050565b6001600160a01b03811661258057604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f90815260096020526040812080546125a5906001906132d1565b815481106125b5576125b56132e4565b905f5260205f200154905060095f836001600160a01b03166001600160a01b031681526020019081526020015f208054806125f2576125f26132f8565b5f82815260208082205f199084018101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b03199081169091556006835281842080549091169055600e9091529020805463ffffffff1916905560405181905f906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166126b457604051634e46966960e11b815260040160405180910390fd5b60038054600101908190555f818152600860205260409020546001600160a01b0316156126f45760405163119b4fd360e11b815260040160405180910390fd5b5f81815260086020908152604080832080546001600160a01b0319166001600160a01b03881690811790915580845260098352908320805460018181018355828652938520018590559252905461274b91906132d1565b5f828152600a60205260409020556127638183612876565b60405181906001600160a01b038516905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106127dd5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612809576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061282757662386f26fc10000830492506010015b6305f5e100831061283f576305f5e100830492506008015b612710831061285357612710830492506004015b60648310612865576064830492506002015b600a8310610f115760010192915050565b5f612883836127106129b9565b90505f61288f83612a19565b8263ffffffff16106128a25760026128a5565b60015b60ff1690505f600182146128c957601254640100000000900463ffffffff166128d3565b60125463ffffffff165b90505f6128e086836129b9565b6015549091505f906128f990889063ffffffff166129b9565b90505f6129428860168463ffffffff1681548110612919576129196132e4565b905f5260205f2090600891828204019190066004029054906101000a900463ffffffff166129b9565b90505f8161295184600a6135eb565b61295b9190613333565b90508561296982600a6135eb565b612975866103e86135eb565b61297f9190613333565b6129899190613333565b5f998a52600e6020526040909920805463ffffffff191663ffffffff909a16999099179098555050505050505050565b604080514260208201524391810191909152606080820184905233901b6bffffffffffffffffffffffff191660808201525f9063ffffffff831690609401604051602081830303815290604052805190602001205f1c6119fa9190613613565b5f808211612a2857505f919050565b5f5b601454612a39906001906132d1565b811015612b0d5760148181548110612a5357612a536132e4565b5f918252602090912060088204015460079091166004026101000a900463ffffffff168310801590612ac357506014612a8d8260016135d8565b81548110612a9d57612a9d6132e4565b5f918252602090912060088204015460079091166004026101000a900463ffffffff1683105b15612b055760138181548110612adb57612adb6132e4565b5f918252602090912060088204015460079091166004026101000a900463ffffffff169392505050565b600101612a2a565b50601454601390612b20906001906132d1565b81548110612b3057612b306132e4565b5f918252602090912060088204015460079091166004026101000a900463ffffffff1692915050565b828054828255905f5260205f2090600701600890048101928215612bf5579160200282015f5b83821115612bc357835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302612b7f565b8015612bf35782816101000a81549063ffffffff0219169055600401602081600301049283019260010302612bc3565b505b50612c01929150612c05565b5090565b5b80821115612c01575f8155600101612c06565b5f5b83811015612c33578181015183820152602001612c1b565b50505f910152565b602081525f8251806020840152612c59816040850160208701612c19565b601f01601f19169190910160400192915050565b5f60208284031215612c7d575f80fd5b5035919050565b80356001600160a01b03811681146117b4575f80fd5b5f8060408385031215612cab575f80fd5b612cb483612c84565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612cff57612cff612cc2565b604052919050565b5f82601f830112612d16575f80fd5b813567ffffffffffffffff811115612d3057612d30612cc2565b612d43601f8201601f1916602001612cd6565b818152846020838601011115612d57575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215612d83575f80fd5b813567ffffffffffffffff811115612d99575f80fd5b611ff884828501612d07565b5f805f60608486031215612db7575f80fd5b612dc084612c84565b9250612dce60208501612c84565b9150604084013590509250925092565b5f60208284031215612dee575f80fd5b6119fa82612c84565b803563ffffffff811681146117b4575f80fd5b5f60208284031215612e1a575f80fd5b6119fa82612df7565b803580151581146117b4575f80fd5b5f60208284031215612e42575f80fd5b6119fa82612e23565b5f8060408385031215612e5c575f80fd5b823567ffffffffffffffff80821115612e73575f80fd5b612e7f86838701612d07565b93506020850135915080821115612e94575f80fd5b50612ea185828601612d07565b9150509250929050565b5f8060408385031215612ebc575f80fd5b612ec583612c84565b9150612ed360208401612e23565b90509250929050565b5f805f60608486031215612eee575f80fd5b612ef784612c84565b9250612f0560208501612df7565b9150612f1360408501612df7565b90509250925092565b602080825282518282018190525f9190848201906040850190845b81811015612f5357835183529284019291840191600101612f37565b50909695505050505050565b5f8060408385031215612f70575f80fd5b612f7983612df7565b9150612ed360208401612df7565b5f805f805f60808688031215612f9b575f80fd5b612fa486612c84565b9450612fb260208701612c84565b935060408601359250606086013567ffffffffffffffff80821115612fd5575f80fd5b818801915088601f830112612fe8575f80fd5b813581811115612ff6575f80fd5b896020828501011115613007575f80fd5b9699959850939650602001949392505050565b5f82601f830112613029575f80fd5b8135602067ffffffffffffffff82111561304557613045612cc2565b8160051b613054828201612cd6565b928352848101820192828101908785111561306d575f80fd5b83870192505b848310156130935761308483612df7565b82529183019190830190613073565b979650505050505050565b5f80604083850312156130af575f80fd5b823567ffffffffffffffff808211156130c6575f80fd5b6130d28683870161301a565b935060208501359150808211156130e7575f80fd5b50612ea18582860161301a565b5f8060408385031215613105575f80fd5b61310e83612c84565b9150612ed360208401612c84565b5f6020828403121561312c575f80fd5b813567ffffffffffffffff811115613142575f80fd5b611ff88482850161301a565b600181811c9082168061316257607f821691505b60208210810361318057634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252601e908201527f41646d696e3a2063616c6c6572206973206e6f74207468652061646d696e0000604082015260600190565b601f82111561131c57805f5260205f20601f840160051c810160208510156131e25750805b601f840160051c820191505b81811015611319575f81556001016131ee565b815167ffffffffffffffff81111561321b5761321b612cc2565b61322f81613229845461314e565b846131bd565b602080601f831160018114613262575f841561324b5750858301515b5f19600386901b1c1916600185901b178555611dcf565b5f85815260208120601f198616915b8281101561329057888601518255948401946001909101908401613271565b50858210156132ad57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b81810381811115610f1157610f116132bd565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b5f6020828403121561331c575f80fd5b81516001600160e01b0319811681146119fa575f80fd5b63ffffffff818116838216019080821115613350576133506132bd565b5092915050565b63ffffffff828116828216039080821115613350576133506132bd565b5f63ffffffff80831681810361338c5761338c6132bd565b6001019392505050565b8082028115828204841417610f1157610f116132bd565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290525f828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b5f85516020613412828560208b01612c19565b865191840191613426818460208b01612c19565b601760f91b920191825285516001906134458183860160208b01612c19565b86549301925f906134558161314e565b818416801561346b5760018114613484576134b2565b60ff1983168786015281151582028701850193506134b2565b895f5260205f205f5b838110156134a857815489820188015290860190870161348d565b5050848288010193505b50919b9a5050505050505050505050565b634e487b7160e01b5f52601260045260245ffd5b5f826134e5576134e56134c3565b500490565b600181815b8085111561352457815f190482111561350a5761350a6132bd565b8085161561351757918102915b93841c93908002906134ef565b509250929050565b5f8261353a57506001610f11565b8161354657505f610f11565b816001811461355c576002811461356657613582565b6001915050610f11565b60ff841115613577576135776132bd565b50506001821b610f11565b5060208310610133831016604e8410600b84101617156135a5575081810a610f11565b6135af83836134ea565b805f19048211156135c2576135c26132bd565b029392505050565b5f6119fa60ff84168361352c565b80820180821115610f1157610f116132bd565b63ffffffff81811683821602808216919082811461360b5761360b6132bd565b505092915050565b5f82613621576136216134c3565b50069056fea264697066735822122023397f783e2fec810551221b1689b9410f520f6ebb7b8031834b962baac1f39864736f6c63430008180033000000000000000000000000570f032ab5a4911708382edeb440ce54e4f9835d000000000000000000000000a9d996f9ecbbe53fcf8448e5b0f90c854f146f1e
Deployed Bytecode
0x6080604052600436106103df575f3560e01c806375ad0d05116101ff578063b88d4fde11610113578063d05dcc6a116100a8578063ed9ec88811610078578063ed9ec88814610c95578063f2ebde8e14610cc6578063f2fde38b14610ce5578063f4a0a52814610d04578063f851a44014610d23575f80fd5b8063d05dcc6a14610bb1578063dd336c1214610be2578063dd62ed3e14610c18578063e985e9c514610c5c575f80fd5b8063c2bf2ced116100e3578063c2bf2ced14610b23578063c675e06114610b38578063c87b56dd14610b54578063cef6d36814610b73575f80fd5b8063b88d4fde14610ab1578063b8997a9714610ad0578063bb47b6db14610ae5578063c23bfefd14610b04575f80fd5b806395d89b41116101945780639fbc8713116101645780639fbc871314610a07578063a22cb46514610a26578063a2801f5714610a45578063a71bbebe14610a7f578063a9059cbb14610a92575f80fd5b806395d89b411461098d5780639b19251a146109a15780639b8ab691146109cf5780639efd3b80146109f0575f80fd5b80638da5cb5b116101cf5780638da5cb5b1461091c5780638dc251e31461093a5780638f0a44e51461095957806391912ddf1461096e575f80fd5b806375ad0d05146108955780637a0d2302146108c15780637ec4a659146108e45780638647812214610903575f80fd5b8063453c2310116102f65780635a2d63061161028b5780636352211e1161025b5780636352211e146107f357806366f76ddb146108125780636817c76c14610836578063704b6c021461084b57806370a082311461086a575f80fd5b80635a2d63061461077a5780635cdad9c2146107ae578063625e331a146107c057806362b99ad4146107df575f80fd5b8063504334c2116102c6578063504334c21461070c578063522140ec1461072b57806353d6fd59146107475780635503a0e814610766575f80fd5b8063453c231014610684578063493fe80f146106a75780634a7aae38146106d85780634f02c420146106f7575f80fd5b806325e1606311610377578063313ce56711610347578063313ce567146105c957806332c60eef1461060e57806332cb6b0c146106315780633e4086e51461064657806342842e0e14610665575f80fd5b806325e160631461055857806328d3b399146105775780632b968958146105965780633006b543146105aa575f80fd5b806312fb9167116103b257806312fb9167146104a357806316ba10e0146104d757806318160ddd146104f857806323b872dd14610539575f80fd5b806301bc45c9146103e357806306fdde031461041f578063081812fc14610440578063095ea7b314610474575b5f80fd5b3480156103ee575f80fd5b50601954610402906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561042a575f80fd5b50610433610d40565b6040516104169190612c3b565b34801561044b575f80fd5b5061040261045a366004612c6d565b60066020525f90815260409020546001600160a01b031681565b34801561047f575f80fd5b5061049361048e366004612c9a565b610dcc565b6040519015158152602001610416565b3480156104ae575f80fd5b506104c26104bd366004612c6d565b610f17565b60405163ffffffff9091168152602001610416565b3480156104e2575f80fd5b506104f66104f1366004612d73565b610f4e565b005b348015610503575f80fd5b5061052b7f0000000000000000000000000000000000000000000000db02434329a220000081565b604051908152602001610416565b348015610544575f80fd5b506104f6610553366004612da5565b610fa5565b348015610563575f80fd5b506104f6610572366004612dde565b611321565b348015610582575f80fd5b506104c2610591366004612c6d565b6113d9565b3480156105a1575f80fd5b506104f66113e8565b3480156105b5575f80fd5b506104f66105c4366004612e0a565b61144c565b3480156105d4575f80fd5b506105fc7f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff9091168152602001610416565b348015610619575f80fd5b506019546104c290600160a01b900463ffffffff1681565b34801561063c575f80fd5b506104c2610fc881565b348015610651575f80fd5b506104f6610660366004612c6d565b6114af565b348015610670575f80fd5b506104f661067f366004612da5565b611544565b34801561068f575f80fd5b506019546104c290600160e01b900463ffffffff1681565b3480156106b2575f80fd5b5061052b6106c1366004612c6d565b5f908152600e602052604090205463ffffffff1690565b3480156106e3575f80fd5b506104f66106f2366004612e32565b611615565b348015610702575f80fd5b5061052b60035481565b348015610717575f80fd5b506104f6610726366004612e4b565b611666565b348015610736575f80fd5b506012546104c29063ffffffff1681565b348015610752575f80fd5b506104f6610761366004612eab565b6116ae565b348015610771575f80fd5b50610433611701565b348015610785575f80fd5b5061052b610794366004612dde565b6001600160a01b03165f9081526009602052604090205490565b3480156107b9575f80fd5b504761052b565b3480156107cb575f80fd5b506104f66107da366004612e0a565b61170e565b3480156107ea575f80fd5b50610433611772565b3480156107fe575f80fd5b5061040261080d366004612c6d565b61177f565b34801561081d575f80fd5b506012546104c290640100000000900463ffffffff1681565b348015610841575f80fd5b5061052b60105481565b348015610856575f80fd5b506104f6610865366004612dde565b6117b9565b348015610875575f80fd5b5061052b610884366004612dde565b60046020525f908152604090205481565b3480156108a0575f80fd5b506108b46108af366004612edc565b61187b565b6040516104169190612f1c565b3480156108cc575f80fd5b506019546104c290600160c01b900463ffffffff1681565b3480156108ef575f80fd5b506104f66108fe366004612d73565b611a01565b34801561090e575f80fd5b50600f546104939060ff1681565b348015610927575f80fd5b505f54610402906001600160a01b031681565b348015610945575f80fd5b506104f6610954366004612dde565b611a4b565b348015610964575f80fd5b506104c261271081565b348015610979575f80fd5b506104f6610988366004612f5f565b611b0b565b348015610998575f80fd5b50610433611b79565b3480156109ac575f80fd5b506104936109bb366004612dde565b600b6020525f908152604090205460ff1681565b3480156109da575f80fd5b50601954600160c01b900463ffffffff1661052b565b3480156109fb575f80fd5b50600f5460ff16610493565b348015610a12575f80fd5b50600d54610402906001600160a01b031681565b348015610a31575f80fd5b506104f6610a40366004612eab565b611b86565b348015610a50575f80fd5b506104c2610a5f366004612dde565b6001600160a01b03165f9081526011602052604090205463ffffffff1690565b6104f6610a8d366004612e0a565b611bf1565b348015610a9d575f80fd5b50610493610aac366004612c9a565b611dd7565b348015610abc575f80fd5b506104f6610acb366004612f87565b611de3565b348015610adb575f80fd5b5061052b600c5481565b348015610af0575f80fd5b506104f6610aff36600461309e565b611ea3565b348015610b0f575f80fd5b506104c2610b1e366004612c6d565b611f08565b348015610b2e575f80fd5b5061052b61271081565b348015610b43575f80fd5b506015546104c29063ffffffff1681565b348015610b5f575f80fd5b50610433610b6e366004612c6d565b611f17565b348015610b7e575f80fd5b50610b92610b8d366004612c6d565b612000565b604080516001600160a01b039093168352602083019190915201610416565b348015610bbc575f80fd5b506104c2610bcb366004612c6d565b600e6020525f908152604090205463ffffffff1681565b348015610bed575f80fd5b5061052b610bfc3660046130f4565b600560209081525f928352604080842090915290825290205481565b348015610c23575f80fd5b5061052b610c323660046130f4565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205490565b348015610c67575f80fd5b50610493610c763660046130f4565b600760209081525f928352604080842090915290825290205460ff1681565b348015610ca0575f80fd5b506104c2610caf366004612dde565b60116020525f908152604090205463ffffffff1681565b348015610cd1575f80fd5b506104f6610ce036600461311c565b612037565b348015610cf0575f80fd5b506104f6610cff366004612dde565b6120a5565b348015610d0f575f80fd5b506104f6610d1e366004612c6d565b61213f565b348015610d2e575f80fd5b506019546001600160a01b0316610402565b60018054610d4d9061314e565b80601f0160208091040260200160405190810160405280929190818152602001828054610d799061314e565b8015610dc45780601f10610d9b57610100808354040283529160200191610dc4565b820191905f5260205f20905b815481529060010190602001808311610da757829003601f168201915b505050505081565b5f6003548211158015610dde57505f82115b15610eb2575f828152600860205260409020546001600160a01b0316338114801590610e2d57506001600160a01b0381165f90815260076020908152604080832033845290915290205460ff16155b15610e4a576040516282b42960e81b815260040160405180910390fd5b5f8381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610f0d565b335f8181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b60168181548110610f26575f80fd5b905f5260205f209060089182820401919006600402915054906101000a900463ffffffff1681565b6019546001600160a01b0316331480610f7057505f546001600160a01b031633145b610f955760405162461bcd60e51b8152600401610f8c90613186565b60405180910390fd5b6018610fa18282613201565b5050565b60035481116112b5575f818152600860205260409020546001600160a01b03848116911614610fe757604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661100e57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061104a57506001600160a01b0383165f90815260076020908152604080832033845290915290205460ff16155b801561106c57505f818152600660205260409020546001600160a01b03163314155b15611089576040516282b42960e81b815260040160405180910390fd5b611091612182565b6001600160a01b0384165f90815260046020526040812080549091906110b89084906132d1565b909155506110c69050612182565b6001600160a01b038084165f81815260046020908152604080832080549096019095558582526008815284822080546001600160a01b03199081169094179055600681528482208054909316909255918616825260099052908120805461112f906001906132d1565b8154811061113f5761113f6132e4565b5f9182526020808320909101546001600160a01b0387168352600982526040808420868552600a90935290922054815492935083928110611182576111826132e4565b5f9182526020808320909101929092556001600160a01b03861681526009909152604090208054806111b6576111b66132f8565b5f828152602080822083015f19908101839055909201909255838252600a8152604080832054848452818420556001600160a01b03861680845260098352908320805460018181018355828652938520018690559252905461121891906132d1565b5f838152600a602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148761129e612182565b60405190815260200160405180910390a350505050565b6001600160a01b0383165f9081526005602090815260408083203384529091529020545f19811461130e576112ea82826132d1565b6001600160a01b0385165f9081526005602090815260408083203384529091529020555b6113198484846121b3565b50505b505050565b6019546001600160a01b031633148061134357505f546001600160a01b031633145b61135f5760405162461bcd60e51b8152600401610f8c90613186565b47806113a65760405162461bcd60e51b81526020600482015260166024820152754d4a3430343a2062616c616e6365206973207a65726f60501b6044820152606401610f8c565b6040516001600160a01b0383169082156108fc029083905f818181858888f1935050505015801561131c573d5f803e3d5ffd5b60138181548110610f26575f80fd5b5f546001600160a01b03163314611411576040516282b42960e81b815260040160405180910390fd5b5f80546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b6019546001600160a01b031633148061146e57505f546001600160a01b031633145b61148a5760405162461bcd60e51b8152600401610f8c90613186565b6019805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b6019546001600160a01b03163314806114d157505f546001600160a01b031633145b6114ed5760405162461bcd60e51b8152600401610f8c90613186565b61271081111561153f5760405162461bcd60e51b815260206004820152601d60248201527f4552433430343a20526f79616c74792066656520746f6f20686967682e0000006044820152606401610f8c565b600c55565b61154f838383610fa5565b6001600160a01b0382163b158015906115f75750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af11580156115c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115ea919061330c565b6001600160e01b03191614155b1561131c57604051633da6393160e01b815260040160405180910390fd5b6019546001600160a01b031633148061163757505f546001600160a01b031633145b6116535760405162461bcd60e51b8152600401610f8c90613186565b600f805460ff1916911515919091179055565b6019546001600160a01b031633148061168857505f546001600160a01b031633145b6116a45760405162461bcd60e51b8152600401610f8c90613186565b610fa18282612420565b5f546001600160a01b031633146116d7576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091165f908152600b60205260409020805460ff1916911515919091179055565b60188054610d4d9061314e565b6019546001600160a01b031633148061173057505f546001600160a01b031633145b61174c5760405162461bcd60e51b8152600401610f8c90613186565b6019805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b60178054610d4d9061314e565b5f818152600860205260409020546001600160a01b0316806117b45760405163c5723b5160e01b815260040160405180910390fd5b919050565b6019546001600160a01b03163314806117db57505f546001600160a01b031633145b6117f75760405162461bcd60e51b8152600401610f8c90613186565b6001600160a01b0381166118595760405162461bcd60e51b8152602060048201526024808201527f41646d696e3a206e65772061646d696e20697320746865207a65726f206164646044820152637265737360e01b6064820152608401610f8c565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b606060148263ffffffff16111561189157601491505b6001600160a01b0384165f9081526009602052604090205463ffffffff808216908516106118ce575050604080515f8152602081019091526119fa565b826118d98186613333565b63ffffffff168263ffffffff1610156118f9576118f68583613357565b90505b6001600160a01b0386165f9081526009602052604081209063ffffffff831667ffffffffffffffff81111561193057611930612cc2565b604051908082528060200260200182016040528015611959578160200160208202803683370190505b509050865b6119688789613333565b63ffffffff168163ffffffff1610801561198d57508463ffffffff168163ffffffff16105b156119f357828163ffffffff16815481106119aa576119aa6132e4565b905f5260205f2001548289836119c09190613357565b63ffffffff16815181106119d6576119d66132e4565b6020908102919091010152806119eb81613374565b91505061195e565b5093505050505b9392505050565b6019546001600160a01b0316331480611a2357505f546001600160a01b031633145b611a3f5760405162461bcd60e51b8152600401610f8c90613186565b6017610fa18282613201565b6019546001600160a01b0316331480611a6d57505f546001600160a01b031633145b611a895760405162461bcd60e51b8152600401610f8c90613186565b6001600160a01b038116611ae95760405162461bcd60e51b815260206004820152602160248201527f4552433430343a20496e76616c696420726563656976657220616464726573736044820152601760f91b6064820152608401610f8c565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6019546001600160a01b0316331480611b2d57505f546001600160a01b031633145b611b495760405162461bcd60e51b8152600401610f8c90613186565b6012805463ffffffff9283166401000000000267ffffffffffffffff199091169290931691909117919091179055565b60028054610d4d9061314e565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f5460ff16611c145760405163917ad38160e01b815260040160405180910390fd5b60105463ffffffff821634611c298284613396565b14611c475760405163020b5e0b60e11b815260040160405180910390fd5b8263ffffffff81161580611c83575060195463ffffffff600160a01b8204811691611c7b918491600160c01b900416613333565b63ffffffff16115b80611cbf5750601954335f9081526011602052604090205463ffffffff600160e01b909204821691611cb791849116613333565b63ffffffff16115b15611cdd576040516372cf415160e11b815260040160405180910390fd5b5f611ce6612182565b611cf69063ffffffff8716613396565b5f80546001600160a01b0316815260046020526040902054909150811115611d315760405163f5819e0760e01b815260040160405180910390fd5b335f9081526011602052604081208054879290611d5590849063ffffffff16613333565b92506101000a81548163ffffffff021916908363ffffffff16021790555084601960188282829054906101000a900463ffffffff16611d949190613333565b92506101000a81548163ffffffff021916908363ffffffff160217905550611dcf5f8054906101000a90046001600160a01b031633836121b3565b505050505050565b5f6119fa3384846121b3565b611dee858585610fa5565b6001600160a01b0384163b15801590611e855750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290611e389033908a908990899089906004016133ad565b6020604051808303815f875af1158015611e54573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e78919061330c565b6001600160e01b03191614155b1561131957604051633da6393160e01b815260040160405180910390fd5b6019546001600160a01b0316331480611ec557505f546001600160a01b031633145b611ee15760405162461bcd60e51b8152600401610f8c90613186565b8151611ef4906013906020850190612b59565b50805161131c906014906020840190612b59565b60148181548110610f26575f80fd5b5f818152600e602052604090205460609063ffffffff1680611f935760405162461bcd60e51b815260206004820152602f60248201527f4552433430344d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610f8c565b5f611f9c612439565b90505f815111611fba5760405180602001604052805f815250611ff8565b80611fc4856124c9565b611fd38463ffffffff166124c9565b6018604051602001611fe894939291906133ff565b6040516020818303038152906040525b949350505050565b600d54600c545f9182916001600160a01b0390911690612710906120249086613396565b61202e91906134d7565b91509150915091565b6019546001600160a01b031633148061205957505f546001600160a01b031633145b6120755760405162461bcd60e51b8152600401610f8c90613186565b8051612088906016906020840190612b59565b50516015805463ffffffff191663ffffffff909216919091179055565b5f546001600160a01b031633146120ce576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381166120f5576040516349e27cff60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6019546001600160a01b031633148061216157505f546001600160a01b031633145b61217d5760405162461bcd60e51b8152600401610f8c90613186565b601055565b5f6121ae7f0000000000000000000000000000000000000000000000000000000000000012600a6135ca565b905090565b6001600160a01b0383165f908152600b602052604081205460ff16816121d7612182565b6001600160a01b038088165f9081526004602052604080822054928916825290205491925090858083101561221f57604051631e9acf1760e31b815260040160405180910390fd5b6001600160a01b0389165f90815260046020526040812080548992906122469084906132d1565b90915550508415801561225a57505f600c54115b80156122705750600d546001600160a01b031615155b156122d3575f612710600c54896122879190613396565b61229191906134d7565b600d546001600160a01b03165f908152600460205260408120805492935083929091906122bf9084906135d8565b909155506122cf905081836132d1565b9150505b6001600160a01b0388165f9081526004602052604090208054820190558461234c576001600160a01b0389165f908152600460205260408120546123189086906134d7565b61232286866134d7565b61232c91906132d1565b90505f5b81811015612349576123418b612559565b600101612330565b50505b6001600160a01b0388165f908152600b602052604090205460ff166123c4575f61237685846134d7565b6001600160a01b038a165f908152600460205260409020546123999087906134d7565b6123a391906132d1565b90505f5b818110156123c1576123b98a8361268d565b6001016123a7565b50505b876001600160a01b0316896001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878960405161240991815260200190565b60405180910390a350600198975050505050505050565b600161242c8382613201565b50600261131c8282613201565b6060601780546124489061314e565b80601f01602080910402602001604051908101604052809291908181526020018280546124749061314e565b80156124bf5780601f10612496576101008083540402835291602001916124bf565b820191905f5260205f20905b8154815290600101906020018083116124a257829003601f168201915b5050505050905090565b60605f6124d58361279f565b60010190505f8167ffffffffffffffff8111156124f4576124f4612cc2565b6040519080825280601f01601f19166020018201604052801561251e576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461252857509392505050565b6001600160a01b03811661258057604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f90815260096020526040812080546125a5906001906132d1565b815481106125b5576125b56132e4565b905f5260205f200154905060095f836001600160a01b03166001600160a01b031681526020019081526020015f208054806125f2576125f26132f8565b5f82815260208082205f199084018101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b03199081169091556006835281842080549091169055600e9091529020805463ffffffff1916905560405181905f906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166126b457604051634e46966960e11b815260040160405180910390fd5b60038054600101908190555f818152600860205260409020546001600160a01b0316156126f45760405163119b4fd360e11b815260040160405180910390fd5b5f81815260086020908152604080832080546001600160a01b0319166001600160a01b03881690811790915580845260098352908320805460018181018355828652938520018590559252905461274b91906132d1565b5f828152600a60205260409020556127638183612876565b60405181906001600160a01b038516905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106127dd5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612809576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061282757662386f26fc10000830492506010015b6305f5e100831061283f576305f5e100830492506008015b612710831061285357612710830492506004015b60648310612865576064830492506002015b600a8310610f115760010192915050565b5f612883836127106129b9565b90505f61288f83612a19565b8263ffffffff16106128a25760026128a5565b60015b60ff1690505f600182146128c957601254640100000000900463ffffffff166128d3565b60125463ffffffff165b90505f6128e086836129b9565b6015549091505f906128f990889063ffffffff166129b9565b90505f6129428860168463ffffffff1681548110612919576129196132e4565b905f5260205f2090600891828204019190066004029054906101000a900463ffffffff166129b9565b90505f8161295184600a6135eb565b61295b9190613333565b90508561296982600a6135eb565b612975866103e86135eb565b61297f9190613333565b6129899190613333565b5f998a52600e6020526040909920805463ffffffff191663ffffffff909a16999099179098555050505050505050565b604080514260208201524391810191909152606080820184905233901b6bffffffffffffffffffffffff191660808201525f9063ffffffff831690609401604051602081830303815290604052805190602001205f1c6119fa9190613613565b5f808211612a2857505f919050565b5f5b601454612a39906001906132d1565b811015612b0d5760148181548110612a5357612a536132e4565b5f918252602090912060088204015460079091166004026101000a900463ffffffff168310801590612ac357506014612a8d8260016135d8565b81548110612a9d57612a9d6132e4565b5f918252602090912060088204015460079091166004026101000a900463ffffffff1683105b15612b055760138181548110612adb57612adb6132e4565b5f918252602090912060088204015460079091166004026101000a900463ffffffff169392505050565b600101612a2a565b50601454601390612b20906001906132d1565b81548110612b3057612b306132e4565b5f918252602090912060088204015460079091166004026101000a900463ffffffff1692915050565b828054828255905f5260205f2090600701600890048101928215612bf5579160200282015f5b83821115612bc357835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302612b7f565b8015612bf35782816101000a81549063ffffffff0219169055600401602081600301049283019260010302612bc3565b505b50612c01929150612c05565b5090565b5b80821115612c01575f8155600101612c06565b5f5b83811015612c33578181015183820152602001612c1b565b50505f910152565b602081525f8251806020840152612c59816040850160208701612c19565b601f01601f19169190910160400192915050565b5f60208284031215612c7d575f80fd5b5035919050565b80356001600160a01b03811681146117b4575f80fd5b5f8060408385031215612cab575f80fd5b612cb483612c84565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612cff57612cff612cc2565b604052919050565b5f82601f830112612d16575f80fd5b813567ffffffffffffffff811115612d3057612d30612cc2565b612d43601f8201601f1916602001612cd6565b818152846020838601011115612d57575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215612d83575f80fd5b813567ffffffffffffffff811115612d99575f80fd5b611ff884828501612d07565b5f805f60608486031215612db7575f80fd5b612dc084612c84565b9250612dce60208501612c84565b9150604084013590509250925092565b5f60208284031215612dee575f80fd5b6119fa82612c84565b803563ffffffff811681146117b4575f80fd5b5f60208284031215612e1a575f80fd5b6119fa82612df7565b803580151581146117b4575f80fd5b5f60208284031215612e42575f80fd5b6119fa82612e23565b5f8060408385031215612e5c575f80fd5b823567ffffffffffffffff80821115612e73575f80fd5b612e7f86838701612d07565b93506020850135915080821115612e94575f80fd5b50612ea185828601612d07565b9150509250929050565b5f8060408385031215612ebc575f80fd5b612ec583612c84565b9150612ed360208401612e23565b90509250929050565b5f805f60608486031215612eee575f80fd5b612ef784612c84565b9250612f0560208501612df7565b9150612f1360408501612df7565b90509250925092565b602080825282518282018190525f9190848201906040850190845b81811015612f5357835183529284019291840191600101612f37565b50909695505050505050565b5f8060408385031215612f70575f80fd5b612f7983612df7565b9150612ed360208401612df7565b5f805f805f60808688031215612f9b575f80fd5b612fa486612c84565b9450612fb260208701612c84565b935060408601359250606086013567ffffffffffffffff80821115612fd5575f80fd5b818801915088601f830112612fe8575f80fd5b813581811115612ff6575f80fd5b896020828501011115613007575f80fd5b9699959850939650602001949392505050565b5f82601f830112613029575f80fd5b8135602067ffffffffffffffff82111561304557613045612cc2565b8160051b613054828201612cd6565b928352848101820192828101908785111561306d575f80fd5b83870192505b848310156130935761308483612df7565b82529183019190830190613073565b979650505050505050565b5f80604083850312156130af575f80fd5b823567ffffffffffffffff808211156130c6575f80fd5b6130d28683870161301a565b935060208501359150808211156130e7575f80fd5b50612ea18582860161301a565b5f8060408385031215613105575f80fd5b61310e83612c84565b9150612ed360208401612c84565b5f6020828403121561312c575f80fd5b813567ffffffffffffffff811115613142575f80fd5b611ff88482850161301a565b600181811c9082168061316257607f821691505b60208210810361318057634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252601e908201527f41646d696e3a2063616c6c6572206973206e6f74207468652061646d696e0000604082015260600190565b601f82111561131c57805f5260205f20601f840160051c810160208510156131e25750805b601f840160051c820191505b81811015611319575f81556001016131ee565b815167ffffffffffffffff81111561321b5761321b612cc2565b61322f81613229845461314e565b846131bd565b602080601f831160018114613262575f841561324b5750858301515b5f19600386901b1c1916600185901b178555611dcf565b5f85815260208120601f198616915b8281101561329057888601518255948401946001909101908401613271565b50858210156132ad57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b81810381811115610f1157610f116132bd565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b5f6020828403121561331c575f80fd5b81516001600160e01b0319811681146119fa575f80fd5b63ffffffff818116838216019080821115613350576133506132bd565b5092915050565b63ffffffff828116828216039080821115613350576133506132bd565b5f63ffffffff80831681810361338c5761338c6132bd565b6001019392505050565b8082028115828204841417610f1157610f116132bd565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290525f828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b5f85516020613412828560208b01612c19565b865191840191613426818460208b01612c19565b601760f91b920191825285516001906134458183860160208b01612c19565b86549301925f906134558161314e565b818416801561346b5760018114613484576134b2565b60ff1983168786015281151582028701850193506134b2565b895f5260205f205f5b838110156134a857815489820188015290860190870161348d565b5050848288010193505b50919b9a5050505050505050505050565b634e487b7160e01b5f52601260045260245ffd5b5f826134e5576134e56134c3565b500490565b600181815b8085111561352457815f190482111561350a5761350a6132bd565b8085161561351757918102915b93841c93908002906134ef565b509250929050565b5f8261353a57506001610f11565b8161354657505f610f11565b816001811461355c576002811461356657613582565b6001915050610f11565b60ff841115613577576135776132bd565b50506001821b610f11565b5060208310610133831016604e8410600b84101617156135a5575081810a610f11565b6135af83836134ea565b805f19048211156135c2576135c26132bd565b029392505050565b5f6119fa60ff84168361352c565b80820180821115610f1157610f116132bd565b63ffffffff81811683821602808216919082811461360b5761360b6132bd565b505092915050565b5f82613621576136216134c3565b50069056fea264697066735822122023397f783e2fec810551221b1689b9410f520f6ebb7b8031834b962baac1f39864736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000570f032ab5a4911708382edeb440ce54e4f9835d000000000000000000000000a9d996f9ecbbe53fcf8448e5b0f90c854f146f1e
-----Decoded View---------------
Arg [0] : _owner (address): 0x570f032aB5A4911708382EdeB440ce54e4f9835D
Arg [1] : _royaltyReceiver (address): 0xa9D996f9ecBbE53FCf8448E5b0f90c854f146f1E
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000570f032ab5a4911708382edeb440ce54e4f9835d
Arg [1] : 000000000000000000000000a9d996f9ecbbe53fcf8448e5b0f90c854f146f1e
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.