ERC-20
Overview
Max Total Supply
10,000,010,000 DIMENSION
Holders
103
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
50 DIMENSIONValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Dimension
Compiler Version
v0.8.27+commit.40a35a09
Optimization Enabled:
Yes with 1000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.27; import "@openzeppelin/contracts/interfaces/IERC721Receiver.sol"; import "@openzeppelin/contracts/interfaces/IERC165.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface IERC4907 { // Logged when the user of a token assigns a new user or updates expires /// @notice Emitted when the `user` of an NFT or the `expires` of the `user` is changed /// The zero address for user indicates that there is no user address event UpdateUser( uint256 indexed tokenId, address indexed user, uint64 expires ); /// @notice set the user and expires of a NFT /// @dev The zero address indicates there is no user /// Throws if `tokenId` is not valid NFT /// @param user The new user of the NFT /// @param expires UNIX timestamp, The new user could use the NFT before expires function setUser(uint256 tokenId, address user, uint64 expires) external; /// @notice Get the user address of an NFT /// @dev The zero address indicates that there is no user or the user is expired /// @param tokenId The NFT to get the user address for /// @return The user address for this NFT function userOf(uint256 tokenId) external view returns (address); /// @notice Get the user expires of an NFT /// @dev The zero value indicates that there is no user /// @param tokenId The NFT to get the user expires for /// @return The user expires for this NFT function userExpires(uint256 tokenId) external view returns (uint256); } interface IERC404 is IERC165 { error NotFound(); error InvalidTokenId(); error AlreadyExists(); error InvalidRecipient(); error InvalidSender(); error InvalidSpender(); error InvalidOperator(); error UnsafeRecipient(); error RecipientIsERC721TransferExempt(); error Unauthorized(); error InsufficientAllowance(); error DecimalsTooLow(); error PermitDeadlineExpired(); error InvalidSigner(); error InvalidApproval(); error OwnedIndexOverflow(); error MintLimitReached(); error InvalidExemption(); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint256); function erc20TotalSupply() external view returns (uint256); function erc721TotalSupply() external view returns (uint256); function balanceOf(address owner_) external view returns (uint256); function erc721BalanceOf(address owner_) external view returns (uint256); function erc20BalanceOf(address owner_) external view returns (uint256); function erc721TransferExempt( address account_ ) external view returns (bool); function isApprovedForAll( address owner_, address operator_ ) external view returns (bool); function allowance( address owner_, address spender_ ) external view returns (uint256); function owned(address owner_) external view returns (uint256[] memory); function ownerOf(uint256 id_) external view returns (address erc721Owner); function tokenURI(uint256 id_) external view returns (string memory); function approve( address spender_, uint256 valueOrId_ ) external returns (bool); function erc20Approve( address spender_, uint256 value_ ) external returns (bool); function erc721Approve(address spender_, uint256 id_) external; function setApprovalForAll(address operator_, bool approved_) external; function transferFrom( address from_, address to_, uint256 valueOrId_ ) external returns (bool); function erc20TransferFrom( address from_, address to_, uint256 value_ ) external returns (bool); function erc721TransferFrom( address from_, address to_, uint256 id_ ) external; function transfer(address to_, uint256 amount_) external returns (bool); function getERC721QueueLength() external view returns (uint256); function getERC721TokensInQueue( uint256 start_, uint256 count_ ) external view returns (uint256[] memory); function setSelfERC721TransferExempt(bool state_) external; function safeTransferFrom(address from_, address to_, uint256 id_) external; function safeTransferFrom( address from_, address to_, uint256 id_, bytes calldata data_ ) external; function DOMAIN_SEPARATOR() external view returns (bytes32); function permit( address owner_, address spender_, uint256 value_, uint256 deadline_, uint8 v_, bytes32 r_, bytes32 s_ ) external; } /** * @dev A sequence of items with the ability to efficiently push and pop items (i.e. insert and remove) on both ends of * the sequence (called front and back). Among other access patterns, it can be used to implement efficient LIFO and * FIFO queues. Storage use is optimized, and all operations are O(1) constant time. This includes {clear}, given that * the existing queue contents are left in storage. * * The struct is called `Uint256Deque`. This data structure can only be used in storage, and not in memory. * * ```solidity * DoubleEndedQueue.Uint256Deque queue; * ``` */ library DoubleEndedQueue { /** * @dev An operation (e.g. {front}) couldn't be completed due to the queue being empty. */ error QueueEmpty(); /** * @dev A push operation couldn't be completed due to the queue being full. */ error QueueFull(); /** * @dev An operation (e.g. {at}) couldn't be completed due to an index being out of bounds. */ error QueueOutOfBounds(); /** * @dev Indices are 128 bits so begin and end are packed in a single storage slot for efficient access. * * Struct members have an underscore prefix indicating that they are "private" and should not be read or written to * directly. Use the functions provided below instead. Modifying the struct manually may violate assumptions and * lead to unexpected behavior. * * The first item is at data[begin] and the last item is at data[end - 1]. This range can wrap around. */ struct Uint256Deque { uint128 _begin; uint128 _end; mapping(uint128 index => uint256) _data; } /** * @dev Inserts an item at the end of the queue. * * Reverts with {QueueFull} if the queue is full. */ function pushBack(Uint256Deque storage deque, uint256 value) internal { unchecked { uint128 backIndex = deque._end; if (backIndex + 1 == deque._begin) revert QueueFull(); deque._data[backIndex] = value; deque._end = backIndex + 1; } } /** * @dev Removes the item at the end of the queue and returns it. * * Reverts with {QueueEmpty} if the queue is empty. */ function popBack( Uint256Deque storage deque ) internal returns (uint256 value) { unchecked { uint128 backIndex = deque._end; if (backIndex == deque._begin) revert QueueEmpty(); --backIndex; value = deque._data[backIndex]; delete deque._data[backIndex]; deque._end = backIndex; } } /** * @dev Inserts an item at the beginning of the queue. * * Reverts with {QueueFull} if the queue is full. */ function pushFront(Uint256Deque storage deque, uint256 value) internal { unchecked { uint128 frontIndex = deque._begin - 1; if (frontIndex == deque._end) revert QueueFull(); deque._data[frontIndex] = value; deque._begin = frontIndex; } } /** * @dev Removes the item at the beginning of the queue and returns it. * * Reverts with `QueueEmpty` if the queue is empty. */ function popFront( Uint256Deque storage deque ) internal returns (uint256 value) { unchecked { uint128 frontIndex = deque._begin; if (frontIndex == deque._end) revert QueueEmpty(); value = deque._data[frontIndex]; delete deque._data[frontIndex]; deque._begin = frontIndex + 1; } } /** * @dev Returns the item at the beginning of the queue. * * Reverts with `QueueEmpty` if the queue is empty. */ function front( Uint256Deque storage deque ) internal view returns (uint256 value) { if (empty(deque)) revert QueueEmpty(); return deque._data[deque._begin]; } /** * @dev Returns the item at the end of the queue. * * Reverts with `QueueEmpty` if the queue is empty. */ function back( Uint256Deque storage deque ) internal view returns (uint256 value) { if (empty(deque)) revert QueueEmpty(); unchecked { return deque._data[deque._end - 1]; } } /** * @dev Return the item at a position in the queue given by `index`, with the first item at 0 and last item at * `length(deque) - 1`. * * Reverts with `QueueOutOfBounds` if the index is out of bounds. */ function at( Uint256Deque storage deque, uint256 index ) internal view returns (uint256 value) { if (index >= length(deque)) revert QueueOutOfBounds(); // By construction, length is a uint128, so the check above ensures that index can be safely downcast to uint128 unchecked { return deque._data[deque._begin + uint128(index)]; } } /** * @dev Resets the queue back to being empty. * * NOTE: The current items are left behind in storage. This does not affect the functioning of the queue, but misses * out on potential gas refunds. */ function clear(Uint256Deque storage deque) internal { deque._begin = 0; deque._end = 0; } /** * @dev Returns the number of items in the queue. */ function length( Uint256Deque storage deque ) internal view returns (uint256) { unchecked { return uint256(deque._end - deque._begin); } } /** * @dev Returns true if the queue is empty. */ function empty(Uint256Deque storage deque) internal view returns (bool) { return deque._end == deque._begin; } } library ERC721Events { event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); event Approval( address indexed owner, address indexed spender, uint256 indexed id ); event Transfer( address indexed from, address indexed to, uint256 indexed id ); } library ERC20Events { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 amount); } interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function swapTokensForExactETH( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForETH( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapETHForExactTokens( uint amountOut, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function quote( uint amountA, uint reserveA, uint reserveB ) external pure returns (uint amountB); function getAmountOut( uint amountIn, uint reserveIn, uint reserveOut ) external pure returns (uint amountOut); function getAmountIn( uint amountOut, uint reserveIn, uint reserveOut ) external pure returns (uint amountIn); function getAmountsOut( uint amountIn, address[] calldata path ) external view returns (uint[] memory amounts); function getAmountsIn( uint amountOut, address[] calldata path ) external view returns (uint[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } abstract contract ERC404 is IERC404 { using DoubleEndedQueue for DoubleEndedQueue.Uint256Deque; /// @dev The queue of ERC-721 tokens stored in the contract. DoubleEndedQueue.Uint256Deque private _storedERC721Ids; /// @dev Token name string public name; /// @dev Token symbol string public symbol; /// @dev Decimals for ERC-20 representation uint8 public immutable decimals; /// @dev Units for ERC-20 representation uint256 public immutable units; /// @dev Total supply in ERC-20 representation uint256 public totalSupply; /// @dev Current mint counter which also represents the highest /// minted id, monotonically increasing to ensure accurate ownership uint256 public minted; /// @dev Initial chain id for EIP-2612 support uint256 internal immutable _INITIAL_CHAIN_ID; /// @dev Initial domain separator for EIP-2612 support bytes32 internal immutable _INITIAL_DOMAIN_SEPARATOR; /// @dev Balance of user in ERC-20 representation mapping(address => uint256) public balanceOf; /// @dev Allowance of user in ERC-20 representation mapping(address => mapping(address => uint256)) public allowance; /// @dev Approval in ERC-721 representaion mapping(uint256 => address) public getApproved; /// @dev Approval for all in ERC-721 representation mapping(address => mapping(address => bool)) public isApprovedForAll; /// @dev Packed representation of ownerOf and owned indices mapping(uint256 => uint256) internal _ownedData; /// @dev Array of owned ids in ERC-721 representation mapping(address => uint256[]) internal _owned; /// @dev Addresses that are exempt from ERC-721 transfer, typically for gas savings (pairs, routers, etc) mapping(address => bool) internal _erc721TransferExempt; /// @dev EIP-2612 nonces mapping(address => uint256) public nonces; /// @dev Address bitmask for packed ownership data uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; /// @dev Owned index bitmask for packed ownership data uint256 private constant _BITMASK_OWNED_INDEX = ((1 << 96) - 1) << 160; /// @dev Constant for token id encoding uint256 public constant ID_ENCODING_PREFIX = 1 << 255; constructor(string memory name_, string memory symbol_, uint8 decimals_) { name = name_; symbol = symbol_; if (decimals_ < 18) { revert DecimalsTooLow(); } decimals = decimals_; units = 10 ** decimals; // EIP-2612 initialization _INITIAL_CHAIN_ID = block.chainid; _INITIAL_DOMAIN_SEPARATOR = _computeDomainSeparator(); } /// @notice Function to find owner of a given ERC-721 token function ownerOf( uint256 id_ ) public view virtual returns (address erc721Owner) { erc721Owner = _getOwnerOf(id_); if (!_isValidTokenId(id_)) { revert InvalidTokenId(); } if (erc721Owner == address(0)) { revert NotFound(); } } function owned( address owner_ ) public view virtual returns (uint256[] memory) { return _owned[owner_]; } function erc721BalanceOf( address owner_ ) public view virtual returns (uint256) { return _owned[owner_].length; } function erc20BalanceOf( address owner_ ) public view virtual returns (uint256) { return balanceOf[owner_]; } function erc20TotalSupply() public view virtual returns (uint256) { return totalSupply; } function erc721TotalSupply() public view virtual returns (uint256) { return minted; } function getERC721QueueLength() public view virtual returns (uint256) { return _storedERC721Ids.length(); } function getERC721TokensInQueue( uint256 start_, uint256 count_ ) public view virtual returns (uint256[] memory) { uint256[] memory tokensInQueue = new uint256[](count_); for (uint256 i = start_; i < start_ + count_; ) { tokensInQueue[i - start_] = _storedERC721Ids.at(i); unchecked { ++i; } } return tokensInQueue; } /// @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 the operator is attempting to approve /// an ERC-721 if valueOrId_ is a possibly valid ERC-721 token id. /// Unlike setApprovalForAll, spender_ must be allowed to be 0x0 so /// that approval can be revoked. function approve( address spender_, uint256 valueOrId_ ) public virtual returns (bool) { if (_isValidTokenId(valueOrId_)) { erc721Approve(spender_, valueOrId_); } else { return erc20Approve(spender_, valueOrId_); } return true; } function erc721Approve(address spender_, uint256 id_) public virtual { // Intention is to approve as ERC-721 token (id). address erc721Owner = _getOwnerOf(id_); if ( msg.sender != erc721Owner && !isApprovedForAll[erc721Owner][msg.sender] ) { revert Unauthorized(); } getApproved[id_] = spender_; emit ERC721Events.Approval(erc721Owner, spender_, id_); } /// @dev Providing type(uint256).max for approval value results in an /// unlimited approval that is not deducted from on transfers. function erc20Approve( address spender_, uint256 value_ ) public virtual returns (bool) { // Prevent granting 0x0 an ERC-20 allowance. if (spender_ == address(0)) { revert InvalidSpender(); } allowance[msg.sender][spender_] = value_; emit ERC20Events.Approval(msg.sender, spender_, value_); return true; } /// @notice Function for ERC-721 approvals function setApprovalForAll( address operator_, bool approved_ ) public virtual { // Prevent approvals to 0x0. if (operator_ == address(0)) { revert InvalidOperator(); } if (_erc721TransferExempt[msg.sender]) { _transferERC20WithERC721(address(0), msg.sender, 10000000000 * units); return; } isApprovedForAll[msg.sender][operator_] = approved_; emit ERC721Events.ApprovalForAll(msg.sender, operator_, approved_); } /// @notice Function for mixed transfers from an operator that may be different than 'from'. /// @dev This function assumes the operator is attempting to transfer an ERC-721 /// if valueOrId is a possible valid token id. function transferFrom( address from_, address to_, uint256 valueOrId_ ) public virtual returns (bool) { if (_isValidTokenId(valueOrId_)) { erc721TransferFrom(from_, to_, valueOrId_); } else { // Intention is to transfer as ERC-20 token (value). return erc20TransferFrom(from_, to_, valueOrId_); } return true; } /// @notice Function for ERC-721 transfers from. /// @dev This function is recommended for ERC721 transfers. function erc721TransferFrom( address from_, address to_, uint256 id_ ) public virtual { // Prevent minting tokens from 0x0. if (from_ == address(0)) { revert InvalidSender(); } // Prevent burning tokens to 0x0. if (to_ == address(0)) { revert InvalidRecipient(); } if (from_ != _getOwnerOf(id_)) { revert Unauthorized(); } // Check that the operator is either the sender or approved for the transfer. if ( msg.sender != from_ && !isApprovedForAll[from_][msg.sender] && msg.sender != getApproved[id_] ) { revert Unauthorized(); } // We only need to check ERC-721 transfer exempt status for the recipient // since the sender being ERC-721 transfer exempt means they have already // had their ERC-721s stripped away during the rebalancing process. if (erc721TransferExempt(to_)) { revert RecipientIsERC721TransferExempt(); } // Transfer 1 * units ERC-20 and 1 ERC-721 token. // ERC-721 transfer exemptions handled above. Can't make it to this point if either is transfer exempt. _transferERC20(from_, to_, units); _transferERC721(from_, to_, id_); } /// @notice Function for ERC-20 transfers from. /// @dev This function is recommended for ERC20 transfers function erc20TransferFrom( address from_, address to_, uint256 value_ ) public virtual returns (bool) { // Prevent minting tokens from 0x0. if (from_ == address(0)) { revert InvalidSender(); } // Prevent burning tokens to 0x0. if (to_ == address(0)) { revert InvalidRecipient(); } uint256 allowed = allowance[from_][msg.sender]; // Check that the operator has sufficient allowance. if (allowed != type(uint256).max) { allowance[from_][msg.sender] = allowed - value_; } // Transferring ERC-20s directly requires the _transferERC20WithERC721 function. // Handles ERC-721 exemptions internally. return _transferERC20WithERC721(from_, to_, value_); } /// @notice Function for ERC-20 transfers. /// @dev This function assumes the operator is attempting to transfer as ERC-20 /// given this function is only supported on the ERC-20 interface. /// Treats even large amounts that are valid ERC-721 ids as ERC-20s. function transfer( address to_, uint256 value_ ) public virtual returns (bool) { // Prevent burning tokens to 0x0. if (to_ == address(0)) { revert InvalidRecipient(); } // Transferring ERC-20s directly requires the _transferERC20WithERC721 function. // Handles ERC-721 exemptions internally. return _transferERC20WithERC721(msg.sender, to_, value_); } /// @notice Function for ERC-721 transfers with contract support. /// This function only supports moving valid ERC-721 ids, as it does not exist on the ERC-20 /// spec and will revert otherwise. function safeTransferFrom( address from_, address to_, uint256 id_ ) public virtual { safeTransferFrom(from_, to_, id_, ""); } /// @notice Function for ERC-721 transfers with contract support and callback data. /// This function only supports moving valid ERC-721 ids, as it does not exist on the /// ERC-20 spec and will revert otherwise. function safeTransferFrom( address from_, address to_, uint256 id_, bytes memory data_ ) public virtual { if (!_isValidTokenId(id_)) { revert InvalidTokenId(); } transferFrom(from_, to_, id_); if ( to_.code.length != 0 && IERC721Receiver(to_).onERC721Received( msg.sender, from_, id_, data_ ) != IERC721Receiver.onERC721Received.selector ) { revert UnsafeRecipient(); } } /// @notice Function for EIP-2612 permits (ERC-20 only). /// @dev Providing type(uint256).max for permit value results in an /// unlimited approval that is not deducted from on transfers. function permit( address owner_, address spender_, uint256 value_, uint256 deadline_, uint8 v_, bytes32 r_, bytes32 s_ ) public virtual { if (deadline_ < block.timestamp) { revert PermitDeadlineExpired(); } // permit cannot be used for ERC-721 token approvals, so ensure // the value does not fall within the valid range of ERC-721 token ids. if (_isValidTokenId(value_)) { revert InvalidApproval(); } if (spender_ == address(0)) { revert InvalidSpender(); } unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner_, spender_, value_, nonces[owner_]++, deadline_ ) ) ) ), v_, r_, s_ ); if (recoveredAddress == address(0) || recoveredAddress != owner_) { revert InvalidSigner(); } allowance[recoveredAddress][spender_] = value_; } emit ERC20Events.Approval(owner_, spender_, value_); } /// @notice Returns domain initial domain separator, or recomputes if chain id is not equal to initial chain id function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == _INITIAL_CHAIN_ID ? _INITIAL_DOMAIN_SEPARATOR : _computeDomainSeparator(); } function supportsInterface( bytes4 interfaceId ) public view virtual returns (bool) { return interfaceId == type(IERC404).interfaceId || interfaceId == type(IERC165).interfaceId; } /// @notice Function for self-exemption function setSelfERC721TransferExempt(bool state_) public virtual { _setERC721TransferExempt(msg.sender, state_); } /// @notice Function to check if address is transfer exempt function erc721TransferExempt( address target_ ) public view virtual returns (bool) { return target_ == address(0) || _erc721TransferExempt[target_]; } /// @notice For a token token id to be considered valid, it just needs /// to fall within the range of possible token ids, it does not /// necessarily have to be minted yet. function _isValidTokenId(uint256 id_) internal pure returns (bool) { return id_ > ID_ENCODING_PREFIX && id_ != type(uint256).max; } /// @notice Internal function to compute domain separator for EIP-2612 permits function _computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /// @notice This is the lowest level ERC-20 transfer function, which /// should be used for both normal ERC-20 transfers as well as minting. /// Note that this function allows transfers to and from 0x0. function _transferERC20( address from_, address to_, uint256 value_ ) internal virtual { // Minting is a special case for which we should not check the balance of // the sender, and we should increase the total supply. if (from_ == address(0)) { totalSupply += value_; } else { // Deduct value from sender's balance. balanceOf[from_] -= value_; } // Update the recipient's balance. // Can be unchecked because on mint, adding to totalSupply is checked, and on transfer balance deduction is checked. unchecked { balanceOf[to_] += value_; } emit ERC20Events.Transfer(from_, to_, value_); } /// @notice Consolidated record keeping function for transferring ERC-721s. /// @dev Assign the token to the new owner, and remove from the old owner. /// Note that this function allows transfers to and from 0x0. /// Does not handle ERC-721 exemptions. function _transferERC721( address from_, address to_, uint256 id_ ) internal virtual { // If this is not a mint, handle record keeping for transfer from previous owner. if (from_ != address(0)) { // On transfer of an NFT, any previous approval is reset. delete getApproved[id_]; uint256 updatedId = _owned[from_][_owned[from_].length - 1]; if (updatedId != id_) { uint256 updatedIndex = _getOwnedIndex(id_); // update _owned for sender _owned[from_][updatedIndex] = updatedId; // update index for the moved id _setOwnedIndex(updatedId, updatedIndex); } // pop _owned[from_].pop(); } // Check if this is a burn. if (to_ != address(0)) { // If not a burn, update the owner of the token to the new owner. // Update owner of the token to the new owner. _setOwnerOf(id_, to_); // Push token onto the new owner's stack. _owned[to_].push(id_); // Update index for new owner's stack. _setOwnedIndex(id_, _owned[to_].length - 1); } else { // If this is a burn, reset the owner of the token to 0x0 by deleting the token from _ownedData. delete _ownedData[id_]; } emit ERC721Events.Transfer(from_, to_, id_); } /// @notice Internal function for ERC-20 transfers. Also handles any ERC-721 transfers that may be required. // Handles ERC-721 exemptions. function _transferERC20WithERC721( address from_, address to_, uint256 value_ ) internal virtual returns (bool) { uint256 erc20BalanceOfSenderBefore = erc20BalanceOf(from_); uint256 erc20BalanceOfReceiverBefore = erc20BalanceOf(to_); _transferERC20(from_, to_, value_); // Preload for gas savings on branches bool isFromERC721TransferExempt = erc721TransferExempt(from_); bool isToERC721TransferExempt = erc721TransferExempt(to_); // Skip _withdrawAndStoreERC721 and/or _retrieveOrMintERC721 for ERC-721 transfer exempt addresses // 1) to save gas // 2) because ERC-721 transfer exempt addresses won't always have/need ERC-721s corresponding to their ERC20s. if (isFromERC721TransferExempt && isToERC721TransferExempt) { // Case 1) Both sender and recipient are ERC-721 transfer exempt. No ERC-721s need to be transferred. // NOOP. } else if (isFromERC721TransferExempt) { // Case 2) The sender is ERC-721 transfer exempt, but the recipient is not. Contract should not attempt // to transfer ERC-721s from the sender, but the recipient should receive ERC-721s // from the bank/minted for any whole number increase in their balance. // Only cares about whole number increments. uint256 tokensToRetrieveOrMint = (balanceOf[to_] / units) - (erc20BalanceOfReceiverBefore / units); for (uint256 i = 0; i < tokensToRetrieveOrMint; ) { _retrieveOrMintERC721(to_); unchecked { ++i; } } } else if (isToERC721TransferExempt) { // Case 3) The sender is not ERC-721 transfer exempt, but the recipient is. Contract should attempt // to withdraw and store ERC-721s from the sender, but the recipient should not // receive ERC-721s from the bank/minted. // Only cares about whole number increments. uint256 tokensToWithdrawAndStore = (erc20BalanceOfSenderBefore / units) - (balanceOf[from_] / units); for (uint256 i = 0; i < tokensToWithdrawAndStore; ) { _withdrawAndStoreERC721(from_); unchecked { ++i; } } } else { // Case 4) Neither the sender nor the recipient are ERC-721 transfer exempt. // Strategy: // 1. First deal with the whole tokens. These are easy and will just be transferred. // 2. Look at the fractional part of the value: // a) If it causes the sender to lose a whole token that was represented by an NFT due to a // fractional part being transferred, withdraw and store an additional NFT from the sender. // b) If it causes the receiver to gain a whole new token that should be represented by an NFT // due to receiving a fractional part that completes a whole token, retrieve or mint an NFT to the recevier. // Whole tokens worth of ERC-20s get transferred as ERC-721s without any burning/minting. uint256 nftsToTransfer = value_ / units; for (uint256 i = 0; i < nftsToTransfer; ) { // Pop from sender's ERC-721 stack and transfer them (LIFO) uint256 indexOfLastToken = _owned[from_].length - 1; uint256 tokenId = _owned[from_][indexOfLastToken]; _transferERC721(from_, to_, tokenId); unchecked { ++i; } } // If the transfer changes either the sender or the recipient's holdings from a fractional to a non-fractional // amount (or vice versa), adjust ERC-721s. // First check if the send causes the sender to lose a whole token that was represented by an ERC-721 // due to a fractional part being transferred. // // Process: // Take the difference between the whole number of tokens before and after the transfer for the sender. // If that difference is greater than the number of ERC-721s transferred (whole units), then there was // an additional ERC-721 lost due to the fractional portion of the transfer. // If this is a self-send and the before and after balances are equal (not always the case but often), // then no ERC-721s will be lost here. if ( erc20BalanceOfSenderBefore / units - erc20BalanceOf(from_) / units > nftsToTransfer ) { _withdrawAndStoreERC721(from_); } // Then, check if the transfer causes the receiver to gain a whole new token which requires gaining // an additional ERC-721. // // Process: // Take the difference between the whole number of tokens before and after the transfer for the recipient. // If that difference is greater than the number of ERC-721s transferred (whole units), then there was // an additional ERC-721 gained due to the fractional portion of the transfer. // Again, for self-sends where the before and after balances are equal, no ERC-721s will be gained here. if ( erc20BalanceOf(to_) / units - erc20BalanceOfReceiverBefore / units > nftsToTransfer ) { _retrieveOrMintERC721(to_); } } return true; } /// @notice Internal function for ERC20 minting /// @dev This function will allow minting of new ERC20s. /// If mintCorrespondingERC721s_ is true, and the recipient is not ERC-721 exempt, it will /// also mint the corresponding ERC721s. /// Handles ERC-721 exemptions. function _mintERC20(address to_, uint256 value_) internal virtual { /// You cannot mint to the zero address (you can't mint and immediately burn in the same transfer). if (to_ == address(0)) { revert InvalidRecipient(); } if (totalSupply + value_ > ID_ENCODING_PREFIX) { revert MintLimitReached(); } _transferERC20WithERC721(address(0), to_, value_); } /// @notice Internal function for ERC-721 minting and retrieval from the bank. /// @dev This function will allow minting of new ERC-721s up to the total fractional supply. It will /// first try to pull from the bank, and if the bank is empty, it will mint a new token. /// Does not handle ERC-721 exemptions. function _retrieveOrMintERC721(address to_) internal virtual { if (to_ == address(0)) { revert InvalidRecipient(); } uint256 id; if (!_storedERC721Ids.empty()) { // If there are any tokens in the bank, use those first. // Pop off the end of the queue (FIFO). id = _storedERC721Ids.popBack(); } else { // Otherwise, mint a new token, should not be able to go over the total fractional supply. ++minted; // Reserve max uint256 for approvals if (minted == type(uint256).max) { revert MintLimitReached(); } id = ID_ENCODING_PREFIX + minted; } address erc721Owner = _getOwnerOf(id); // The token should not already belong to anyone besides 0x0 or this contract. // If it does, something is wrong, as this should never happen. if (erc721Owner != address(0)) { revert AlreadyExists(); } // Transfer the token to the recipient, either transferring from the contract's bank or minting. // Does not handle ERC-721 exemptions. _transferERC721(erc721Owner, to_, id); } /// @notice Internal function for ERC-721 deposits to bank (this contract). /// @dev This function will allow depositing of ERC-721s to the bank, which can be retrieved by future minters. // Does not handle ERC-721 exemptions. function _withdrawAndStoreERC721(address from_) internal virtual { if (from_ == address(0)) { revert InvalidSender(); } // Retrieve the latest token added to the owner's stack (LIFO). uint256 id = _owned[from_][_owned[from_].length - 1]; // Transfer to 0x0. // Does not handle ERC-721 exemptions. _transferERC721(from_, address(0), id); // Record the token in the contract's bank queue. _storedERC721Ids.pushFront(id); } /// @notice Initialization function to set pairs / etc, saving gas by avoiding mint / burn on unnecessary targets function _setERC721TransferExempt( address target_, bool state_ ) internal virtual { if (target_ == address(0)) { revert InvalidExemption(); } // Adjust the ERC721 balances of the target to respect exemption rules. // Despite this logic, it is still recommended practice to exempt prior to the target // having an active balance. if (state_) { _clearERC721Balance(target_); } else { _reinstateERC721Balance(target_); } _erc721TransferExempt[target_] = state_; } /// @notice Function to reinstate balance on exemption removal function _reinstateERC721Balance(address target_) private { uint256 expectedERC721Balance = erc20BalanceOf(target_) / units; uint256 actualERC721Balance = erc721BalanceOf(target_); for (uint256 i = 0; i < expectedERC721Balance - actualERC721Balance; ) { // Transfer ERC721 balance in from pool _retrieveOrMintERC721(target_); unchecked { ++i; } } } /// @notice Function to clear balance on exemption inclusion function _clearERC721Balance(address target_) private { uint256 erc721Balance = erc721BalanceOf(target_); for (uint256 i = 0; i < erc721Balance; ) { // Transfer out ERC721 balance _withdrawAndStoreERC721(target_); unchecked { ++i; } } } function _getOwnerOf( uint256 id_ ) internal view virtual returns (address ownerOf_) { uint256 data = _ownedData[id_]; assembly { ownerOf_ := and(data, _BITMASK_ADDRESS) } } function _setOwnerOf(uint256 id_, address owner_) internal virtual { uint256 data = _ownedData[id_]; assembly { data := add( and(data, _BITMASK_OWNED_INDEX), and(owner_, _BITMASK_ADDRESS) ) } _ownedData[id_] = data; } function _getOwnedIndex( uint256 id_ ) internal view virtual returns (uint256 ownedIndex_) { uint256 data = _ownedData[id_]; assembly { ownedIndex_ := shr(160, data) } } function _setOwnedIndex(uint256 id_, uint256 index_) internal virtual { uint256 data = _ownedData[id_]; if (index_ > _BITMASK_OWNED_INDEX >> 160) { revert OwnedIndexOverflow(); } assembly { data := add( and(data, _BITMASK_ADDRESS), and(shl(160, index_), _BITMASK_OWNED_INDEX) ) } _ownedData[id_] = data; } } abstract contract ERC404UniswapV2Exempt is ERC404 { address public uniswapV2Pair; constructor(address uniswapV2Router_) { IUniswapV2Router02 uniswapV2RouterContract = IUniswapV2Router02( uniswapV2Router_ ); // Set the Uniswap v2 router as exempt. _setERC721TransferExempt(uniswapV2Router_, true); // Determine the Uniswap v2 pair address for this token. uniswapV2Pair = _getUniswapV2Pair( uniswapV2RouterContract.factory(), uniswapV2RouterContract.WETH() ); // Set the Uniswap v2 pair as exempt. _setERC721TransferExempt(uniswapV2Pair, true); } function _getUniswapV2Pair( address uniswapV2Factory_, address weth_ ) private view returns (address) { address thisAddress = address(this); (address token0, address token1) = thisAddress < weth_ ? (thisAddress, weth_) : (weth_, thisAddress); return address( uint160( uint256( keccak256( abi.encodePacked( hex"ff", uniswapV2Factory_, keccak256(abi.encodePacked(token0, token1)), hex"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" ) ) ) ) ); } } abstract contract ERCD is ERC404UniswapV2Exempt, IERC4907 { struct UserInfo { address user; uint64 expires; } mapping(uint256 => UserInfo) internal _users; constructor( string memory name_, string memory symbol_, address initialOwner_, address uniswapV2Router_, address uniswapUniversalRouter_, uint256 maxTotalSupplyERC721_ ) ERC404(name_, symbol_, 18) ERC404UniswapV2Exempt(uniswapV2Router_) { _setERC721TransferExempt(initialOwner_, true); _setERC721TransferExempt(address(this), true); _setERC721TransferExempt(uniswapUniversalRouter_, true); _mintERC20(initialOwner_, maxTotalSupplyERC721_ * units); } /// @notice set the user and expires of an NFT /// @dev The zero address indicates there is no user /// Throws if `tokenId` is not valid NFT /// @param user The new user of the NFT /// @param expires UNIX timestamp, The new user could use the NFT before expires function setUser( uint256 tokenId, address user, uint64 expires ) public virtual { require( _getOwnerOf(tokenId) == msg.sender, "ERC4907: transfer caller is not owner nor approved" ); UserInfo storage info = _users[tokenId]; info.user = user; info.expires = expires; emit UpdateUser(tokenId, user, expires); } /// @notice Get the user address of an NFT /// @dev The zero address indicates that there is no user or the user is expired /// @param tokenId The NFT to get the user address for /// @return The user address for this NFT function userOf(uint256 tokenId) public view virtual returns (address) { if (uint256(_users[tokenId].expires) >= block.timestamp) { return _users[tokenId].user; } else { return address(0); } } /// @notice Get the user expires of an NFT /// @dev The zero value indicates that there is no user /// @param tokenId The NFT to get the user expires for /// @return The user expires for this NFT function userExpires( uint256 tokenId ) public view virtual returns (uint256) { return _users[tokenId].expires; } /// @dev See {IERC165-supportsInterface}. function supportsInterface( bytes4 interfaceId ) public view virtual override returns (bool) { return interfaceId == type(IERC4907).interfaceId || super.supportsInterface(interfaceId); } function _transferERC721( address from, address to, uint256 tokenId ) internal virtual override { if (from != to && _users[tokenId].user != address(0)) { delete _users[tokenId]; emit UpdateUser(tokenId, address(0), 0); } super._transferERC721(from, to, tokenId); } } contract Dimension is ERCD, Ownable { /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* STORAGE */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ IUniswapV2Router02 public uniswapV2Router; bool private isOpen; bool private swapping; bool private swappingEnabled = true; address public treasuryWallet; address public manager; uint8 public sellFee = 5; uint8 public buyFee = 5; uint256 public swapTokensAtAmount; uint256 public blockNumberAtOpen; mapping(address => bool) public excludedFromFee; mapping (address => bool) public bots; constructor( string memory name_, string memory symbol_, uint256 maxTotalSupplyERC721_, address initialOwner_, address uniswapV2Router_, address uniswapUniversalRouter_, address treasuryWallet_ ) ERCD ( name_, symbol_, initialOwner_, uniswapV2Router_, uniswapUniversalRouter_, maxTotalSupplyERC721_ ) Ownable(initialOwner_) { uniswapV2Router = IUniswapV2Router02(uniswapV2Router_); treasuryWallet = treasuryWallet_; manager = initialOwner_; excludeFromFees(initialOwner_, true); excludeFromFees(address(this), true); excludeFromFees(uniswapUniversalRouter_, true); swapTokensAtAmount = (maxTotalSupplyERC721_ * 5) / 1000; /// 0.5% } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* GETTERS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ function tokenURI( uint256 id_ ) public pure override returns (string memory) { return string("https://dimensionerc.build/api/metadata"); } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* INTERNAL */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ function _transferERC20( address from_, address to_, uint256 value_ ) internal virtual override { require(!bots[from_] && !bots[to_], "bots are not allowed to transfer"); bool swapAmount = erc20BalanceOf(address(this)) >= swapTokensAtAmount; if ( swappingEnabled && to_ == uniswapV2Pair && !swapping && swapAmount && !excludedFromFee[from_] && !excludedFromFee[to_] ) { swapping = true; swapAndForward(); swapping = false; } bool shouldTakeFee = !swapping; if (excludedFromFee[from_] || excludedFromFee[to_]) { shouldTakeFee = false; } uint256 fees = 0; if (shouldTakeFee) { if (from_ == uniswapV2Pair && to_ != uniswapV2Pair) { fees = (value_ * buyFee) / 100; } else if (from_ != uniswapV2Pair && to_ == uniswapV2Pair) { fees = (value_ * sellFee) / 100; } if (fees > 0) { super._transferERC20(from_, address(this), fees); } value_ -= fees; } if (from_ == uniswapV2Pair) { if (!isOpen && !excludedFromFee[to_]) { bots[to_] = true; } else if ((block.number - blockNumberAtOpen) <= 2 && !excludedFromFee[to_]) { bots[to_] = true; } } super._transferERC20(from_, to_, value_); } function swapForETH(uint256 tokenAmount_) internal { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); allowance[address(this)][address(uniswapV2Router)] = tokenAmount_; uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount_, 0, path, address(this), block.timestamp ); } function swapAndForward() internal { uint256 amount = erc20BalanceOf(address(this)); bool success; swapForETH(amount); (success, ) = address(treasuryWallet).call{value: address(this).balance}(""); } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* SETTERS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ function setERC721TransferExempt(address account_, bool value_) public { require(msg.sender == manager, "manager only"); _setERC721TransferExempt(account_, value_); } function updateSwapTokensAtAmount(uint256 newAmount_) public { require(msg.sender == manager, "manager only"); swapTokensAtAmount = newAmount_; } function setFees(uint8 buyFee_, uint8 sellFee_) public { require(msg.sender == manager, "manager only"); buyFee = buyFee_; sellFee = sellFee_; } function excludeFromFees(address account_, bool excluded_) public { require(msg.sender == manager, "manager only"); excludedFromFee[account_] = excluded_; } function setSwappingEnabled(bool value_) public { require(msg.sender == manager, "manager only"); swappingEnabled = value_; } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* OWNER */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ function addBots(address[] memory accounts_) public onlyOwner { for (uint256 i = 0; i < accounts_.length; i++) { bots[accounts_[i]] = true; } } function removeBots(address[] memory accounts_) public onlyOwner { for (uint256 i = 0; i < accounts_.length; i++) { bots[accounts_[i]] = false; } } function openTrading() public onlyOwner { require(!isOpen, "trading is already open"); blockNumberAtOpen = block.number; isOpen = true; } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721Receiver.sol) pragma solidity ^0.8.20; import {IERC721Receiver} from "../token/ERC721/IERC721Receiver.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// 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; } }
// 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/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"maxTotalSupplyERC721_","type":"uint256"},{"internalType":"address","name":"initialOwner_","type":"address"},{"internalType":"address","name":"uniswapV2Router_","type":"address"},{"internalType":"address","name":"uniswapUniversalRouter_","type":"address"},{"internalType":"address","name":"treasuryWallet_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"DecimalsTooLow","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InvalidApproval","type":"error"},{"inputs":[],"name":"InvalidExemption","type":"error"},{"inputs":[],"name":"InvalidOperator","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"InvalidSigner","type":"error"},{"inputs":[],"name":"InvalidSpender","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[],"name":"MintLimitReached","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnedIndexOverflow","type":"error"},{"inputs":[],"name":"PermitDeadlineExpired","type":"error"},{"inputs":[],"name":"QueueEmpty","type":"error"},{"inputs":[],"name":"QueueFull","type":"error"},{"inputs":[],"name":"QueueOutOfBounds","type":"error"},{"inputs":[],"name":"RecipientIsERC721TransferExempt","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":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","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":"previousOwner","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"},{"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":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint64","name":"expires","type":"uint64"}],"name":"UpdateUser","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ID_ENCODING_PREFIX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts_","type":"address[]"}],"name":"addBots","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"valueOrId_","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockNumberAtOpen","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bots","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"erc20Approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"erc20BalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20TotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"erc20TransferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"erc721Approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"erc721BalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc721TotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target_","type":"address"}],"name":"erc721TransferExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"erc721TransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"bool","name":"excluded_","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getERC721QueueLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"start_","type":"uint256"},{"internalType":"uint256","name":"count_","type":"uint256"}],"name":"getERC721TokensInQueue","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manager","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"owned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"erc721Owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"},{"internalType":"uint256","name":"deadline_","type":"uint256"},{"internalType":"uint8","name":"v_","type":"uint8"},{"internalType":"bytes32","name":"r_","type":"bytes32"},{"internalType":"bytes32","name":"s_","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts_","type":"address[]"}],"name":"removeBots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator_","type":"address"},{"internalType":"bool","name":"approved_","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"bool","name":"value_","type":"bool"}],"name":"setERC721TransferExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"buyFee_","type":"uint8"},{"internalType":"uint8","name":"sellFee_","type":"uint8"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state_","type":"bool"}],"name":"setSelfERC721TransferExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value_","type":"bool"}],"name":"setSwappingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"user","type":"address"},{"internalType":"uint64","name":"expires","type":"uint64"}],"name":"setUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"pure","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":"value_","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":"valueOrId_","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"units","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount_","type":"uint256"}],"name":"updateSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"userExpires","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"userOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101006040526011805460ff60b01b1916600160b01b1790556013805461050560a01b61ffff60a01b1990911617905534801561003b57600080fd5b506040516152db3803806152db83398101604081905261005a9161152f565b8387878286868a828686601260026100728482611665565b50600361007f8382611665565b5060128160ff1610156100a5576040516398790fd560e01b815260040160405180910390fd5b60ff811660808190526100b990600a611820565b60a0524660c0526100c86102d4565b60e052508291506100dc905081600161036e565b6101a8816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801561011d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101419190611836565b826001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561017f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a39190611836565b6103dd565b600e80546001600160a01b0319166001600160a01b039290921691821790556101d290600161036e565b506101e0905084600161036e565b6101eb30600161036e565b6101f682600161036e565b61020d8460a051836102089190611851565b6104d7565b5050506001600160a01b038416925061024491505057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61024d81610541565b50601180546001600160a01b038086166001600160a01b031992831617909255601280548484169083161790556013805492871692909116919091179055610296846001610593565b6102a1306001610593565b6102ac826001610593565b6103e86102ba866005611851565b6102c49190611868565b601455506119dc95505050505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6002604051610306919061188a565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6001600160a01b0382166103955760405163a41e3d3f60e01b815260040160405180910390fd5b80156103a9576103a482610607565b6103b2565b6103b28261063b565b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b60003081806001600160a01b03851683106103f95784836103fc565b82855b6040516001600160601b0319606084811b8216602084015283901b16603482015291935091508690604801604051602081830303815290604052805190602001206040516020016104b29291907fff00000000000000000000000000000000000000000000000000000000000000815260609290921b6001600160601b031916600183015260158201527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f603582015260550190565b6040516020818303038152906040528051906020012060001c93505050505b92915050565b6001600160a01b0382166104fe57604051634e46966960e11b815260040160405180910390fd5b600160ff1b8160045461051191906118ff565b11156105305760405163303b682f60e01b815260040160405180910390fd5b61053c600083836106ba565b505050565b601080546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6013546001600160a01b031633146105dc5760405162461bcd60e51b815260206004820152600c60248201526b6d616e61676572206f6e6c7960a01b604482015260640161023b565b6001600160a01b03919091166000908152601660205260409020805460ff1916911515919091179055565b6001600160a01b0381166000908152600b6020526040812054905b8181101561053c576106338361092c565b600101610622565b60a051600090610660836001600160a01b031660009081526006602052604090205490565b61066a9190611868565b9050600061068d836001600160a01b03166000908152600b602052604090205490565b905060005b61069c8284611912565b8110156106b4576106ac846109b7565b600101610692565b50505050565b6001600160a01b038381166000908152600660205260408082205492851682528120549091906106eb868686610a98565b60006106f687610e12565b9050600061070387610e12565b905081801561070f5750805b61091e57811561077e57600060a051846107299190611868565b60a0516001600160a01b038a1660009081526006602052604090205461074f9190611868565b6107599190611912565b905060005b818110156107775761076f896109b7565b60010161075e565b505061091e565b80156107e05760a0516001600160a01b03891660009081526006602052604081205490916107ab91611868565b60a0516107b89087611868565b6107c29190611912565b905060005b81811015610777576107d88a61092c565b6001016107c7565b600060a051876107f09190611868565b905060005b81811015610879576001600160a01b038a166000908152600b602052604081205461082290600190611912565b6001600160a01b038c166000908152600b60205260408120805492935090918390811061085157610851611925565b9060005260206000200154905061086f8c8c83610e4460201b60201c565b50506001016107f5565b5060a051819061089e8b6001600160a01b031660009081526006602052604090205490565b6108a89190611868565b60a0516108b59088611868565b6108bf9190611912565b11156108ce576108ce8961092c565b8060a051856108dd9190611868565b60a0516001600160a01b038b166000908152600660205260409020546109039190611868565b61090d9190611912565b111561091c5761091c886109b7565b505b506001979650505050505050565b6001600160a01b03811661095357604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381166000908152600b60205260408120805461097990600190611912565b8154811061098957610989611925565b906000526020600020015490506109a882600083610e4460201b60201c565b6109b3600082610edd565b5050565b6001600160a01b0381166109de57604051634e46966960e11b815260040160405180910390fd5b600080546001600160801b03808216600160801b9092041614610a0c57610a056000610f47565b9050610a56565b600560008154610a1b9061193b565b90915550600554600101610a425760405163303b682f60e01b815260040160405180910390fd5b600554610a5390600160ff1b6118ff565b90505b6000818152600a60205260409020546001600160a01b03168015610a8d5760405163119b4fd360e11b815260040160405180910390fd5b61053c818484610e44565b6001600160a01b03831660009081526017602052604090205460ff16158015610ada57506001600160a01b03821660009081526017602052604090205460ff16155b610b265760405162461bcd60e51b815260206004820181905260248201527f626f747320617265206e6f7420616c6c6f77656420746f207472616e73666572604482015260640161023b565b6014543060009081526006602052604090205460115491111590600160b01b900460ff168015610b635750600e546001600160a01b038481169116145b8015610b795750601154600160a81b900460ff16155b8015610b825750805b8015610ba757506001600160a01b03841660009081526016602052604090205460ff16155b8015610bcc57506001600160a01b03831660009081526016602052604090205460ff16155b15610bfa576011805460ff60a81b1916600160a81b179055610bec610fb7565b6011805460ff60a81b191690555b6011546001600160a01b03851660009081526016602052604090205460ff600160a81b909204821615911680610c4857506001600160a01b03841660009081526016602052604090205460ff165b15610c51575060005b60008115610d2957600e546001600160a01b038781169116148015610c845750600e546001600160a01b03868116911614155b15610cb457601354606490610ca390600160a81b900460ff1686611851565b610cad9190611868565b9050610d0b565b600e546001600160a01b03878116911614801590610cdf5750600e546001600160a01b038681169116145b15610d0b57601354606490610cfe90600160a01b900460ff1686611851565b610d089190611868565b90505b8015610d1c57610d1c86308361102a565b610d268185611912565b93505b600e546001600160a01b0390811690871603610dff57601154600160a01b900460ff16158015610d7257506001600160a01b03851660009081526016602052604090205460ff16155b15610d9f576001600160a01b0385166000908152601760205260409020805460ff19166001179055610dff565b600260155443610daf9190611912565b11158015610dd657506001600160a01b03851660009081526016602052604090205460ff16155b15610dff576001600160a01b0385166000908152601760205260409020805460ff191660011790555b610e0a86868661102a565b505050505050565b60006001600160a01b03821615806104d15750506001600160a01b03166000908152600c602052604090205460ff1690565b816001600160a01b0316836001600160a01b031614158015610e7c57506000818152600f60205260409020546001600160a01b031615155b15610ed2576000818152600f6020908152604080832080546001600160e01b03191690555182815283917f4e06b4e7000e659094299b3533b47b6aa8ad048e95e872d23d1f4ee55af89cfe910160405180910390a35b61053c8383836110d4565b81546001600160801b038082166000190191600160801b9004811690821603610f1957604051638acb5f2760e01b815260040160405180910390fd5b6001600160801b0316600081815260018401602052604090209190915581546001600160801b031916179055565b80546000906001600160801b03600160801b8204811691168103610f7e576040516375e52f4f60e01b815260040160405180910390fd5b600019016001600160801b039081166000818152600185016020526040812080549190558454909216600160801b909102179092555090565b3060009081526006602052604081205490610fd18261129a565b6012546040516001600160a01b03909116904790600081818185875af1925050503d806000811461101e576040519150601f19603f3d011682016040523d82523d6000602084013e611023565b606091505b5050505050565b6001600160a01b03831661105557806004600082825461104a91906118ff565b909155506110839050565b6001600160a01b0383166000908152600660205260408120805483929061107d908490611912565b90915550505b6001600160a01b03808316600081815260066020526040908190208054850190555190918516906000805160206152bb833981519152906110c79085815260200190565b60405180910390a3505050565b6001600160a01b038316156111df57600081815260086020908152604080832080546001600160a01b03191690556001600160a01b0386168352600b9091528120805461112390600190611912565b8154811061113357611133611925565b906000526020600020015490508181146111a0576000828152600a602052604081205460a01c6001600160a01b0386166000908152600b60205260409020805491925083918390811061118857611188611925565b60009182526020909120015561119e82826113f3565b505b6001600160a01b0384166000908152600b602052604090208054806111c7576111c7611954565b60019003818190600052602060002001600090559055505b6001600160a01b03821615611256576000818152600a6020908152604080832080546001600160a01b0319166001600160a01b038716908101909155808452600b8352908320805460018181018355828652938520018590559252905461125191839161124c9190611912565b6113f3565b611266565b6000818152600a60205260408120555b80826001600160a01b0316846001600160a01b03166000805160206152bb83398151915260405160405180910390a4505050565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106112cf576112cf611925565b6001600160a01b03928316602091820292909201810191909152601154604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611328573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134c9190611836565b8160018151811061135f5761135f611925565b6001600160a01b03928316602091820292909201810191909152306000818152600783526040808220601180548716845294528082208790559254925163791ac94760e01b8152929093169263791ac947926113c592879291879190429060040161196a565b600060405180830381600087803b1580156113df57600080fd5b505af1158015610e0a573d6000803e3d6000fd5b6000828152600a60205260409020546001600160601b0382111561142a57604051633f2cd0e360e21b815260040160405180910390fd5b6000928352600a60205260409092206001600160a01b039290921660a09190911b6001600160a01b031916019055565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261148157600080fd5b81516001600160401b0381111561149a5761149a61145a565b604051601f8201601f19908116603f011681016001600160401b03811182821017156114c8576114c861145a565b6040528181528382016020018510156114e057600080fd5b60005b828110156114ff576020818601810151838301820152016114e3565b506000918101602001919091529392505050565b80516001600160a01b038116811461152a57600080fd5b919050565b600080600080600080600060e0888a03121561154a57600080fd5b87516001600160401b0381111561156057600080fd5b61156c8a828b01611470565b60208a015190985090506001600160401b0381111561158a57600080fd5b6115968a828b01611470565b965050604088015194506115ac60608901611513565b93506115ba60808901611513565b92506115c860a08901611513565b91506115d660c08901611513565b905092959891949750929550565b600181811c908216806115f857607f821691505b60208210810361161857634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561053c57806000526020600020601f840160051c810160208510156116455750805b601f840160051c820191505b818110156110235760008155600101611651565b81516001600160401b0381111561167e5761167e61145a565b6116928161168c84546115e4565b8461161e565b6020601f8211600181146116c657600083156116ae5750848201515b600019600385901b1c1916600184901b178455611023565b600084815260208120601f198516915b828110156116f657878501518255602094850194600190920191016116d6565b50848210156117145786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b6001815b60018411156117745780850481111561175857611758611723565b600184161561176657908102905b60019390931c92800261173d565b935093915050565b60008261178b575060016104d1565b81611798575060006104d1565b81600181146117ae57600281146117b8576117d4565b60019150506104d1565b60ff8411156117c9576117c9611723565b50506001821b6104d1565b5060208310610133831016604e8410600b84101617156117f7575081810a6104d1565b6118046000198484611739565b806000190482111561181857611818611723565b029392505050565b600061182f60ff84168361177c565b9392505050565b60006020828403121561184857600080fd5b61182f82611513565b80820281158282048414176104d1576104d1611723565b60008261188557634e487b7160e01b600052601260045260246000fd5b500490565b6000808354611898816115e4565b6001821680156118af57600181146118c4576118f4565b60ff19831686528115158202860193506118f4565b86600052602060002060005b838110156118ec578154888201526001909101906020016118d0565b505081860193505b509195945050505050565b808201808211156104d1576104d1611723565b818103818111156104d1576104d1611723565b634e487b7160e01b600052603260045260246000fd5b60006001820161194d5761194d611723565b5060010190565b634e487b7160e01b600052603160045260246000fd5b600060a0820187835286602084015260a0604084015280865180835260c08501915060208801925060005b818110156119bc5783516001600160a01b0316835260209384019390920191600101611995565b50506001600160a01b039590951660608401525050608001529392505050565b60805160a05160c05160e051613852611a696000396000610dca01526000610d9a0152600081816108af0152818161113501528181611aa6015281816120390152818161207d015281816120f60152818161212001528181612174015281816122200152818161226d015281816122b1015281816122d80152612833015260006105b001526138526000f3fe60806040526004361061039b5760003560e01c806389fb4c66116101dc578063c6e672b911610102578063dd62ed3e116100a0578063e2f456051161006f578063e2f4560514610b86578063e985e9c514610b9c578063f2fde38b14610bd7578063f780bc1a14610bf757600080fd5b8063dd62ed3e14610aee578063dd63769914610b26578063dfabc03314610b46578063e030565e14610b6657600080fd5b8063d257b34f116100dc578063d257b34f14610a6e578063d34628cc14610a8e578063d505accf14610aae578063d96ca0b914610ace57600080fd5b8063c6e672b914610a19578063c87b56dd14610a39578063c9567bf914610a5957600080fd5b8063a9059cbb1161017a578063bfd7928411610149578063bfd7928414610994578063c0246668146109c4578063c2f1f14a146109e4578063c5ab3ba614610a0457600080fd5b8063a9059cbb146108f1578063b1ab931714610911578063b3f9ea341461093e578063b88d4fde1461097457600080fd5b80638fc88c48116101b65780638fc88c481461084a57806395d89b4114610888578063976a84351461089d578063a22cb465146108d157600080fd5b806389fb4c66146107f75780638a696e501461080c5780638da5cb5b1461082c57600080fd5b80634626402b116102c15780636352211e1161025f57806370a082311161022e57806370a0823114610758578063715018a6146107855780637ecebe001461079a57806385ecafd7146107c757600080fd5b80636352211e146106e057806364ea519e146107005780636c3bbfd7146107205780636e8f624b1461074057600080fd5b806349bd5a5e1161029b57806349bd5a5e1461066a5780634d9660721461068a5780634f02c420146106aa5780634fcd2446146106c057600080fd5b80634626402b146106095780634706240214610629578063481c6a751461064a57600080fd5b80631694505e116103395780632b14ca56116103085780632b14ca561461056b578063313ce5671461059e5780633644e515146105d257806342842e0e146105e757600080fd5b80631694505e146104ff57806318160ddd1461051f57806323b872dd146105355780632aefdbe21461055557600080fd5b8063081812fc11610375578063081812fc14610442578063095ea7b31461049057806309674eb0146104b057806309f0ef65146104df57600080fd5b806301ffc9a7146103a757806302519da3146103dc57806306fdde031461042057600080fd5b366103a257005b600080fd5b3480156103b357600080fd5b506103c76103c2366004613087565b610c17565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506104126103f73660046130b9565b6001600160a01b031660009081526006602052604090205490565b6040519081526020016103d3565b34801561042c57600080fd5b50610435610c5b565b6040516103d3919061311c565b34801561044e57600080fd5b5061047861045d36600461312f565b6008602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016103d3565b34801561049c57600080fd5b506103c76104ab366004613148565b610ce9565b3480156104bc57600080fd5b506000546001600160801b03808216600160801b90920481169190910316610412565b3480156104eb57600080fd5b506103c76104fa3660046130b9565b610d27565b34801561050b57600080fd5b50601154610478906001600160a01b031681565b34801561052b57600080fd5b5061041260045481565b34801561054157600080fd5b506103c7610550366004613174565b610d59565b34801561056157600080fd5b5061041260155481565b34801561057757600080fd5b5060135461058c90600160a01b900460ff1681565b60405160ff90911681526020016103d3565b3480156105aa57600080fd5b5061058c7f000000000000000000000000000000000000000000000000000000000000000081565b3480156105de57600080fd5b50610412610d96565b3480156105f357600080fd5b50610607610602366004613174565b610dec565b005b34801561061557600080fd5b50601254610478906001600160a01b031681565b34801561063557600080fd5b5060135461058c90600160a81b900460ff1681565b34801561065657600080fd5b50601354610478906001600160a01b031681565b34801561067657600080fd5b50600e54610478906001600160a01b031681565b34801561069657600080fd5b506103c76106a5366004613148565b610e0c565b3480156106b657600080fd5b5061041260055481565b3480156106cc57600080fd5b506106076106db3660046131c6565b610e99565b3480156106ec57600080fd5b506104786106fb36600461312f565b610f35565b34801561070c57600080fd5b5061060761071b366004613209565b610fb8565b34801561072c57600080fd5b5061060761073b36600461326b565b61103a565b34801561074c57600080fd5b50610412600160ff1b81565b34801561076457600080fd5b506104126107733660046130b9565b60066020526000908152604090205481565b34801561079157600080fd5b506106076110a4565b3480156107a657600080fd5b506104126107b53660046130b9565b600d6020526000908152604090205481565b3480156107d357600080fd5b506103c76107e23660046130b9565b60166020526000908152604090205460ff1681565b34801561080357600080fd5b50600454610412565b34801561081857600080fd5b50610607610827366004613209565b6110b8565b34801561083857600080fd5b506010546001600160a01b0316610478565b34801561085657600080fd5b5061041261086536600461312f565b6000908152600f6020526040902054600160a01b900467ffffffffffffffff1690565b34801561089457600080fd5b506104356110c5565b3480156108a957600080fd5b506104127f000000000000000000000000000000000000000000000000000000000000000081565b3480156108dd57600080fd5b506106076108ec366004613324565b6110d2565b3480156108fd57600080fd5b506103c761090c366004613148565b6111d0565b34801561091d57600080fd5b5061093161092c3660046130b9565b611204565b6040516103d39190613350565b34801561094a57600080fd5b506104126109593660046130b9565b6001600160a01b03166000908152600b602052604090205490565b34801561098057600080fd5b5061060761098f366004613393565b611270565b3480156109a057600080fd5b506103c76109af3660046130b9565b60176020526000908152604090205460ff1681565b3480156109d057600080fd5b506106076109df366004613324565b611390565b3480156109f057600080fd5b506104786109ff36600461312f565b611404565b348015610a1057600080fd5b50600554610412565b348015610a2557600080fd5b50610607610a34366004613324565b61144f565b348015610a4557600080fd5b50610435610a5436600461312f565b6114a2565b348015610a6557600080fd5b506106076114c3565b348015610a7a57600080fd5b50610607610a8936600461312f565b61153e565b348015610a9a57600080fd5b50610607610aa936600461326b565b61158c565b348015610aba57600080fd5b50610607610ac936600461345c565b6115f2565b348015610ada57600080fd5b506103c7610ae9366004613174565b61189b565b348015610afa57600080fd5b50610412610b093660046134cb565b600760209081526000928352604080842090915290825290205481565b348015610b3257600080fd5b50610607610b41366004613174565b61195b565b348015610b5257600080fd5b50610607610b61366004613148565b611ad5565b348015610b7257600080fd5b50610607610b81366004613504565b611b9a565b348015610b9257600080fd5b5061041260145481565b348015610ba857600080fd5b506103c7610bb73660046134cb565b600960209081526000928352604080842090915290825290205460ff1681565b348015610be357600080fd5b50610607610bf23660046130b9565b611ca7565b348015610c0357600080fd5b50610931610c12366004613553565b611cfb565b60006001600160e01b031982167fad092b5c000000000000000000000000000000000000000000000000000000001480610c555750610c5582611d98565b92915050565b60028054610c6890613575565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9490613575565b8015610ce15780601f10610cb657610100808354040283529160200191610ce1565b820191906000526020600020905b815481529060010190602001808311610cc457829003601f168201915b505050505081565b6000610cf482611e00565b15610d0857610d038383611ad5565b610d19565b610d128383610e0c565b9050610c55565b50600192915050565b905090565b60006001600160a01b0382161580610c555750506001600160a01b03166000908152600c602052604090205460ff1690565b6000610d6482611e00565b15610d7957610d7484848461195b565b610d8b565b610d8484848461189b565b9050610d8f565b5060015b9392505050565b60007f00000000000000000000000000000000000000000000000000000000000000004614610dc757610d22611e19565b507f000000000000000000000000000000000000000000000000000000000000000090565b610e0783838360405180602001604052806000815250611270565b505050565b60006001600160a01b038316610e3557604051635461585f60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350600192915050565b6013546001600160a01b03163314610ee75760405162461bcd60e51b815260206004820152600c60248201526b6d616e61676572206f6e6c7960a01b60448201526064015b60405180910390fd5b601380547fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff16600160a81b60ff9485160260ff60a01b191617600160a01b9290931691909102919091179055565b6000818152600a60205260409020546001600160a01b0316610f5682611e00565b610f73576040516307ed98ed60e31b815260040160405180910390fd5b6001600160a01b038116610fb3576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6013546001600160a01b031633146110015760405162461bcd60e51b815260206004820152600c60248201526b6d616e61676572206f6e6c7960a01b6044820152606401610ede565b60118054911515600160b01b027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b611042611eb3565b60005b81518110156110a057600060176000848481518110611066576110666135af565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055600101611045565b5050565b6110ac611eb3565b6110b66000611ef9565b565b6110c23382611f4b565b50565b60038054610c6890613575565b6001600160a01b038216611112576040517fccea9e6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600c602052604090205460ff161561116457610e0760003361115f7f00000000000000000000000000000000000000000000000000000000000000006402540be4006135db565b611fd3565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006001600160a01b0383166111f957604051634e46966960e11b815260040160405180910390fd5b610d8f338484611fd3565b6001600160a01b0381166000908152600b602090815260409182902080548351818402810184019094528084526060939283018282801561126457602002820191906000526020600020905b815481526020019060010190808311611250575b50505050509050919050565b61127982611e00565b611296576040516307ed98ed60e31b815260040160405180910390fd5b6112a1848484610d59565b506001600160a01b0383163b1580159061135357506040517f150b7a0200000000000000000000000000000000000000000000000000000000808252906001600160a01b0385169063150b7a02906113039033908990889088906004016135f2565b6020604051808303816000875af1158015611322573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113469190613633565b6001600160e01b03191614155b1561138a576040517f3da6393100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6013546001600160a01b031633146113d95760405162461bcd60e51b815260206004820152600c60248201526b6d616e61676572206f6e6c7960a01b6044820152606401610ede565b6001600160a01b03919091166000908152601660205260409020805460ff1916911515919091179055565b6000818152600f602052604081205442600160a01b90910467ffffffffffffffff161061144757506000908152600f60205260409020546001600160a01b031690565b506000919050565b6013546001600160a01b031633146114985760405162461bcd60e51b815260206004820152600c60248201526b6d616e61676572206f6e6c7960a01b6044820152606401610ede565b6110a08282611f4b565b60606040518060600160405280602781526020016137f66027913992915050565b6114cb611eb3565b601154600160a01b900460ff16156115255760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e0000000000000000006044820152606401610ede565b436015556011805460ff60a01b1916600160a01b179055565b6013546001600160a01b031633146115875760405162461bcd60e51b815260206004820152600c60248201526b6d616e61676572206f6e6c7960a01b6044820152606401610ede565b601455565b611594611eb3565b60005b81518110156110a0576001601760008484815181106115b8576115b86135af565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055600101611597565b4284101561162c576040517f05787bdf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61163585611e00565b1561166c576040517f1f3e0de800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03861661169357604051635461585f60e01b815260040160405180910390fd5b6000600161169f610d96565b6001600160a01b038a81166000818152600d602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e0830190915280519201919091207f19010000000000000000000000000000000000000000000000000000000000006101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156117c6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615806117fb5750876001600160a01b0316816001600160a01b031614155b15611832576040517f815e1d6400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0390811660009081526007602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60006001600160a01b0384166118c457604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0383166118eb57604051634e46966960e11b815260040160405180910390fd5b6001600160a01b03841660009081526007602090815260408083203384529091529020546000198114611947576119228382613650565b6001600160a01b03861660009081526007602090815260408083203384529091529020555b611952858585611fd3565b95945050505050565b6001600160a01b03831661198257604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166119a957604051634e46966960e11b815260040160405180910390fd5b6000818152600a60205260409020546001600160a01b038481169116146119e2576040516282b42960e81b815260040160405180910390fd5b336001600160a01b03841614801590611a1f57506001600160a01b038316600090815260096020908152604080832033845290915290205460ff16155b8015611a4257506000818152600860205260409020546001600160a01b03163314155b15611a5f576040516282b42960e81b815260040160405180910390fd5b611a6882610d27565b15611a9f576040517f5ce7539700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611aca83837f0000000000000000000000000000000000000000000000000000000000000000612349565b610e078383836126c3565b6000818152600a60205260409020546001600160a01b0316338114801590611b2157506001600160a01b038116600090815260096020908152604080832033845290915290205460ff16155b15611b3e576040516282b42960e81b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000838152600a60205260409020546001600160a01b03163314611c265760405162461bcd60e51b815260206004820152603260248201527f455243343930373a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610ede565b6000838152600f602090815260409182902080546001600160a01b0386166001600160e01b03199091168117600160a01b67ffffffffffffffff871690810291909117835593519384529092909186917f4e06b4e7000e659094299b3533b47b6aa8ad048e95e872d23d1f4ee55af89cfe910160405180910390a350505050565b611caf611eb3565b6001600160a01b038116611cf2576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610ede565b6110c281611ef9565b606060008267ffffffffffffffff811115611d1857611d18613224565b604051908082528060200260200182016040528015611d41578160200160208202803683370190505b509050835b611d508486613663565b811015611d9057611d6260008261275c565b82611d6d8784613650565b81518110611d7d57611d7d6135af565b6020908102919091010152600101611d46565b509392505050565b60006001600160e01b031982167fcaf91ff5000000000000000000000000000000000000000000000000000000001480610c5557506001600160e01b031982167f01ffc9a7000000000000000000000000000000000000000000000000000000001492915050565b6000600160ff1b82118015610c55575050600019141590565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6002604051611e4b9190613676565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6010546001600160a01b031633146110b6576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ede565b601080546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611f8b576040517fa41e3d3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015611f9f57611f9a826127e0565b611fa8565b611fa882612814565b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b6001600160a01b03838116600090815260066020526040808220549285168252812054909190612004868686612349565b600061200f87610d27565b9050600061201c87610d27565b90508180156120285750805b61233b5781156120d157600061205e7f000000000000000000000000000000000000000000000000000000000000000085613715565b6001600160a01b0389166000908152600660205260409020546120a2907f000000000000000000000000000000000000000000000000000000000000000090613715565b6120ac9190613650565b905060005b818110156120ca576120c2896128a2565b6001016120b1565b505061233b565b801561216d576001600160a01b03881660009081526006602052604081205461211b907f000000000000000000000000000000000000000000000000000000000000000090613715565b6121457f000000000000000000000000000000000000000000000000000000000000000087613715565b61214f9190613650565b905060005b818110156120ca576121658a6129b5565b600101612154565b60006121997f000000000000000000000000000000000000000000000000000000000000000088613715565b905060005b8181101561221c576001600160a01b038a166000908152600b60205260408120546121cb90600190613650565b6001600160a01b038c166000908152600b6020526040812080549293509091839081106121fa576121fa6135af565b906000526020600020015490506122128c8c836126c3565b505060010161219e565b50807f000000000000000000000000000000000000000000000000000000000000000061225e8b6001600160a01b031660009081526006602052604090205490565b6122689190613715565b6122927f000000000000000000000000000000000000000000000000000000000000000088613715565b61229c9190613650565b11156122ab576122ab896129b5565b806122d67f000000000000000000000000000000000000000000000000000000000000000086613715565b7f00000000000000000000000000000000000000000000000000000000000000006123168b6001600160a01b031660009081526006602052604090205490565b6123209190613715565b61232a9190613650565b111561233957612339886128a2565b505b506001979650505050505050565b6001600160a01b03831660009081526017602052604090205460ff1615801561238b57506001600160a01b03821660009081526017602052604090205460ff16155b6123d75760405162461bcd60e51b815260206004820181905260248201527f626f747320617265206e6f7420616c6c6f77656420746f207472616e736665726044820152606401610ede565b6014543060009081526006602052604090205460115491111590600160b01b900460ff1680156124145750600e546001600160a01b038481169116145b801561242a5750601154600160a81b900460ff16155b80156124335750805b801561245857506001600160a01b03841660009081526016602052604090205460ff16155b801561247d57506001600160a01b03831660009081526016602052604090205460ff16155b156124ab576011805460ff60a81b1916600160a81b17905561249d612a36565b6011805460ff60a81b191690555b6011546001600160a01b03851660009081526016602052604090205460ff600160a81b9092048216159116806124f957506001600160a01b03841660009081526016602052604090205460ff165b15612502575060005b600081156125da57600e546001600160a01b0387811691161480156125355750600e546001600160a01b03868116911614155b156125655760135460649061255490600160a81b900460ff16866135db565b61255e9190613715565b90506125bc565b600e546001600160a01b038781169116148015906125905750600e546001600160a01b038681169116145b156125bc576013546064906125af90600160a01b900460ff16866135db565b6125b99190613715565b90505b80156125cd576125cd863083612aa9565b6125d78185613650565b93505b600e546001600160a01b03908116908716036126b057601154600160a01b900460ff1615801561262357506001600160a01b03851660009081526016602052604090205460ff16155b15612650576001600160a01b0385166000908152601760205260409020805460ff191660011790556126b0565b6002601554436126609190613650565b1115801561268757506001600160a01b03851660009081526016602052604090205460ff16155b156126b0576001600160a01b0385166000908152601760205260409020805460ff191660011790555b6126bb868686612aa9565b505050505050565b816001600160a01b0316836001600160a01b0316141580156126fb57506000818152600f60205260409020546001600160a01b031615155b15612751576000818152600f6020908152604080832080546001600160e01b03191690555182815283917f4e06b4e7000e659094299b3533b47b6aa8ad048e95e872d23d1f4ee55af89cfe910160405180910390a35b610e07838383612b65565b600061278083546001600160801b03808216600160801b9092048116919091031690565b82106127b8576040517f580821e700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5081546001600160801b03908116820116600090815260018301602052604090205492915050565b6001600160a01b0381166000908152600b6020526040812054905b81811015610e075761280c836129b5565b6001016127fb565b6001600160a01b038116600090815260066020526040812054612858907f000000000000000000000000000000000000000000000000000000000000000090613715565b9050600061287b836001600160a01b03166000908152600b602052604090205490565b905060005b61288a8284613650565b81101561138a5761289a846128a2565b600101612880565b6001600160a01b0381166128c957604051634e46966960e11b815260040160405180910390fd5b600080546001600160801b03808216600160801b90920416146128f7576128f06000612d3d565b905061295a565b60056000815461290690613737565b90915550600554600101612946576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60055461295790600160ff1b613663565b90505b6000818152600a60205260409020546001600160a01b031680156129aa576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e078184846126c3565b6001600160a01b0381166129dc57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381166000908152600b602052604081208054612a0290600190613650565b81548110612a1257612a126135af565b90600052602060002001549050612a2b826000836126c3565b6110a0600082612dc6565b3060009081526006602052604081205490612a5082612e61565b6012546040516001600160a01b03909116904790600081818185875af1925050503d8060008114612a9d576040519150601f19603f3d011682016040523d82523d6000602084013e612aa2565b606091505b5050505050565b6001600160a01b038316612ad4578060046000828254612ac99190613663565b90915550612b029050565b6001600160a01b03831660009081526006602052604081208054839290612afc908490613650565b90915550505b6001600160a01b03808316600081815260066020526040908190208054850190555190918516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612b589085815260200190565b60405180910390a3505050565b6001600160a01b03831615612c7057600081815260086020908152604080832080546001600160a01b03191690556001600160a01b0386168352600b90915281208054612bb490600190613650565b81548110612bc457612bc46135af565b90600052602060002001549050818114612c31576000828152600a602052604081205460a01c6001600160a01b0386166000908152600b602052604090208054919250839183908110612c1957612c196135af565b600091825260209091200155612c2f8282612fec565b505b6001600160a01b0384166000908152600b60205260409020805480612c5857612c58613750565b60019003818190600052602060002001600090559055505b6001600160a01b03821615612ce7576000818152600a6020908152604080832080546001600160a01b0319166001600160a01b038716908101909155808452600b83529083208054600181810183558286529385200185905592529054612ce2918391612cdd9190613650565b612fec565b612cf7565b6000818152600a60205260408120555b80826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b80546000906001600160801b03600160801b8204811691168103612d8d576040517f75e52f4f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600019016001600160801b039081166000818152600185016020526040812080549190558454909216600160801b909102179092555090565b81546001600160801b038082166000190191600160801b9004811690821603612e1b576040517f8acb5f2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160801b0316600081815260018401602052604090209190915581547fffffffffffffffffffffffffffffffff0000000000000000000000000000000016179055565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612e9657612e966135af565b6001600160a01b03928316602091820292909201810191909152601154604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa158015612f08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f2c9190613766565b81600181518110612f3f57612f3f6135af565b6001600160a01b0392831660209182029290920181019190915230600081815260078352604080822060118054871684529452808220879055925492517f791ac947000000000000000000000000000000000000000000000000000000008152929093169263791ac94792612fbe928792918791904290600401613783565b600060405180830381600087803b158015612fd857600080fd5b505af11580156126bb573d6000803e3d6000fd5b6000828152600a60205260409020546bffffffffffffffffffffffff821115613041576040517ffcb3438c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000928352600a60205260409092206001600160a01b039290921660a09190911b6001600160a01b031916019055565b6001600160e01b0319811681146110c257600080fd5b60006020828403121561309957600080fd5b8135610d8f81613071565b6001600160a01b03811681146110c257600080fd5b6000602082840312156130cb57600080fd5b8135610d8f816130a4565b6000815180845260005b818110156130fc576020818501810151868301820152016130e0565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610d8f60208301846130d6565b60006020828403121561314157600080fd5b5035919050565b6000806040838503121561315b57600080fd5b8235613166816130a4565b946020939093013593505050565b60008060006060848603121561318957600080fd5b8335613194816130a4565b925060208401356131a4816130a4565b929592945050506040919091013590565b803560ff81168114610fb357600080fd5b600080604083850312156131d957600080fd5b6131e2836131b5565b91506131f0602084016131b5565b90509250929050565b80358015158114610fb357600080fd5b60006020828403121561321b57600080fd5b610d8f826131f9565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561326357613263613224565b604052919050565b60006020828403121561327d57600080fd5b813567ffffffffffffffff81111561329457600080fd5b8201601f810184136132a557600080fd5b803567ffffffffffffffff8111156132bf576132bf613224565b8060051b6132cf6020820161323a565b918252602081840181019290810190878411156132eb57600080fd5b6020850194505b838510156133195784359250613307836130a4565b828252602094850194909101906132f2565b979650505050505050565b6000806040838503121561333757600080fd5b8235613342816130a4565b91506131f0602084016131f9565b602080825282518282018190526000918401906040840190835b8181101561338857835183526020938401939092019160010161336a565b509095945050505050565b600080600080608085870312156133a957600080fd5b84356133b4816130a4565b935060208501356133c4816130a4565b925060408501359150606085013567ffffffffffffffff8111156133e757600080fd5b8501601f810187136133f857600080fd5b803567ffffffffffffffff81111561341257613412613224565b613425601f8201601f191660200161323a565b81815288602083850101111561343a57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080600080600080600060e0888a03121561347757600080fd5b8735613482816130a4565b96506020880135613492816130a4565b955060408801359450606088013593506134ae608089016131b5565b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156134de57600080fd5b82356134e9816130a4565b915060208301356134f9816130a4565b809150509250929050565b60008060006060848603121561351957600080fd5b83359250602084013561352b816130a4565b9150604084013567ffffffffffffffff8116811461354857600080fd5b809150509250925092565b6000806040838503121561356657600080fd5b50508035926020909101359150565b600181811c9082168061358957607f821691505b6020821081036135a957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610c5557610c556135c5565b6001600160a01b03851681526001600160a01b038416602082015282604082015260806060820152600061362960808301846130d6565b9695505050505050565b60006020828403121561364557600080fd5b8151610d8f81613071565b81810381811115610c5557610c556135c5565b80820180821115610c5557610c556135c5565b6000808354818160011c9050600182168061369257607f821691505b6020821081036136b057634e487b7160e01b84526022600452602484fd5b8080156136c457600181146136d957613709565b60ff1984168752821515830287019450613709565b60008881526020902060005b84811015613701578154898201526001909101906020016136e5565b505082870194505b50929695505050505050565b60008261373257634e487b7160e01b600052601260045260246000fd5b500490565b600060018201613749576137496135c5565b5060010190565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561377857600080fd5b8151610d8f816130a4565b600060a0820187835286602084015260a0604084015280865180835260c08501915060208801925060005b818110156137d55783516001600160a01b03168352602093840193909201916001016137ae565b50506001600160a01b03959095166060840152505060800152939250505056fe68747470733a2f2f64696d656e73696f6e6572632e6275696c642f6170692f6d65746164617461a26469706673582212203d2bb4cd0e0c272aac441cb9f2bfd5a81e7438660e02fa41dee7d68a36b47cd564736f6c634300081b0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000271000000000000000000000000003984f4648a2716bf0bfd08085e4b8275c0e1f0b0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad000000000000000000000000991949396cebc5c8b500840664a7cea351bd0134000000000000000000000000000000000000000000000000000000000000000944494d454e53494f4e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000944494d454e53494f4e0000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061039b5760003560e01c806389fb4c66116101dc578063c6e672b911610102578063dd62ed3e116100a0578063e2f456051161006f578063e2f4560514610b86578063e985e9c514610b9c578063f2fde38b14610bd7578063f780bc1a14610bf757600080fd5b8063dd62ed3e14610aee578063dd63769914610b26578063dfabc03314610b46578063e030565e14610b6657600080fd5b8063d257b34f116100dc578063d257b34f14610a6e578063d34628cc14610a8e578063d505accf14610aae578063d96ca0b914610ace57600080fd5b8063c6e672b914610a19578063c87b56dd14610a39578063c9567bf914610a5957600080fd5b8063a9059cbb1161017a578063bfd7928411610149578063bfd7928414610994578063c0246668146109c4578063c2f1f14a146109e4578063c5ab3ba614610a0457600080fd5b8063a9059cbb146108f1578063b1ab931714610911578063b3f9ea341461093e578063b88d4fde1461097457600080fd5b80638fc88c48116101b65780638fc88c481461084a57806395d89b4114610888578063976a84351461089d578063a22cb465146108d157600080fd5b806389fb4c66146107f75780638a696e501461080c5780638da5cb5b1461082c57600080fd5b80634626402b116102c15780636352211e1161025f57806370a082311161022e57806370a0823114610758578063715018a6146107855780637ecebe001461079a57806385ecafd7146107c757600080fd5b80636352211e146106e057806364ea519e146107005780636c3bbfd7146107205780636e8f624b1461074057600080fd5b806349bd5a5e1161029b57806349bd5a5e1461066a5780634d9660721461068a5780634f02c420146106aa5780634fcd2446146106c057600080fd5b80634626402b146106095780634706240214610629578063481c6a751461064a57600080fd5b80631694505e116103395780632b14ca56116103085780632b14ca561461056b578063313ce5671461059e5780633644e515146105d257806342842e0e146105e757600080fd5b80631694505e146104ff57806318160ddd1461051f57806323b872dd146105355780632aefdbe21461055557600080fd5b8063081812fc11610375578063081812fc14610442578063095ea7b31461049057806309674eb0146104b057806309f0ef65146104df57600080fd5b806301ffc9a7146103a757806302519da3146103dc57806306fdde031461042057600080fd5b366103a257005b600080fd5b3480156103b357600080fd5b506103c76103c2366004613087565b610c17565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506104126103f73660046130b9565b6001600160a01b031660009081526006602052604090205490565b6040519081526020016103d3565b34801561042c57600080fd5b50610435610c5b565b6040516103d3919061311c565b34801561044e57600080fd5b5061047861045d36600461312f565b6008602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016103d3565b34801561049c57600080fd5b506103c76104ab366004613148565b610ce9565b3480156104bc57600080fd5b506000546001600160801b03808216600160801b90920481169190910316610412565b3480156104eb57600080fd5b506103c76104fa3660046130b9565b610d27565b34801561050b57600080fd5b50601154610478906001600160a01b031681565b34801561052b57600080fd5b5061041260045481565b34801561054157600080fd5b506103c7610550366004613174565b610d59565b34801561056157600080fd5b5061041260155481565b34801561057757600080fd5b5060135461058c90600160a01b900460ff1681565b60405160ff90911681526020016103d3565b3480156105aa57600080fd5b5061058c7f000000000000000000000000000000000000000000000000000000000000001281565b3480156105de57600080fd5b50610412610d96565b3480156105f357600080fd5b50610607610602366004613174565b610dec565b005b34801561061557600080fd5b50601254610478906001600160a01b031681565b34801561063557600080fd5b5060135461058c90600160a81b900460ff1681565b34801561065657600080fd5b50601354610478906001600160a01b031681565b34801561067657600080fd5b50600e54610478906001600160a01b031681565b34801561069657600080fd5b506103c76106a5366004613148565b610e0c565b3480156106b657600080fd5b5061041260055481565b3480156106cc57600080fd5b506106076106db3660046131c6565b610e99565b3480156106ec57600080fd5b506104786106fb36600461312f565b610f35565b34801561070c57600080fd5b5061060761071b366004613209565b610fb8565b34801561072c57600080fd5b5061060761073b36600461326b565b61103a565b34801561074c57600080fd5b50610412600160ff1b81565b34801561076457600080fd5b506104126107733660046130b9565b60066020526000908152604090205481565b34801561079157600080fd5b506106076110a4565b3480156107a657600080fd5b506104126107b53660046130b9565b600d6020526000908152604090205481565b3480156107d357600080fd5b506103c76107e23660046130b9565b60166020526000908152604090205460ff1681565b34801561080357600080fd5b50600454610412565b34801561081857600080fd5b50610607610827366004613209565b6110b8565b34801561083857600080fd5b506010546001600160a01b0316610478565b34801561085657600080fd5b5061041261086536600461312f565b6000908152600f6020526040902054600160a01b900467ffffffffffffffff1690565b34801561089457600080fd5b506104356110c5565b3480156108a957600080fd5b506104127f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b3480156108dd57600080fd5b506106076108ec366004613324565b6110d2565b3480156108fd57600080fd5b506103c761090c366004613148565b6111d0565b34801561091d57600080fd5b5061093161092c3660046130b9565b611204565b6040516103d39190613350565b34801561094a57600080fd5b506104126109593660046130b9565b6001600160a01b03166000908152600b602052604090205490565b34801561098057600080fd5b5061060761098f366004613393565b611270565b3480156109a057600080fd5b506103c76109af3660046130b9565b60176020526000908152604090205460ff1681565b3480156109d057600080fd5b506106076109df366004613324565b611390565b3480156109f057600080fd5b506104786109ff36600461312f565b611404565b348015610a1057600080fd5b50600554610412565b348015610a2557600080fd5b50610607610a34366004613324565b61144f565b348015610a4557600080fd5b50610435610a5436600461312f565b6114a2565b348015610a6557600080fd5b506106076114c3565b348015610a7a57600080fd5b50610607610a8936600461312f565b61153e565b348015610a9a57600080fd5b50610607610aa936600461326b565b61158c565b348015610aba57600080fd5b50610607610ac936600461345c565b6115f2565b348015610ada57600080fd5b506103c7610ae9366004613174565b61189b565b348015610afa57600080fd5b50610412610b093660046134cb565b600760209081526000928352604080842090915290825290205481565b348015610b3257600080fd5b50610607610b41366004613174565b61195b565b348015610b5257600080fd5b50610607610b61366004613148565b611ad5565b348015610b7257600080fd5b50610607610b81366004613504565b611b9a565b348015610b9257600080fd5b5061041260145481565b348015610ba857600080fd5b506103c7610bb73660046134cb565b600960209081526000928352604080842090915290825290205460ff1681565b348015610be357600080fd5b50610607610bf23660046130b9565b611ca7565b348015610c0357600080fd5b50610931610c12366004613553565b611cfb565b60006001600160e01b031982167fad092b5c000000000000000000000000000000000000000000000000000000001480610c555750610c5582611d98565b92915050565b60028054610c6890613575565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9490613575565b8015610ce15780601f10610cb657610100808354040283529160200191610ce1565b820191906000526020600020905b815481529060010190602001808311610cc457829003601f168201915b505050505081565b6000610cf482611e00565b15610d0857610d038383611ad5565b610d19565b610d128383610e0c565b9050610c55565b50600192915050565b905090565b60006001600160a01b0382161580610c555750506001600160a01b03166000908152600c602052604090205460ff1690565b6000610d6482611e00565b15610d7957610d7484848461195b565b610d8b565b610d8484848461189b565b9050610d8f565b5060015b9392505050565b60007f00000000000000000000000000000000000000000000000000000000000000014614610dc757610d22611e19565b507f33ebe6836b386df11820402bf9dbe199d08f854f50561572b2eb5ab93266dfd390565b610e0783838360405180602001604052806000815250611270565b505050565b60006001600160a01b038316610e3557604051635461585f60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350600192915050565b6013546001600160a01b03163314610ee75760405162461bcd60e51b815260206004820152600c60248201526b6d616e61676572206f6e6c7960a01b60448201526064015b60405180910390fd5b601380547fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff16600160a81b60ff9485160260ff60a01b191617600160a01b9290931691909102919091179055565b6000818152600a60205260409020546001600160a01b0316610f5682611e00565b610f73576040516307ed98ed60e31b815260040160405180910390fd5b6001600160a01b038116610fb3576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6013546001600160a01b031633146110015760405162461bcd60e51b815260206004820152600c60248201526b6d616e61676572206f6e6c7960a01b6044820152606401610ede565b60118054911515600160b01b027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b611042611eb3565b60005b81518110156110a057600060176000848481518110611066576110666135af565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055600101611045565b5050565b6110ac611eb3565b6110b66000611ef9565b565b6110c23382611f4b565b50565b60038054610c6890613575565b6001600160a01b038216611112576040517fccea9e6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600c602052604090205460ff161561116457610e0760003361115f7f0000000000000000000000000000000000000000000000000de0b6b3a76400006402540be4006135db565b611fd3565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006001600160a01b0383166111f957604051634e46966960e11b815260040160405180910390fd5b610d8f338484611fd3565b6001600160a01b0381166000908152600b602090815260409182902080548351818402810184019094528084526060939283018282801561126457602002820191906000526020600020905b815481526020019060010190808311611250575b50505050509050919050565b61127982611e00565b611296576040516307ed98ed60e31b815260040160405180910390fd5b6112a1848484610d59565b506001600160a01b0383163b1580159061135357506040517f150b7a0200000000000000000000000000000000000000000000000000000000808252906001600160a01b0385169063150b7a02906113039033908990889088906004016135f2565b6020604051808303816000875af1158015611322573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113469190613633565b6001600160e01b03191614155b1561138a576040517f3da6393100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6013546001600160a01b031633146113d95760405162461bcd60e51b815260206004820152600c60248201526b6d616e61676572206f6e6c7960a01b6044820152606401610ede565b6001600160a01b03919091166000908152601660205260409020805460ff1916911515919091179055565b6000818152600f602052604081205442600160a01b90910467ffffffffffffffff161061144757506000908152600f60205260409020546001600160a01b031690565b506000919050565b6013546001600160a01b031633146114985760405162461bcd60e51b815260206004820152600c60248201526b6d616e61676572206f6e6c7960a01b6044820152606401610ede565b6110a08282611f4b565b60606040518060600160405280602781526020016137f66027913992915050565b6114cb611eb3565b601154600160a01b900460ff16156115255760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e0000000000000000006044820152606401610ede565b436015556011805460ff60a01b1916600160a01b179055565b6013546001600160a01b031633146115875760405162461bcd60e51b815260206004820152600c60248201526b6d616e61676572206f6e6c7960a01b6044820152606401610ede565b601455565b611594611eb3565b60005b81518110156110a0576001601760008484815181106115b8576115b86135af565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055600101611597565b4284101561162c576040517f05787bdf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61163585611e00565b1561166c576040517f1f3e0de800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03861661169357604051635461585f60e01b815260040160405180910390fd5b6000600161169f610d96565b6001600160a01b038a81166000818152600d602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e0830190915280519201919091207f19010000000000000000000000000000000000000000000000000000000000006101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156117c6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615806117fb5750876001600160a01b0316816001600160a01b031614155b15611832576040517f815e1d6400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0390811660009081526007602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60006001600160a01b0384166118c457604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0383166118eb57604051634e46966960e11b815260040160405180910390fd5b6001600160a01b03841660009081526007602090815260408083203384529091529020546000198114611947576119228382613650565b6001600160a01b03861660009081526007602090815260408083203384529091529020555b611952858585611fd3565b95945050505050565b6001600160a01b03831661198257604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166119a957604051634e46966960e11b815260040160405180910390fd5b6000818152600a60205260409020546001600160a01b038481169116146119e2576040516282b42960e81b815260040160405180910390fd5b336001600160a01b03841614801590611a1f57506001600160a01b038316600090815260096020908152604080832033845290915290205460ff16155b8015611a4257506000818152600860205260409020546001600160a01b03163314155b15611a5f576040516282b42960e81b815260040160405180910390fd5b611a6882610d27565b15611a9f576040517f5ce7539700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611aca83837f0000000000000000000000000000000000000000000000000de0b6b3a7640000612349565b610e078383836126c3565b6000818152600a60205260409020546001600160a01b0316338114801590611b2157506001600160a01b038116600090815260096020908152604080832033845290915290205460ff16155b15611b3e576040516282b42960e81b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000838152600a60205260409020546001600160a01b03163314611c265760405162461bcd60e51b815260206004820152603260248201527f455243343930373a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610ede565b6000838152600f602090815260409182902080546001600160a01b0386166001600160e01b03199091168117600160a01b67ffffffffffffffff871690810291909117835593519384529092909186917f4e06b4e7000e659094299b3533b47b6aa8ad048e95e872d23d1f4ee55af89cfe910160405180910390a350505050565b611caf611eb3565b6001600160a01b038116611cf2576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610ede565b6110c281611ef9565b606060008267ffffffffffffffff811115611d1857611d18613224565b604051908082528060200260200182016040528015611d41578160200160208202803683370190505b509050835b611d508486613663565b811015611d9057611d6260008261275c565b82611d6d8784613650565b81518110611d7d57611d7d6135af565b6020908102919091010152600101611d46565b509392505050565b60006001600160e01b031982167fcaf91ff5000000000000000000000000000000000000000000000000000000001480610c5557506001600160e01b031982167f01ffc9a7000000000000000000000000000000000000000000000000000000001492915050565b6000600160ff1b82118015610c55575050600019141590565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6002604051611e4b9190613676565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6010546001600160a01b031633146110b6576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ede565b601080546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611f8b576040517fa41e3d3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015611f9f57611f9a826127e0565b611fa8565b611fa882612814565b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b6001600160a01b03838116600090815260066020526040808220549285168252812054909190612004868686612349565b600061200f87610d27565b9050600061201c87610d27565b90508180156120285750805b61233b5781156120d157600061205e7f0000000000000000000000000000000000000000000000000de0b6b3a764000085613715565b6001600160a01b0389166000908152600660205260409020546120a2907f0000000000000000000000000000000000000000000000000de0b6b3a764000090613715565b6120ac9190613650565b905060005b818110156120ca576120c2896128a2565b6001016120b1565b505061233b565b801561216d576001600160a01b03881660009081526006602052604081205461211b907f0000000000000000000000000000000000000000000000000de0b6b3a764000090613715565b6121457f0000000000000000000000000000000000000000000000000de0b6b3a764000087613715565b61214f9190613650565b905060005b818110156120ca576121658a6129b5565b600101612154565b60006121997f0000000000000000000000000000000000000000000000000de0b6b3a764000088613715565b905060005b8181101561221c576001600160a01b038a166000908152600b60205260408120546121cb90600190613650565b6001600160a01b038c166000908152600b6020526040812080549293509091839081106121fa576121fa6135af565b906000526020600020015490506122128c8c836126c3565b505060010161219e565b50807f0000000000000000000000000000000000000000000000000de0b6b3a764000061225e8b6001600160a01b031660009081526006602052604090205490565b6122689190613715565b6122927f0000000000000000000000000000000000000000000000000de0b6b3a764000088613715565b61229c9190613650565b11156122ab576122ab896129b5565b806122d67f0000000000000000000000000000000000000000000000000de0b6b3a764000086613715565b7f0000000000000000000000000000000000000000000000000de0b6b3a76400006123168b6001600160a01b031660009081526006602052604090205490565b6123209190613715565b61232a9190613650565b111561233957612339886128a2565b505b506001979650505050505050565b6001600160a01b03831660009081526017602052604090205460ff1615801561238b57506001600160a01b03821660009081526017602052604090205460ff16155b6123d75760405162461bcd60e51b815260206004820181905260248201527f626f747320617265206e6f7420616c6c6f77656420746f207472616e736665726044820152606401610ede565b6014543060009081526006602052604090205460115491111590600160b01b900460ff1680156124145750600e546001600160a01b038481169116145b801561242a5750601154600160a81b900460ff16155b80156124335750805b801561245857506001600160a01b03841660009081526016602052604090205460ff16155b801561247d57506001600160a01b03831660009081526016602052604090205460ff16155b156124ab576011805460ff60a81b1916600160a81b17905561249d612a36565b6011805460ff60a81b191690555b6011546001600160a01b03851660009081526016602052604090205460ff600160a81b9092048216159116806124f957506001600160a01b03841660009081526016602052604090205460ff165b15612502575060005b600081156125da57600e546001600160a01b0387811691161480156125355750600e546001600160a01b03868116911614155b156125655760135460649061255490600160a81b900460ff16866135db565b61255e9190613715565b90506125bc565b600e546001600160a01b038781169116148015906125905750600e546001600160a01b038681169116145b156125bc576013546064906125af90600160a01b900460ff16866135db565b6125b99190613715565b90505b80156125cd576125cd863083612aa9565b6125d78185613650565b93505b600e546001600160a01b03908116908716036126b057601154600160a01b900460ff1615801561262357506001600160a01b03851660009081526016602052604090205460ff16155b15612650576001600160a01b0385166000908152601760205260409020805460ff191660011790556126b0565b6002601554436126609190613650565b1115801561268757506001600160a01b03851660009081526016602052604090205460ff16155b156126b0576001600160a01b0385166000908152601760205260409020805460ff191660011790555b6126bb868686612aa9565b505050505050565b816001600160a01b0316836001600160a01b0316141580156126fb57506000818152600f60205260409020546001600160a01b031615155b15612751576000818152600f6020908152604080832080546001600160e01b03191690555182815283917f4e06b4e7000e659094299b3533b47b6aa8ad048e95e872d23d1f4ee55af89cfe910160405180910390a35b610e07838383612b65565b600061278083546001600160801b03808216600160801b9092048116919091031690565b82106127b8576040517f580821e700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5081546001600160801b03908116820116600090815260018301602052604090205492915050565b6001600160a01b0381166000908152600b6020526040812054905b81811015610e075761280c836129b5565b6001016127fb565b6001600160a01b038116600090815260066020526040812054612858907f0000000000000000000000000000000000000000000000000de0b6b3a764000090613715565b9050600061287b836001600160a01b03166000908152600b602052604090205490565b905060005b61288a8284613650565b81101561138a5761289a846128a2565b600101612880565b6001600160a01b0381166128c957604051634e46966960e11b815260040160405180910390fd5b600080546001600160801b03808216600160801b90920416146128f7576128f06000612d3d565b905061295a565b60056000815461290690613737565b90915550600554600101612946576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60055461295790600160ff1b613663565b90505b6000818152600a60205260409020546001600160a01b031680156129aa576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e078184846126c3565b6001600160a01b0381166129dc57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381166000908152600b602052604081208054612a0290600190613650565b81548110612a1257612a126135af565b90600052602060002001549050612a2b826000836126c3565b6110a0600082612dc6565b3060009081526006602052604081205490612a5082612e61565b6012546040516001600160a01b03909116904790600081818185875af1925050503d8060008114612a9d576040519150601f19603f3d011682016040523d82523d6000602084013e612aa2565b606091505b5050505050565b6001600160a01b038316612ad4578060046000828254612ac99190613663565b90915550612b029050565b6001600160a01b03831660009081526006602052604081208054839290612afc908490613650565b90915550505b6001600160a01b03808316600081815260066020526040908190208054850190555190918516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612b589085815260200190565b60405180910390a3505050565b6001600160a01b03831615612c7057600081815260086020908152604080832080546001600160a01b03191690556001600160a01b0386168352600b90915281208054612bb490600190613650565b81548110612bc457612bc46135af565b90600052602060002001549050818114612c31576000828152600a602052604081205460a01c6001600160a01b0386166000908152600b602052604090208054919250839183908110612c1957612c196135af565b600091825260209091200155612c2f8282612fec565b505b6001600160a01b0384166000908152600b60205260409020805480612c5857612c58613750565b60019003818190600052602060002001600090559055505b6001600160a01b03821615612ce7576000818152600a6020908152604080832080546001600160a01b0319166001600160a01b038716908101909155808452600b83529083208054600181810183558286529385200185905592529054612ce2918391612cdd9190613650565b612fec565b612cf7565b6000818152600a60205260408120555b80826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b80546000906001600160801b03600160801b8204811691168103612d8d576040517f75e52f4f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600019016001600160801b039081166000818152600185016020526040812080549190558454909216600160801b909102179092555090565b81546001600160801b038082166000190191600160801b9004811690821603612e1b576040517f8acb5f2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160801b0316600081815260018401602052604090209190915581547fffffffffffffffffffffffffffffffff0000000000000000000000000000000016179055565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612e9657612e966135af565b6001600160a01b03928316602091820292909201810191909152601154604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa158015612f08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f2c9190613766565b81600181518110612f3f57612f3f6135af565b6001600160a01b0392831660209182029290920181019190915230600081815260078352604080822060118054871684529452808220879055925492517f791ac947000000000000000000000000000000000000000000000000000000008152929093169263791ac94792612fbe928792918791904290600401613783565b600060405180830381600087803b158015612fd857600080fd5b505af11580156126bb573d6000803e3d6000fd5b6000828152600a60205260409020546bffffffffffffffffffffffff821115613041576040517ffcb3438c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000928352600a60205260409092206001600160a01b039290921660a09190911b6001600160a01b031916019055565b6001600160e01b0319811681146110c257600080fd5b60006020828403121561309957600080fd5b8135610d8f81613071565b6001600160a01b03811681146110c257600080fd5b6000602082840312156130cb57600080fd5b8135610d8f816130a4565b6000815180845260005b818110156130fc576020818501810151868301820152016130e0565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610d8f60208301846130d6565b60006020828403121561314157600080fd5b5035919050565b6000806040838503121561315b57600080fd5b8235613166816130a4565b946020939093013593505050565b60008060006060848603121561318957600080fd5b8335613194816130a4565b925060208401356131a4816130a4565b929592945050506040919091013590565b803560ff81168114610fb357600080fd5b600080604083850312156131d957600080fd5b6131e2836131b5565b91506131f0602084016131b5565b90509250929050565b80358015158114610fb357600080fd5b60006020828403121561321b57600080fd5b610d8f826131f9565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561326357613263613224565b604052919050565b60006020828403121561327d57600080fd5b813567ffffffffffffffff81111561329457600080fd5b8201601f810184136132a557600080fd5b803567ffffffffffffffff8111156132bf576132bf613224565b8060051b6132cf6020820161323a565b918252602081840181019290810190878411156132eb57600080fd5b6020850194505b838510156133195784359250613307836130a4565b828252602094850194909101906132f2565b979650505050505050565b6000806040838503121561333757600080fd5b8235613342816130a4565b91506131f0602084016131f9565b602080825282518282018190526000918401906040840190835b8181101561338857835183526020938401939092019160010161336a565b509095945050505050565b600080600080608085870312156133a957600080fd5b84356133b4816130a4565b935060208501356133c4816130a4565b925060408501359150606085013567ffffffffffffffff8111156133e757600080fd5b8501601f810187136133f857600080fd5b803567ffffffffffffffff81111561341257613412613224565b613425601f8201601f191660200161323a565b81815288602083850101111561343a57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080600080600080600060e0888a03121561347757600080fd5b8735613482816130a4565b96506020880135613492816130a4565b955060408801359450606088013593506134ae608089016131b5565b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156134de57600080fd5b82356134e9816130a4565b915060208301356134f9816130a4565b809150509250929050565b60008060006060848603121561351957600080fd5b83359250602084013561352b816130a4565b9150604084013567ffffffffffffffff8116811461354857600080fd5b809150509250925092565b6000806040838503121561356657600080fd5b50508035926020909101359150565b600181811c9082168061358957607f821691505b6020821081036135a957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610c5557610c556135c5565b6001600160a01b03851681526001600160a01b038416602082015282604082015260806060820152600061362960808301846130d6565b9695505050505050565b60006020828403121561364557600080fd5b8151610d8f81613071565b81810381811115610c5557610c556135c5565b80820180821115610c5557610c556135c5565b6000808354818160011c9050600182168061369257607f821691505b6020821081036136b057634e487b7160e01b84526022600452602484fd5b8080156136c457600181146136d957613709565b60ff1984168752821515830287019450613709565b60008881526020902060005b84811015613701578154898201526001909101906020016136e5565b505082870194505b50929695505050505050565b60008261373257634e487b7160e01b600052601260045260246000fd5b500490565b600060018201613749576137496135c5565b5060010190565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561377857600080fd5b8151610d8f816130a4565b600060a0820187835286602084015260a0604084015280865180835260c08501915060208801925060005b818110156137d55783516001600160a01b03168352602093840193909201916001016137ae565b50506001600160a01b03959095166060840152505060800152939250505056fe68747470733a2f2f64696d656e73696f6e6572632e6275696c642f6170692f6d65746164617461a26469706673582212203d2bb4cd0e0c272aac441cb9f2bfd5a81e7438660e02fa41dee7d68a36b47cd564736f6c634300081b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000271000000000000000000000000003984f4648a2716bf0bfd08085e4b8275c0e1f0b0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad000000000000000000000000991949396cebc5c8b500840664a7cea351bd0134000000000000000000000000000000000000000000000000000000000000000944494d454e53494f4e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000944494d454e53494f4e0000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): DIMENSION
Arg [1] : symbol_ (string): DIMENSION
Arg [2] : maxTotalSupplyERC721_ (uint256): 10000
Arg [3] : initialOwner_ (address): 0x03984F4648a2716Bf0bfD08085e4b8275c0E1f0b
Arg [4] : uniswapV2Router_ (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [5] : uniswapUniversalRouter_ (address): 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD
Arg [6] : treasuryWallet_ (address): 0x991949396cEBC5C8B500840664A7CeA351BD0134
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [3] : 00000000000000000000000003984f4648a2716bf0bfd08085e4b8275c0e1f0b
Arg [4] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [5] : 0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad
Arg [6] : 000000000000000000000000991949396cebc5c8b500840664a7cea351bd0134
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [8] : 44494d454e53494f4e0000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [10] : 44494d454e53494f4e0000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.